Projekt

Obecné

Profil

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