1
|
<html>
|
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>
|
27
|
<title> LD Logs Details</title>
|
28
|
</head>
|
29
|
<body>
|
30
|
<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
|
<form action="" method="get">
|
47
|
<label for="view">Choose view:</label>
|
48
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
49
|
<option value="/logs-web">Vector Logs</option>
|
50
|
<option value="/ldlogs-web" selected>Lauterbach Logs</option>
|
51
|
<option value="/devices-web">Keyman Devices</option>
|
52
|
<option value="/body-devices-web">Lauterbach Body Devices</option>
|
53
|
<option value="/head-devices-web">Lauterbach Head Devices</option>
|
54
|
<option value="/teams-web">Teams</option>
|
55
|
<option value="/pcs-web">PCs</option>
|
56
|
<option value="/licenses-web">Licenses</option>
|
57
|
<option value="/users-web">Users</option>
|
58
|
</select>
|
59
|
<input type="submit" value="OK">
|
60
|
</form>
|
61
|
<form action="/ldlogs-web" method="post">
|
62
|
<label for="pc">PC:</label>
|
63
|
<input id="pc" name="pc" type="text" list="pcs" value="" placeholder="all">
|
64
|
<datalist id="pcs">
|
65
|
{% for pc in pcs %}
|
66
|
<option value="{{pc.username}}"></option>
|
67
|
{% endfor %}
|
68
|
</datalist>
|
69
|
<label for="team">Team:</label>
|
70
|
<input id="team" name="team" type="text" list="teams" value="" placeholder="all">
|
71
|
<datalist id="teams">
|
72
|
{% for team in teams %}
|
73
|
<option value="{{team.name}}"></option>
|
74
|
{% endfor %}
|
75
|
</datalist>
|
76
|
<label for="lic">License:</label>
|
77
|
<input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
|
78
|
<datalist id="licenses">
|
79
|
{% for license in licenses %}
|
80
|
<option value="{{license.license_id}}"></option>
|
81
|
{% endfor %}
|
82
|
</datalist>
|
83
|
<input type="submit" value="Filter">
|
84
|
</form>
|
85
|
<table id="devices">
|
86
|
<TR>
|
87
|
<TH>ID</TH>
|
88
|
<TH>PC Username</TH>
|
89
|
<TH>PC Hostname</TH>
|
90
|
<TH>Head Team</TH>
|
91
|
<TH>Body Team</TH>
|
92
|
<TH>Timestamp</TH>
|
93
|
<TH>Status</TH>
|
94
|
<TH>Lauterbach Head ID</TH>
|
95
|
<TH>Lauterbach Body ID</TH>
|
96
|
</TR>
|
97
|
{% for log in logs %}
|
98
|
<TR>
|
99
|
<TD class="ID">{{log.id}}</TD>
|
100
|
<TD class="Username">{{log.ldpc.username}}</TD>
|
101
|
<TD class="Hostname">{{log.ldpc.hostname}}</TD>
|
102
|
<TD class="Head Team">{{log.head_device.team.name}}</TD>
|
103
|
<TD class="Body Team">{{log.body_device.team.name}}</TD>
|
104
|
<TD class="Timestamp">{{log.timestamp}}</TD>
|
105
|
<TD class="Status">{{log.status}}</TD>
|
106
|
<TD class="HeadDeviceSerialNumber">{{log.head_device.serial_number}}</TD>
|
107
|
<TD class="BodyDeviceSerialNumber">{{log.body_device.serial_number}}</TD>
|
108
|
</TR>
|
109
|
{% endfor %}
|
110
|
</table>
|
111
|
</body>
|
112
|
</html>
|