Projekt

Obecné

Profil

Stáhnout (2.32 KB) Statistiky
| Větev: | Tag: | Revize:
1 7fe7be79 zemanm98@students.zcu.cz
<html>
2
<head>
3
    <title>Devices Details</title>
4
</head>
5
<body>
6 2552e614 Matej Zeman
<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 7fe7be79 zemanm98@students.zcu.cz
<form action="" method="get">
23
  <label for="view">Choose view:</label>
24
  <select id="view" name="view" onchange="this.form.action=this.value;">
25 35168e5f zemanm98@students.zcu.cz
      <option value="/logs-web">Vector Logs</option>
26
      <option value="/ldlogs-web">Lauterbach Logs</option>
27 7fe7be79 zemanm98@students.zcu.cz
      <option value="/devices-web">Devices</option>
28 35168e5f zemanm98@students.zcu.cz
      <option value="/body-devices-web" selected>Body Devices</option>
29 7fe7be79 zemanm98@students.zcu.cz
      <option value="/teams-web">Teams</option>
30
      <option value="/pcs-web">PCs</option>
31 5dc6d077 Matej Zeman
      <option value="/licenses-web">Licenses</option>
32 cbd239c6 Matej Zeman
      <option value="/users-web">Users</option>
33 7fe7be79 zemanm98@students.zcu.cz
  </select>
34
  <input type="submit" value="OK">
35
</form>
36
<form action="/body-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 35168e5f zemanm98@students.zcu.cz
        <TH>Lauterbach Body ID</TH>
50 7fe7be79 zemanm98@students.zcu.cz
        <TH>Licenses</TH>
51
        <TH>Status</TH>
52
    </TR>
53
    {% for i in range(devs) %}
54
    <TR>
55
        <TD class="ID"><a href="/body-device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
56
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
57
        <TD class="License">
58
            {% for lic in devices[i].debug_licenses %}
59
                {{lic.b_licenses.name}}<BR>
60
            {% endfor %}
61
        </TD>
62
        <TD class="Status">{{statuses[i]}}</TD>
63
    </TR>
64
    {% endfor %}
65
    <TR>
66
        <TD class="ID"></TD>
67
        <TD class="Serial Number"></TD>
68
        <TD class="License">
69
            <form action="/license-create" method="get">
70
                <input type="submit" value="Add">
71
            </form>
72
        </TD>
73
    </TR>
74
</table>
75
</body>
76
</html>