1
|
<html>
|
2
|
<head>
|
3
|
<title> LD Logs Details</title>
|
4
|
</head>
|
5
|
<body>
|
6
|
<div style='float:left;padding-right:20px'>
|
7
|
<b>Your role: {{user}}</b>
|
8
|
</div>
|
9
|
<div style='float:left;padding-right:5px'>
|
10
|
<form action="/login" method="get">
|
11
|
<input type="submit" value="Login" />
|
12
|
</form>
|
13
|
</div>
|
14
|
<div style='float:left;padding-right:5px'>
|
15
|
<form action="/signup" method="get">
|
16
|
<input type="submit" value="Sign Up" />
|
17
|
</form>
|
18
|
</div>
|
19
|
<form action="/logout" method="get">
|
20
|
<input type="submit" value="Logout" />
|
21
|
</form>
|
22
|
<form action="" method="get">
|
23
|
<label for="view">Choose view:</label>
|
24
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
25
|
<option value="/logs-web">Vector Logs</option>
|
26
|
<option value="/ldlogs-web" selected>Lauterbach Logs</option>
|
27
|
<option value="/devices-web">Devices</option>
|
28
|
<option value="/body-devices-web">Body Devices</option>
|
29
|
<option value="/teams-web">Teams</option>
|
30
|
<option value="/pcs-web">PCs</option>
|
31
|
<option value="/licenses-web">Licenses</option>
|
32
|
</select>
|
33
|
<input type="submit" value="OK">
|
34
|
</form>
|
35
|
<form action="/ldlogs-web" method="post">
|
36
|
<label for="pc">PC:</label>
|
37
|
<input id="pc" name="pc" type="text" list="pcs" value="" placeholder="all">
|
38
|
<datalist id="pcs">
|
39
|
{% for pc in pcs %}
|
40
|
<option value="{{pc.username}}"></option>
|
41
|
{% endfor %}
|
42
|
</datalist>
|
43
|
<label for="team">Team:</label>
|
44
|
<input id="team" name="team" type="text" list="teams" value="" placeholder="all">
|
45
|
<datalist id="teams">
|
46
|
{% for team in teams %}
|
47
|
<option value="{{team.name}}"></option>
|
48
|
{% endfor %}
|
49
|
</datalist>
|
50
|
<label for="lic">License:</label>
|
51
|
<input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
|
52
|
<datalist id="licenses">
|
53
|
{% for license in licenses %}
|
54
|
<option value="{{license.name}}"></option>
|
55
|
{% endfor %}
|
56
|
</datalist>
|
57
|
<input type="submit" value="Filter">
|
58
|
</form>
|
59
|
<table>
|
60
|
<TR>
|
61
|
<TH>ID</TH>
|
62
|
<TH>PC Username</TH>
|
63
|
<TH>PC Hostname</TH>
|
64
|
<TH>Team</TH>
|
65
|
<TH>Timestamp</TH>
|
66
|
<TH>Status</TH>
|
67
|
<TH>Lauterbach Head ID</TH>
|
68
|
<TH>Lauterbach Body ID</TH>
|
69
|
</TR>
|
70
|
{% for log in logs %}
|
71
|
<TR>
|
72
|
<TD class="ID">{{log.id}}</TD>
|
73
|
<TD class="Username">{{log.ldpc.username}}</TD>
|
74
|
<TD class="Hostname">{{log.ldpc.hostname}}</TD>
|
75
|
{% if log.ldpc.team == None %}
|
76
|
<TD class="Team">NONE</TD>
|
77
|
{% else %}
|
78
|
<TD class="Team">{{log.ldpc.team.name}}</TD>
|
79
|
{% endif %}
|
80
|
<TD class="Timestamp">{{log.timestamp}}</TD>
|
81
|
<TD class="Status">{{log.status}}</TD>
|
82
|
<TD class="HeadDeviceSerialNumber">{{log.head_device.serial_number}}</TD>
|
83
|
<TD class="BodyDeviceSerialNumber">{{log.body_device.serial_number}}</TD>
|
84
|
</TR>
|
85
|
{% endfor %}
|
86
|
</table>
|
87
|
</body>
|
88
|
</html>
|