add-dev.html 984 Bytes
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
2
3
4
5
6
7
{% extends 'layout.html' %}

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

{% block content %}

<div class="row">
Vladislav Rykov's avatar
Vladislav Rykov committed
8
9
10
	<div class="col-md-6 col-md-offset-3">
		<h2> Add New Device </h2>
		<br><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
11
12
13
		<form action="dev" method="post">
			<div class="form-group">
				<label>Name:</label><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
14
				<input type="text" class="form-control" id="devname" name="devname" required><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
15
16
17
			</div>
			<div class="form-group">
				<label>Description:</label><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
18
				<textarea id="devdesc" class="form-control" name="devdesc" cols="40" rows="5"></textarea>
Vladislav Rykov's avatar
Vladislav Rykov committed
19
			</div>
Vladislav Rykov's avatar
Vladislav Rykov committed
20
			<br>
Vladislav Rykov's avatar
Vladislav Rykov committed
21
22
			<div class="form-group">
				<label>dev_id: {{ free_ids }}</label><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
23
				<input type="text" class="form-control" id="devid" name="devid" required><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
24
			</div>
Vladislav Rykov's avatar
Vladislav Rykov committed
25
			<br>
Vladislav Rykov's avatar
Vladislav Rykov committed
26
			<div class="form-group">
Vladislav Rykov's avatar
Vladislav Rykov committed
27
				<button type="submit" class="btn btn-primary">Add New Device</button>
Vladislav Rykov's avatar
Vladislav Rykov committed
28
29
30
31
32
33
34
35
36
37
38
			</div>

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

{% endblock %}