Revize 35168e5f
Přidáno uživatelem Matěj Zeman před téměř 3 roky(ů)
server/templates/devices/devices_normal.html | ||
---|---|---|
1 | 1 |
<html> |
2 | 2 |
<head> |
3 |
<style> |
|
4 |
#devices { |
|
5 |
font-family: Arial, Helvetica, sans-serif; |
|
6 |
border-collapse: collapse; |
|
7 |
width: 100%; |
|
8 |
} |
|
9 |
|
|
10 |
#devices td, #devices th { |
|
11 |
border: 1px solid #ddd; |
|
12 |
padding: 8px; |
|
13 |
} |
|
14 |
|
|
15 |
#devices tr:nth-child(even){background-color: #f2f2f2;} |
|
16 |
|
|
17 |
#devices tr:hover {background-color: #ddd;} |
|
18 |
|
|
19 |
#devices th { |
|
20 |
padding-top: 12px; |
|
21 |
padding-bottom: 12px; |
|
22 |
text-align: left; |
|
23 |
background-color: #47BBF5; |
|
24 |
color: black; |
|
25 |
} |
|
26 |
</style> |
|
3 | 27 |
<title>Devices Details</title> |
4 | 28 |
</head> |
5 | 29 |
<body> |
... | ... | |
22 | 46 |
<form action="" method="get"> |
23 | 47 |
<label for="view">Choose view:</label> |
24 | 48 |
<select id="view" name="view" onchange="this.form.action=this.value;"> |
25 |
<option value=""></option> |
|
26 |
<option value="/logs-web">Logs</option> |
|
27 |
<option value="/ldlogs-web">LD Logs</option> |
|
28 |
<option value="/devices-web">Devices</option> |
|
49 |
<option value="/logs-web">Vector Logs</option> |
|
50 |
<option value="/ldlogs-web">Lauterbach Logs</option> |
|
51 |
<option value="/devices-web" selected>Devices</option> |
|
29 | 52 |
<option value="/body-devices-web">Body Devices</option> |
30 | 53 |
<option value="/teams-web">Teams</option> |
31 | 54 |
<option value="/pcs-web">PCs</option> |
... | ... | |
43 | 66 |
</datalist> |
44 | 67 |
<input type="submit" value="Filter"> |
45 | 68 |
</form> |
46 |
<table> |
|
69 |
<table id="devices">
|
|
47 | 70 |
<TR> |
48 | 71 |
<TH>ID</TH> |
49 |
<TH>Vendor ID</TH> |
|
50 |
<TH>Product ID</TH> |
|
51 |
<TH>Serial Number</TH> |
|
52 |
<TH>Licenses</TH> |
|
72 |
<TH>Keyman ID</TH> |
|
73 |
<TH>License Type</TH> |
|
74 |
<TH>License ID</TH> |
|
75 |
<TH>Inventory Number</TH> |
|
76 |
<TH>Team</TH> |
|
77 |
<TH>Last Username</TH> |
|
78 |
<TH>Last Hostname</TH> |
|
79 |
<TH>Last Detection</TH> |
|
53 | 80 |
<TH>Status</TH> |
81 |
<TH>Comment</TH> |
|
54 | 82 |
</TR> |
55 |
{% for i in range(devs) %}
|
|
83 |
{% for dev in devices %}
|
|
56 | 84 |
<TR> |
57 |
<TD class="ID">{{devices[i].id}}</TD> |
|
58 |
<TD class="Vendor ID">{{devices[i].vendor_id}}</TD> |
|
59 |
<TD class="Product ID">{{devices[i].product_id}}</TD> |
|
60 |
<TD class="Serial Number">{{devices[i].serial_number}}</TD> |
|
61 |
<TD class="License"> |
|
62 |
{% for lic in devices[i].licenses %} |
|
63 |
{{lic.licenses.name}}<BR> |
|
64 |
{% endfor %} |
|
65 |
</TD> |
|
66 |
<TD class="Status">{{statuses[i]}}</TD> |
|
85 |
<TD class="ID">{{dev['device'].id}}</TD> |
|
86 |
<TD class="Serial Number">{{dev['device'].serial_number}}</TD> |
|
87 |
<TD class="License">{{dev['license'].name}}</TD> |
|
88 |
<TD class="License ID">{{dev['license'].license_id}}</TD> |
|
89 |
<TD class="Inventory Number">{{dev['device'].inventory_number}}</TD> |
|
90 |
<TD class="Team">{{dev['device'].team.name}}</TD> |
|
91 |
<TD class="Last Username">{{dev['log'].pc.username}}</TD> |
|
92 |
<TD class="Last Hostname">{{dev['log'].pc.hostname}}</TD> |
|
93 |
<TD class="Last Detection">{{dev['log'].timestamp}}</TD> |
|
94 |
<TD class="Status">{{dev['log'].status}}</TD> |
|
95 |
<TD class="Comment">{{dev['device'].comment}}</TD> |
|
67 | 96 |
</TR> |
68 | 97 |
{% endfor %} |
69 | 98 |
</table> |
Také k dispozici: Unified diff
Fixed minor issues. View on keyman devices changed. Changed database for new keyman x license connection.