Projekt

Obecné

Profil

Stáhnout (2.55 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
      <option value="/users-web">Users</option>
34
  </select>
35
  <input type="submit" value="OK">
36
</form>
37
<form action="/devices-web" method="post">
38
    <label for="lic">License:</label>
39
    <input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
40
    <datalist id="licenses">
41
        {% for license in licenses %}
42
        <option value="{{license.name}}"></option>
43
        {% endfor %}
44
    </datalist>
45
  <input type="submit" value="Filter">
46
</form>
47
<table>
48
    <TR>
49
        <TH>ID</TH>
50
        <TH>Vendor ID</TH>
51
        <TH>Product ID</TH>
52
        <TH>Serial Number</TH>
53
        <TH>Licenses</TH>
54
        <TH>Status</TH>
55
    </TR>
56
    {% for i in range(devs) %}
57
    <TR>
58
        <TD class="ID"><a href="/device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
59
        <TD class="Vendor ID">{{devices[i].vendor_id}}</TD>
60
        <TD class="Product ID">{{devices[i].product_id}}</TD>
61
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
62
        <TD class="License">
63
            {% for lic in devices[i].licenses %}
64
                {{lic.licenses.name}}<BR>
65
            {% endfor %}
66
        </TD>
67
        <TD class="Status">{{statuses[i]}}</TD>
68
    </TR>
69
    {% endfor %}
70
    <TR>
71
        <TD class="ID"></TD>
72
        <TD class="Vendor ID"></TD>
73
        <TD class="Product ID"></TD>
74
        <TD class="Serial Number"></TD>
75
        <TD class="License">
76
            <form action="/license-create" method="get">
77
                <input type="submit" value="Add">
78
            </form>
79
        </TD>
80
    </TR>
81
</table>
82
</body>
83
</html>
(2-2/3)