1 |
cbd239c6
|
Matej Zeman
|
<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 |
cbd239c6
|
Matej Zeman
|
<title>Users Details</title>
|
28 |
|
|
</head>
|
29 |
|
|
<body>
|
30 |
2552e614
|
Matej Zeman
|
<div style='float:left;padding-right:5px'>
|
31 |
|
|
<form action="/login" method="get">
|
32 |
|
|
<input type="submit" value="Login" />
|
33 |
|
|
</form>
|
34 |
|
|
</div>
|
35 |
|
|
<div style='float:left;padding-right:5px'>
|
36 |
|
|
<form action="/signup" method="get">
|
37 |
|
|
<input type="submit" value="Sign Up" />
|
38 |
|
|
</form>
|
39 |
|
|
</div>
|
40 |
|
|
<form action="/logout" method="get">
|
41 |
|
|
<input type="submit" value="Logout" />
|
42 |
|
|
</form>
|
43 |
cbd239c6
|
Matej Zeman
|
<form action="" method="get">
|
44 |
|
|
<label for="view">Choose view:</label>
|
45 |
|
|
<select id="view" name="view" onchange="this.form.action=this.value;">
|
46 |
35168e5f
|
zemanm98@students.zcu.cz
|
<option value="/logs-web">Vector Logs</option>
|
47 |
|
|
<option value="/ldlogs-web">Lauterbach Logs</option>
|
48 |
6ad54e2e
|
zemanm98@students.zcu.cz
|
<option value="/devices-web">Keyman Devices</option>
|
49 |
|
|
<option value="/body-devices-web">Lauterbach Devices</option>
|
50 |
cbd239c6
|
Matej Zeman
|
<option value="/teams-web">Teams</option>
|
51 |
|
|
<option value="/pcs-web">PCs</option>
|
52 |
|
|
<option value="/licenses-web">Licenses</option>
|
53 |
35168e5f
|
zemanm98@students.zcu.cz
|
<option value="/users-web" selected>Users</option>
|
54 |
cbd239c6
|
Matej Zeman
|
</select>
|
55 |
|
|
<input type="submit" value="OK">
|
56 |
|
|
</form>
|
57 |
6ad54e2e
|
zemanm98@students.zcu.cz
|
<table id="devices">
|
58 |
cbd239c6
|
Matej Zeman
|
<TR>
|
59 |
|
|
<TH>ID</TH>
|
60 |
|
|
<TH>Username</TH>
|
61 |
|
|
<TH>Role</TH>
|
62 |
|
|
</TR>
|
63 |
|
|
{% for user in users %}
|
64 |
|
|
<TR>
|
65 |
|
|
<TD class="ID"><a href="/user-role/{{user.id}}">{{user.id}}</a></TD>
|
66 |
|
|
<TD class="Username">{{user.username}}</TD>
|
67 |
|
|
<TD class="Role">{{user.role}}</TD>
|
68 |
|
|
</TR>
|
69 |
|
|
{% endfor %}
|
70 |
|
|
</table>
|
71 |
|
|
</body>
|
72 |
|
|
</html>
|