config_weather.html
1.66 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% extends base_template %}
{% block content %}
<div class="row">
<h1 id="none">Weather config for {{weather_config.origin.plc_origin}} {{weather_config.origin.plc_site}}</h1>
<div class="well">
Captors list:
</div>
<div class="row">
<h3>Valid meteo devices</h3>
<div>
<form class="form-horizontal" action="/action_page.php">
<table class="table">
<thead>
<tr>
<th>device_name</th>
<th>device_type</th>
<th>serial_number</th>
<th>valid</th>
<th>name</th>
<th>monitor_name</th>
<th>type</th>
<th>Select </th>
</tr>
</thead>
<tbody>
{% for line in weather_config.sensors_table %}
<tr class="info">
<td>{{line.0}}</td>
<td>{{line.1}}</td>
<td>{{line.2}}</td>
<td>{{line.3}}</td>
<td>{{line.4}}</td>
<td onclick="alert('New value')">{{line.5}}</td>
<td>{{line.6}}</td>
<td><input class="form-check-input" name="{{line.5}}" value="{{line.8}}" {{line.7}} type="radio"></td>
</tr>
{% endfor %}
</tbody>
</table>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
{% endblock %}