1 |
c0f38eab
|
Matej Zeman
|
<html>
|
2 |
|
|
<head>
|
3 |
35168e5f
|
zemanm98@students.zcu.cz
|
<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>
|
27 |
c0f38eab
|
Matej Zeman
|
<title>Devices Details</title>
|
28 |
|
|
</head>
|
29 |
|
|
<body>
|
30 |
2552e614
|
Matej Zeman
|
<div style='float:left;padding-right:20px'>
|
31 |
|
|
<b>Your role: {{user}}</b>
|
32 |
|
|
</div>
|
33 |
|
|
<div style='float:left;padding-right:5px'>
|
34 |
|
|
<form action="/login" method="get">
|
35 |
|
|
<input type="submit" value="Login" />
|
36 |
|
|
</form>
|
37 |
|
|
</div>
|
38 |
|
|
<div style='float:left;padding-right:5px'>
|
39 |
|
|
<form action="/signup" method="get">
|
40 |
|
|
<input type="submit" value="Sign Up" />
|
41 |
|
|
</form>
|
42 |
|
|
</div>
|
43 |
|
|
<form action="/logout" method="get">
|
44 |
|
|
<input type="submit" value="Logout" />
|
45 |
|
|
</form>
|
46 |
b6f0e019
|
Matej Zeman
|
<form action="" method="get">
|
47 |
|
|
<label for="view">Choose view:</label>
|
48 |
|
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
49 |
35168e5f
|
zemanm98@students.zcu.cz
|
<option value="/logs-web">Vector Logs</option>
|
50 |
|
|
<option value="/ldlogs-web">Lauterbach Logs</option>
|
51 |
6ad54e2e
|
zemanm98@students.zcu.cz
|
<option value="/devices-web" selected>Keyman Devices</option>
|
52 |
0fcb708f
|
Matej Zeman
|
<option value="/body-devices-web">Lauterbach Body Devices</option>
|
53 |
|
|
<option value="/head-devices-web">Lauterbach Head Devices</option>
|
54 |
4858e9ee
|
Matej Zeman
|
<option value="/teams-web">Teams</option>
|
55 |
|
|
<option value="/pcs-web">PCs</option>
|
56 |
5dc6d077
|
Matej Zeman
|
<option value="/licenses-web">Licenses</option>
|
57 |
cbd239c6
|
Matej Zeman
|
<option value="/users-web">Users</option>
|
58 |
b6f0e019
|
Matej Zeman
|
</select>
|
59 |
|
|
<input type="submit" value="OK">
|
60 |
|
|
</form>
|
61 |
4858e9ee
|
Matej Zeman
|
<form action="/devices-web" method="post">
|
62 |
35168e5f
|
zemanm98@students.zcu.cz
|
<label for="keyman_id">Keyman ID:</label>
|
63 |
93d0ec10
|
Matej Zeman
|
<input id="keyman_id" name="keyman_id" type="text" list="keyman_ids" value="{{keyman_val}}" placeholder="all" onClick="this.select();">
|
64 |
35168e5f
|
zemanm98@students.zcu.cz
|
<datalist id="keyman_ids">
|
65 |
|
|
{% for dev in devs %}
|
66 |
|
|
<option value="{{dev.serial_number}}"></option>
|
67 |
|
|
{% endfor %}
|
68 |
|
|
</datalist>
|
69 |
6ad54e2e
|
zemanm98@students.zcu.cz
|
<label for="lic_name">License Type:</label>
|
70 |
93d0ec10
|
Matej Zeman
|
<input id="lic_name" name="lic_name" type="text" list="licenses_names" value="{{licn_val}}" placeholder="all" onClick="this.select();">
|
71 |
35168e5f
|
zemanm98@students.zcu.cz
|
<datalist id="licenses_names">
|
72 |
b6f0e019
|
Matej Zeman
|
{% for license in licenses %}
|
73 |
|
|
<option value="{{license.name}}"></option>
|
74 |
|
|
{% endfor %}
|
75 |
|
|
</datalist>
|
76 |
35168e5f
|
zemanm98@students.zcu.cz
|
<label for="lic_id">License ID:</label>
|
77 |
93d0ec10
|
Matej Zeman
|
<input id="lic_id" name="lic_id" type="text" list="licenses_ids" value="{{lici_val}}" placeholder="all" onClick="this.select();">
|
78 |
35168e5f
|
zemanm98@students.zcu.cz
|
<datalist id="licenses_ids">
|
79 |
|
|
{% for license in licenses %}
|
80 |
|
|
<option value="{{license.license_id}}"></option>
|
81 |
|
|
{% endfor %}
|
82 |
|
|
</datalist>
|
83 |
|
|
<label for="team">Team:</label>
|
84 |
93d0ec10
|
Matej Zeman
|
<input id="team" name="team" type="text" list="teams" value="{{team_val}}" placeholder="all" onClick="this.select();">
|
85 |
35168e5f
|
zemanm98@students.zcu.cz
|
<datalist id="teams">
|
86 |
|
|
{% for team in teams %}
|
87 |
|
|
<option value="{{team.name}}">{{team.name}}</option>
|
88 |
|
|
{% endfor %}
|
89 |
|
|
</datalist>
|
90 |
b6f0e019
|
Matej Zeman
|
<input type="submit" value="Filter">
|
91 |
|
|
</form>
|
92 |
35168e5f
|
zemanm98@students.zcu.cz
|
<table id="devices">
|
93 |
c0f38eab
|
Matej Zeman
|
<TR>
|
94 |
|
|
<TH>ID</TH>
|
95 |
35168e5f
|
zemanm98@students.zcu.cz
|
<TH>Keyman ID</TH>
|
96 |
|
|
<TH>License Type</TH>
|
97 |
|
|
<TH>License ID</TH>
|
98 |
|
|
<TH>Inventory Number</TH>
|
99 |
|
|
<TH>Team</TH>
|
100 |
|
|
<TH>Last Username</TH>
|
101 |
|
|
<TH>Last Hostname</TH>
|
102 |
|
|
<TH>Last Detection</TH>
|
103 |
eaf8ace4
|
Matej Zeman
|
<TH>Status</TH>
|
104 |
35168e5f
|
zemanm98@students.zcu.cz
|
<TH>Comment</TH>
|
105 |
c0f38eab
|
Matej Zeman
|
</TR>
|
106 |
35168e5f
|
zemanm98@students.zcu.cz
|
{% for dev in devices %}
|
107 |
c0f38eab
|
Matej Zeman
|
<TR>
|
108 |
35168e5f
|
zemanm98@students.zcu.cz
|
<TD class="ID"><a href="/device-license/{{dev['device'].id}}">{{dev['device'].id}}</a></TD>
|
109 |
|
|
<TD class="Serial Number">{{dev['device'].serial_number}}</TD>
|
110 |
|
|
<TD class="License">{{dev['license'].name}}</TD>
|
111 |
|
|
<TD class="License ID">{{dev['license'].license_id}}</TD>
|
112 |
|
|
<TD class="Inventory Number">{{dev['device'].inventory_number}}</TD>
|
113 |
|
|
<TD class="Team">{{dev['device'].team.name}}</TD>
|
114 |
|
|
<TD class="Last Username">{{dev['log'].pc.username}}</TD>
|
115 |
|
|
<TD class="Last Hostname">{{dev['log'].pc.hostname}}</TD>
|
116 |
|
|
<TD class="Last Detection">{{dev['log'].timestamp}}</TD>
|
117 |
|
|
<TD class="Status">{{dev['log'].status}}</TD>
|
118 |
|
|
<TD class="Comment">{{dev['device'].comment}}</TD>
|
119 |
c0f38eab
|
Matej Zeman
|
</TR>
|
120 |
|
|
{% endfor %}
|
121 |
|
|
</table>
|
122 |
|
|
</body>
|
123 |
|
|
</html>
|