Projekt

Obecné

Profil

Stáhnout (1.77 KB) Statistiky
| Větev: | Tag: | Revize:
1 2fe004b1 Matej Zeman
<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="/devices-web">Devices</option>
13
      <option value="/teams-web">Teams</option>
14
      <option value="/pcs-web">PCs</option>
15
  </select>
16
  <input type="submit" value="OK">
17
</form>
18
</div>
19
<div style='float:left'>
20
<form action="/login" method="get">
21
    <input type="submit" value="Login" />
22
</form>
23
</div>
24
<form action="/logout" method="get">
25
    <input type="submit" value="Logout" />
26
</form>
27
<form action="/devices-web" method="post">
28
    <label for="lic">License:</label>
29
    <input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
30
    <datalist id="licenses">
31
        {% for license in licenses %}
32
        <option value="{{license.name}}"></option>
33
        {% endfor %}
34
    </datalist>
35
  <input type="submit" value="Filter">
36
</form>
37
<table>
38
    <TR>
39
        <TH>ID</TH>
40
        <TH>Vendor ID</TH>
41
        <TH>Product ID</TH>
42
        <TH>Serial Number</TH>
43
        <TH>Licenses</TH>
44
        <TH>Status</TH>
45
    </TR>
46
    {% for i in range(devs) %}
47
    <TR>
48
        <TD class="ID">{{devices[i].id}}</TD>
49
        <TD class="Vendor ID">{{devices[i].vendor_id}}</TD>
50
        <TD class="Product ID">{{devices[i].product_id}}</TD>
51
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
52
        <TD class="License">
53
            {% for lic in devices[i].licenses %}
54
                {{lic.licenses.name}}<BR>
55
            {% endfor %}
56
        </TD>
57
        <TD class="Status">{{statuses[i]}}</TD>
58
    </TR>
59
    {% endfor %}
60
</table>
61
</body>
62
</html>