Revize 0fcb708f
Přidáno uživatelem Matěj Zeman před téměř 3 roky(ů)
server/templates/body-devices/body_devices.html | ||
---|---|---|
49 | 49 |
<option value="/logs-web">Vector Logs</option> |
50 | 50 |
<option value="/ldlogs-web">Lauterbach Logs</option> |
51 | 51 |
<option value="/devices-web">Keyman Devices</option> |
52 |
<option value="/body-devices-web" selected>Lauterbach Devices</option> |
|
52 |
<option value="/body-devices-web" selected>Lauterbach Body Devices</option> |
|
53 |
<option value="/head-devices-web">Lauterbach Head Devices</option> |
|
53 | 54 |
<option value="/teams-web">Teams</option> |
54 | 55 |
<option value="/pcs-web">PCs</option> |
55 | 56 |
<option value="/licenses-web">Licenses</option> |
... | ... | |
58 | 59 |
<input type="submit" value="OK"> |
59 | 60 |
</form> |
60 | 61 |
<form action="/body-devices-web" method="post"> |
61 |
<label for="lic">License:</label> |
|
62 |
<input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all"> |
|
63 |
<datalist id="licenses"> |
|
62 |
<label for="body_id">Body Device ID:</label> |
|
63 |
<input id="body_id" name="body_id" type="text" list="body_ids" value="" placeholder="all"> |
|
64 |
<datalist id="body_ids"> |
|
65 |
{% for dev in devs %} |
|
66 |
<option value="{{dev.serial_number}}"></option> |
|
67 |
{% endfor %} |
|
68 |
</datalist> |
|
69 |
<label for="lic_id">License ID:</label> |
|
70 |
<input id="lic_id" name="lic_id" type="text" list="licenses_ids" value="" placeholder="all"> |
|
71 |
<datalist id="licenses_ids"> |
|
64 | 72 |
{% for license in licenses %} |
65 |
<option value="{{license.name}}"></option> |
|
73 |
<option value="{{license.license_id}}"></option> |
|
74 |
{% endfor %} |
|
75 |
</datalist> |
|
76 |
<label for="team">Team:</label> |
|
77 |
<input id="team" name="team" type="text" list="teams" value="" placeholder="all"> |
|
78 |
<datalist id="teams"> |
|
79 |
{% for team in teams %} |
|
80 |
<option value="{{team.name}}">{{team.name}}</option> |
|
66 | 81 |
{% endfor %} |
67 | 82 |
</datalist> |
68 | 83 |
<input type="submit" value="Filter"> |
... | ... | |
71 | 86 |
<TR> |
72 | 87 |
<TH>ID</TH> |
73 | 88 |
<TH>Lauterbach Body ID</TH> |
74 |
<TH>Licenses</TH> |
|
89 |
<TH>License ID</TH> |
|
90 |
<TH>Inventory Number</TH> |
|
91 |
<TH>Team</TH> |
|
92 |
<TH>Last Username</TH> |
|
93 |
<TH>Last Hostname</TH> |
|
94 |
<TH>Last Detection</TH> |
|
75 | 95 |
<TH>Status</TH> |
96 |
<TH>Comment</TH> |
|
76 | 97 |
</TR> |
77 |
{% for i in range(devs) %}
|
|
98 |
{% for dev in devices %}
|
|
78 | 99 |
<TR> |
79 |
<TD class="ID"><a href="/body-device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD> |
|
80 |
<TD class="Serial Number">{{devices[i].serial_number}}</TD> |
|
81 |
<TD class="License"> |
|
82 |
{% for lic in devices[i].debug_licenses %} |
|
83 |
{{lic.b_licenses.name}}<BR> |
|
84 |
{% endfor %} |
|
85 |
</TD> |
|
86 |
<TD class="Status">{{statuses[i]}}</TD> |
|
100 |
<TD class="ID"><a href="/body-device-license/{{dev['device'].id}}">{{dev['device'].id}}</a></TD> |
|
101 |
<TD class="Lauterbach Body ID">{{dev['device'].serial_number}}</TD> |
|
102 |
<TD class="License ID">{{dev['license'].license_id}}</TD> |
|
103 |
<TD class="Inventory Number">{{dev['device'].inventory_number}}</TD> |
|
104 |
<TD class="Team">{{dev['device'].team.name}}</TD> |
|
105 |
<TD class="Last Username">{{dev['log'].ldpc.username}}</TD> |
|
106 |
<TD class="Last Hostname">{{dev['log'].ldpc.hostname}}</TD> |
|
107 |
<TD class="Last Detection">{{dev['log'].timestamp}}</TD> |
|
108 |
<TD class="Status">{{dev['log'].status}}</TD> |
|
109 |
<TD class="Comment">{{dev['device'].comment}}</TD> |
|
87 | 110 |
</TR> |
88 | 111 |
{% endfor %} |
89 |
<TR> |
|
90 |
<TD class="ID"></TD> |
|
91 |
<TD class="Serial Number"></TD> |
|
92 |
<TD class="License"> |
|
93 |
<form action="/license-create" method="get"> |
|
94 |
<input type="submit" value="Add"> |
|
95 |
</form> |
|
96 |
</TD> |
|
97 |
</TR> |
|
98 | 112 |
</table> |
99 | 113 |
</body> |
100 | 114 |
</html> |
Také k dispozici: Unified diff
re #9846 Changed keyman devices, body devices views. Added Head devices view. Changed filtering of logs, ldlogs, body devices, head devices and keyman devices. Changed HTML tables style and few labels.