Projekt

Obecné

Profil

Stáhnout (1.99 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="/token" method="get">
18
    <input type="submit" value="Login" />
19
</form>
20
<form action="/devices-web" method="post">
21
    <label for="lic">License:</label>
22
    <input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
23
    <datalist id="licenses">
24
        {% for license in licenses %}
25
        <option value="{{license.name}}"></option>
26
        {% endfor %}
27
    </datalist>
28
  <input type="submit" value="Filter">
29
</form>
30
<table>
31
    <TR>
32
        <TH>ID</TH>
33
        <TH>Vendor ID</TH>
34
        <TH>Product ID</TH>
35
        <TH>Serial Number</TH>
36
        <TH>Licenses</TH>
37
        <TH>Status</TH>
38
    </TR>
39
    {% for i in range(devs) %}
40
    <TR>
41
        <TD class="ID"><a href="/device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
42
        <TD class="Vendor ID">{{devices[i].vendor_id}}</TD>
43
        <TD class="Product ID">{{devices[i].product_id}}</TD>
44
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
45
        <TD class="License">
46
            {% for lic in devices[i].licenses %}
47
                {{lic.licenses.name}}<BR>
48
            {% endfor %}
49
        </TD>
50
        <TD class="Status">{{statuses[i]}}</TD>
51
    </TR>
52
    {% endfor %}
53
    <TR>
54
        <TD class="ID"></TD>
55
        <TD class="Vendor ID"></TD>
56
        <TD class="Product ID"></TD>
57
        <TD class="Serial Number"></TD>
58
        <TD class="License">
59
            <form action="/license-create" method="get">
60
                <input type="submit" value="Add">
61
            </form>
62
        </TD>
63
    </TR>
64
</table>
65
</body>
66
</html>
(2-2/3)