Projekt

Obecné

Profil

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