1
|
<html>
|
2
|
<head>
|
3
|
<title>Pcs Details</title>
|
4
|
</head>
|
5
|
<body>
|
6
|
<form action="" method="get">
|
7
|
<label for="view">Choose view:</label>
|
8
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
9
|
<option value=""></option>
|
10
|
<option value="/api/v1/logs-web">Logs</option>
|
11
|
<option value="/api/v1/devices-web">Devices</option>
|
12
|
<option value="/api/v1/teams-web">Teams</option>
|
13
|
<option value="/api/v1/pcs-web">PCs</option>
|
14
|
</select>
|
15
|
<input type="submit" value="OK">
|
16
|
</form>
|
17
|
<table>
|
18
|
<TR>
|
19
|
<TH>ID</TH>
|
20
|
<TH>Username</TH>
|
21
|
<TH>Hostname</TH>
|
22
|
<TH>Team</TH>
|
23
|
</TR>
|
24
|
{% for pc in pcs %}
|
25
|
<TR>
|
26
|
<TD class="ID"><a href="/api/v1/pc-team/{{pc.id}}">{{pc.id}}</a></TD>
|
27
|
<TD class="Vendor ID">{{pc.username}}</TD>
|
28
|
<TD class="Product ID">{{pc.hostname}}</TD>
|
29
|
{% if pc.team == None %}
|
30
|
<TD class="Team">NONE</TD>
|
31
|
{% else %}
|
32
|
<TD class="Team">{{pc.team.name}}</TD>
|
33
|
{% endif %}
|
34
|
</TR>
|
35
|
{% endfor %}
|
36
|
</table>
|
37
|
</body>
|
38
|
</html>
|