Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
5364a515
Commit
5364a515
authored
Apr 15, 2020
by
Vladislav Rykov
Browse files
add new device view changed
parent
9fbc6a2b
Changes
1
Show whitespace changes
Inline
Side-by-side
templates/add-dev.html
View file @
5364a515
...
@@ -5,23 +5,26 @@
...
@@ -5,23 +5,26 @@
{% block content %}
{% block content %}
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 col-md-offset3"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<h2>
Add New Device
</h2>
<br><br>
<form
action=
"dev"
method=
"post"
>
<form
action=
"dev"
method=
"post"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Name:
</label><br>
<label>
Name:
</label><br>
<input
type=
"text"
id=
"devname"
name=
"devname"
><br>
<input
type=
"text"
class=
"form-control"
id=
"devname"
name=
"devname"
required
><br>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
Description:
</label><br>
<label>
Description:
</label><br>
<textarea
id=
"devdesc"
name=
"devdesc"
cols=
"40"
rows=
"5"
></textarea>
<textarea
id=
"devdesc"
class=
"form-control"
name=
"devdesc"
cols=
"40"
rows=
"5"
></textarea>
</div>
</div>
<br>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
dev_id: {{ free_ids }}
</label><br>
<label>
dev_id: {{ free_ids }}
</label><br>
<input
type=
"text"
id=
"devid"
name=
"devid"
><br>
<input
type=
"text"
class=
"form-control"
id=
"devid"
name=
"devid"
required
><br>
</div>
</div>
<br>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Add
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
Add
New Device
</button>
</div>
</div>
{% if feedback %}
{% if feedback %}
...
...
Write
Preview
Supports
Markdown
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