Projekt

Obecné

Profil

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