Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BeHub-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
BeHub-web
Commits
a368e8dc
Commit
a368e8dc
authored
Nov 22, 2015
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
:
parent
2e993074
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
dashboard.html
BeHub/Hub/templates/user_panel/content/dashboard.html
+26
-4
No files found.
BeHub/Hub/templates/user_panel/content/dashboard.html
View file @
a368e8dc
...
@@ -53,14 +53,36 @@
...
@@ -53,14 +53,36 @@
<div
class=
"modal-body"
id=
"modal-content"
>
<div
class=
"modal-body"
id=
"modal-content"
>
<form
action=
"/login/"
method=
"post"
class=
"form-signin"
>
<form
action=
"/login/"
method=
"post"
class=
"form-signin"
>
{% csrf_token %}
<input
id=
"name"
type=
"text"
class=
"form-control"
placeholder=
"Nazwa projektu"
required
autofocus
name=
"name"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"Nazwa projektu"
required
autofocus
name=
"name"
>
<textarea
class=
"form-control"
id=
"desc"
type=
"description"
id=
"article_content"
name=
"content"
placeholder=
"Zawartosc"
maxlength=
"140"
rows=
"7"
></textarea>
<textarea
class=
"form-control"
type=
"description"
id=
"article_content"
name=
"content"
placeholder=
"Zawartosc"
maxlength=
"140"
rows=
"7"
></textarea>
</form>
</form>
</div>
</div>
<div
class=
"modal-footer"
id=
"modal-footer"
>
<div
class=
"modal-footer"
id=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-primary"
>
Add project
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"addProjectBtn"
>
Add project
</button>
<script>
$
(
"#addProjectBtn"
).
off
(
"click"
);
$
(
"#addProjectBtn"
).
on
(
"click"
,
function
(){
var
name
=
$
(
"#name"
).
val
();
var
desc
=
$
(
"#desc"
).
val
();
var
data
=
{
"author"
:
"http://127.0.0.1:8000/api/users/1/"
,
"beacon_managers"
:
[],
"name"
:
name
,
"description"
:
desc
};
$
.
ajax
({
url
:
"/api/user_project/"
,
type
:
'POST'
,
data
:
JSON
.
stringify
(
data
),
contentType
:
"application/json"
,
success
:
function
(
result
)
{
alert
(
JSON
.
stringify
(
result
))
}
});
});
</script>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment