Projekt

Obecné

Profil

Stáhnout (1.93 KB) Statistiky
| Větev: | Tag: | Revize:
1
<html>
2
<head>
3
    <title>Devices Details</title>
4
</head>
5
<body>
6
<div style='float:left'>
7
<form action="" method="get">
8
  <label for="view">Choose view:</label>
9
  <select id="view" name="view" onchange="this.form.action=this.value;">
10
      <option value=""></option>
11
      <option value="/logs-web">Logs</option>
12
      <option value="/ldlogs-web">LD Logs</option>
13
      <option value="/devices-web">Devices</option>
14
      <option value="/body-devices-web">Body Devices</option>
15
      <option value="/teams-web">Teams</option>
16
      <option value="/pcs-web">PCs</option>
17
  </select>
18
  <input type="submit" value="OK">
19
</form>
20
</div>
21
<div style='float:left'>
22
<form action="/login" method="get">
23
    <input type="submit" value="Login" />
24
</form>
25
</div>
26
<div style='float:left'>
27
<form action="/logout" method="get">
28
    <input type="submit" value="Logout" />
29
</form>
30
</div>
31
<h4>{{user}}</h4>
32
<form action="/devices-web" method="post">
33
    <label for="lic">License:</label>
34
    <input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
35
    <datalist id="licenses">
36
        {% for license in licenses %}
37
        <option value="{{license.name}}"></option>
38
        {% endfor %}
39
    </datalist>
40
  <input type="submit" value="Filter">
41
</form>
42
<table>
43
    <TR>
44
        <TH>ID</TH>
45
        <TH>Vendor ID</TH>
46
        <TH>Product ID</TH>
47
        <TH>Serial Number</TH>
48
        <TH>Licenses</TH>
49
        <TH>Status</TH>
50
    </TR>
51
    {% for i in range(devs) %}
52
    <TR>
53
        <TD class="ID">{{devices[i].id}}</TD>
54
        <TD class="Vendor ID">{{devices[i].vendor_id}}</TD>
55
        <TD class="Product ID">{{devices[i].product_id}}</TD>
56
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
57
        <TD class="License">
58
            {% for lic in devices[i].licenses %}
59
                {{lic.licenses.name}}<BR>
60
            {% endfor %}
61
        </TD>
62
        <TD class="Status">{{statuses[i]}}</TD>
63
    </TR>
64
    {% endfor %}
65
</table>
66
</body>
67
</html>
(3-3/3)