1 |
7fe7be79
|
zemanm98@students.zcu.cz
|
<html>
|
2 |
|
|
<head>
|
3 |
|
|
<title>Devices Details</title>
|
4 |
|
|
</head>
|
5 |
|
|
<body>
|
6 |
|
|
<div style='float:left'>
|
7 |
|
|
<form action="" method="get">
|
8 |
|
|
<label for="view">Choose view:</label>
|
9 |
|
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
10 |
|
|
<option value=""></option>
|
11 |
|
|
<option value="/logs-web">Logs</option>
|
12 |
|
|
<option value="/ldlogs-web">LD Logs</option>
|
13 |
|
|
<option value="/devices-web">Devices</option>
|
14 |
|
|
<option value="/body-devices-web">Body Devices</option>
|
15 |
|
|
<option value="/teams-web">Teams</option>
|
16 |
|
|
<option value="/pcs-web">PCs</option>
|
17 |
5dc6d077
|
Matej Zeman
|
<option value="/licenses-web">Licenses</option>
|
18 |
7fe7be79
|
zemanm98@students.zcu.cz
|
</select>
|
19 |
|
|
<input type="submit" value="OK">
|
20 |
|
|
</form>
|
21 |
|
|
</div>
|
22 |
|
|
<div style='float:left'>
|
23 |
|
|
<form action="/login" method="get">
|
24 |
|
|
<input type="submit" value="Login" />
|
25 |
|
|
</form>
|
26 |
|
|
</div>
|
27 |
|
|
<div style='float:left'>
|
28 |
|
|
<form action="/logout" method="get">
|
29 |
|
|
<input type="submit" value="Logout" />
|
30 |
|
|
</form>
|
31 |
|
|
</div>
|
32 |
|
|
<h4>{{user}}</h4>
|
33 |
|
|
<form action="/body-devices-web" method="post">
|
34 |
|
|
<label for="lic">License:</label>
|
35 |
|
|
<input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
|
36 |
|
|
<datalist id="licenses">
|
37 |
|
|
{% for license in licenses %}
|
38 |
|
|
<option value="{{license.name}}"></option>
|
39 |
|
|
{% endfor %}
|
40 |
|
|
</datalist>
|
41 |
|
|
<input type="submit" value="Filter">
|
42 |
|
|
</form>
|
43 |
|
|
<table>
|
44 |
|
|
<TR>
|
45 |
|
|
<TH>ID</TH>
|
46 |
|
|
<TH>Serial Number</TH>
|
47 |
|
|
<TH>Licenses</TH>
|
48 |
|
|
<TH>Status</TH>
|
49 |
|
|
</TR>
|
50 |
|
|
{% for i in range(devs) %}
|
51 |
|
|
<TR>
|
52 |
|
|
<TD class="ID"><a href="/body-device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
|
53 |
|
|
<TD class="Serial Number">{{devices[i].serial_number}}</TD>
|
54 |
|
|
<TD class="License">
|
55 |
|
|
{% for lic in devices[i].debug_licenses %}
|
56 |
|
|
{{lic.b_licenses.name}}<BR>
|
57 |
|
|
{% endfor %}
|
58 |
|
|
</TD>
|
59 |
|
|
<TD class="Status">{{statuses[i]}}</TD>
|
60 |
|
|
</TR>
|
61 |
|
|
{% endfor %}
|
62 |
|
|
<TR>
|
63 |
|
|
<TD class="ID"></TD>
|
64 |
|
|
<TD class="Serial Number"></TD>
|
65 |
|
|
<TD class="License">
|
66 |
|
|
<form action="/license-create" method="get">
|
67 |
|
|
<input type="submit" value="Add">
|
68 |
|
|
</form>
|
69 |
|
|
</TD>
|
70 |
|
|
</TR>
|
71 |
|
|
</table>
|
72 |
|
|
</body>
|
73 |
|
|
</html>
|