admin.html
6.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="pt-PT">
<head>
<title>Admin</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="/static/favicon.ico">
<!-- Bootstrap -->
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
<!-- optional -->
<link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/css/test.css">
<style>
body {
padding-top: 100px;
background: #ccc;
}
</style>
</head>
<!-- ===================================================================== -->
<body>
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span id="clock"> --:-- </span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
</ul>
<span class="navbar-text">
<i class="fa fa-user" aria-hidden="true"></i>
<span id="name">Admin</span>
<span class="caret"></span>
</span>
</div>
</nav>
<!-- ===================================================================== -->
<div class="container-fluid">
<!-- ===================================================================== -->
<div class="jumbotron">
<h3 id="title"></h3>
Ref: <span id="ref"></span><br>
Enunciado: <span id="filename"></span><br>
Database: <span id="database"></span><br>
Testes entregues: <span id="answers_dir"></span>
</div> <!-- jumbotron -->
<!-- ===================================================================== -->
<div class="card border-dark">
<div class="card-header" id="online-header">
<!-- to be populated -->
</div>
<div class="card-body">
<table class="table table-condensed noleftmargin">
<thead>
<tr>
<th>Número</th>
<th>Nome</th>
<!-- <th>Data de início</th> -->
<th>Início</th>
<!-- <th>IP</th> -->
<th>Estado</th>
</tr>
</thead>
<tbody id="online_students">
<!-- to be populated -->
</tbody>
</table>
</div> <!-- card-body -->
</div> <!-- card -->
<!-- ===================================================================== -->
<div class="card border-dark">
<div class="card-header" id="students-header">
<!-- to be populated -->
</div>
<div class="card-body">
<table class="table noleftmargin">
<thead>
<tr>
<th>Perm.</th>
<th>Número</th>
<th>Nome</th>
<!-- <th>Estado</th> -->
<th>Nota</th>
</tr>
</thead>
<tbody id="students">
<!-- to be populated -->
</tbody>
</table>
</div> <!-- card-body -->
<div class="card-footer">
<div class="row">
<div class="col-sm-4">
Permitir
<button id="allow_all" class="btn btn-xs btn-primary">Todos</button>
<button id="deny_all" class="btn btn-xs btn-primary">Nenhum</button>
</div>
<div class="col-sm-4">
<button id="novo_aluno" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#novo_aluno_modal">Inserir novo aluno</button>
</div>
<div class="col-sm-4">
<div class="input-group input-group-sm">
<input id="reset_number" type="text" class="form-control" placeholder="Número">
<span class="input-group-btn">
<button id="reset_password" class="btn btn-primary" type="button">Reset password!</button>
</span>
</div>
</div>
</div> <!-- row -->
</div> <!-- card-footer -->
</div> <!-- card -->
<!-- ===================================================================== -->
</div> <!-- container -->
<!-- ===================================================================== -->
<div class="modal" id="novo_aluno_modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Inserir novo aluno</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<p>
Número: <input id="novo_numero" type="text">
</p>
<p>
Nome: <input id="novo_nome" type="text">
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
<button id="inserir_novo_aluno" class="btn btn-danger" role="button" data-dismiss="modal">Inserir</button>
</div>
</div>
</div>
</div>
<!-- ===================================================================== -->
<!-- Scripts -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/popper/umd/popper.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<!-- My scripts -->
<script src="/static/js/admin.js"></script>
<script src="/static/js/clock.js"></script>
</body>
</html>