Projekt

Obecné

Profil

Stáhnout (2.77 KB) Statistiky
| Větev: | Tag: | Revize:
1 7fe7be79 zemanm98@students.zcu.cz
<html>
2
<head>
3 6ad54e2e zemanm98@students.zcu.cz
    <style>
4
        #devices {
5
  font-family: Arial, Helvetica, sans-serif;
6
  border-collapse: collapse;
7
  width: 100%;
8
}
9
10
#devices td, #devices th {
11
  border: 1px solid #ddd;
12
  padding: 8px;
13
}
14
15
#devices tr:nth-child(even){background-color: #f2f2f2;}
16
17
#devices tr:hover {background-color: #ddd;}
18
19
#devices th {
20
  padding-top: 12px;
21
  padding-bottom: 12px;
22
  text-align: left;
23
  background-color: #47BBF5;
24
  color: black;
25
}
26
    </style>
27 7fe7be79 zemanm98@students.zcu.cz
    <title>Devices Details</title>
28
</head>
29
<body>
30 2552e614 Matej Zeman
<div style='float:left;padding-right:20px'>
31
<b>Your role: {{user}}</b>
32
</div>
33
<div style='float:left;padding-right:5px'>
34
<form action="/login" method="get">
35
    <input type="submit" value="Login" />
36
</form>
37
</div>
38
<div style='float:left;padding-right:5px'>
39
<form action="/signup" method="get">
40
    <input type="submit" value="Sign Up" />
41
</form>
42
</div>
43
<form action="/logout" method="get">
44
    <input type="submit" value="Logout" />
45
</form>
46 7fe7be79 zemanm98@students.zcu.cz
<form action="" method="get">
47
  <label for="view">Choose view:</label>
48
  <select id="view" name="view" onchange="this.form.action=this.value;">
49 35168e5f zemanm98@students.zcu.cz
      <option value="/logs-web">Vector Logs</option>
50
      <option value="/ldlogs-web">Lauterbach Logs</option>
51 6ad54e2e zemanm98@students.zcu.cz
      <option value="/devices-web">Keyman Devices</option>
52
      <option value="/body-devices-web" selected>Lauterbach Devices</option>
53 7fe7be79 zemanm98@students.zcu.cz
      <option value="/teams-web">Teams</option>
54
      <option value="/pcs-web">PCs</option>
55 5dc6d077 Matej Zeman
      <option value="/licenses-web">Licenses</option>
56 cbd239c6 Matej Zeman
      <option value="/users-web">Users</option>
57 7fe7be79 zemanm98@students.zcu.cz
  </select>
58
  <input type="submit" value="OK">
59
</form>
60
<form action="/body-devices-web" method="post">
61
    <label for="lic">License:</label>
62
    <input id="lic" name="lic" type="text" list="licenses" value="" placeholder="all">
63
    <datalist id="licenses">
64
        {% for license in licenses %}
65
        <option value="{{license.name}}"></option>
66
        {% endfor %}
67
    </datalist>
68
  <input type="submit" value="Filter">
69
</form>
70 6ad54e2e zemanm98@students.zcu.cz
<table id="devices">
71 7fe7be79 zemanm98@students.zcu.cz
    <TR>
72
        <TH>ID</TH>
73 35168e5f zemanm98@students.zcu.cz
        <TH>Lauterbach Body ID</TH>
74 7fe7be79 zemanm98@students.zcu.cz
        <TH>Licenses</TH>
75
        <TH>Status</TH>
76
    </TR>
77
    {% for i in range(devs) %}
78
    <TR>
79
        <TD class="ID"><a href="/body-device-license/{{devices[i].id}}">{{devices[i].id}}</a></TD>
80
        <TD class="Serial Number">{{devices[i].serial_number}}</TD>
81
        <TD class="License">
82
            {% for lic in devices[i].debug_licenses %}
83
                {{lic.b_licenses.name}}<BR>
84
            {% endfor %}
85
        </TD>
86
        <TD class="Status">{{statuses[i]}}</TD>
87
    </TR>
88
    {% endfor %}
89
    <TR>
90
        <TD class="ID"></TD>
91
        <TD class="Serial Number"></TD>
92
        <TD class="License">
93
            <form action="/license-create" method="get">
94
                <input type="submit" value="Add">
95
            </form>
96
        </TD>
97
    </TR>
98
</table>
99
</body>
100
</html>