add-dev.html 837 Bytes
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{% extends 'layout.html' %}

{% block title %} Add new device: {% endblock %}

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset3">
		<form action="dev" method="post">
			<div class="form-group">
				<label>Name:</label><br>
				<input type="text" id="devname" name="devname"><br>
			</div>
			<div class="form-group">
				<label>Description:</label><br>
				<textarea id="devdesc" name="devdesc" cols="40" rows="5"></textarea>
			</div>
			<div class="form-group">
				<label>dev_id: {{ free_ids }}</label><br>
				<input type="text" id="devid" name="devid"><br>
			</div>

			<div class="form-group">
				<button type="submit" class="btn btn-primary">Add</button>
			</div>

			{% if feedback %}
			<p class="text-danger float-right">{{ feedback }}</p>
			{% endif %}
		</form>
	</div>
</div>

{% endblock %}