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

{% block title %} Configure Device: {% endblock %}

{% block content %}

<div class="row">
	<div class="col-md-6 col-md-offset-3">
Vladislav Rykov's avatar
Vladislav Rykov committed
9
10
		<h2> Configure Device: {{ devname }} </h2>
		<br><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
11
		<form action="dev-conf" method="post">
Vladislav Rykov's avatar
Vladislav Rykov committed
12
13
			<div class="form-group">
				<label>Config ID:</label><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
14
				<input type="number" size="3" min="0" max="255" class="form-control" id="confid" name="confid" required></textarea>
Vladislav Rykov's avatar
Vladislav Rykov committed
15
			</div>
Vladislav Rykov's avatar
Vladislav Rykov committed
16
			<br>
Vladislav Rykov's avatar
Vladislav Rykov committed
17
18
			<div class="form-group">
				<label>Argument:</label><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
19
				<textarea type="text" maxlength="50" class="form-control" id="arg" name="arg" rows="2" reqiured></textarea>
Vladislav Rykov's avatar
Vladislav Rykov committed
20
			</div>
Vladislav Rykov's avatar
Vladislav Rykov committed
21
			<br><br>
Vladislav Rykov's avatar
Vladislav Rykov committed
22
23
24
25
26
27
28
29
30
31
32
33
34
			<div class="form-group">
				<button type="submit" class="btn btn-primary">Configure</button>
			</div>

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

{% endblock %}