-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreserva.html
408 lines (338 loc) · 14.7 KB
/
reserva.html
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!--
* Jeferson Luckas - reserve
*
* Author: Jeferson Luckas
* Creation: 06/06/2020
* Modification: 16/07/2020
* Version: 2.0.0
* Description: Dashboard Reserve
*
* Copyright (c) 2020 Jeferson Luckas
* Released under the MIT license
* https://github.com/JefersonLucas/reserve/blob/master/LICENSE
*
* -->
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Jeferson Lucas">
<title>Reservas · Reserve</title>
<link rel="shortcut icon" href="assets/img/favicon/favicon.ico">
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<!-- NAVBAR -->
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-2 col-lg-2 mr-0 px-3 text-light text-center font-weight-bold">
<img src="assets/img/logo-quadrado.png" class="mr-1" width="30" height="30" alt="Reserve">
<span>Reserve</span>
</a>
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-toggle="collapse" data-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<input class="form-control form-control-dark w-100" id="buscar-reserva" type="text" placeholder="Buscar..." aria-label="Search">
</nav>
<div class="container-fluid">
<div class="row">
<!-- SIDEBAR -->
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="sidebar-sticky pt-3">
<ul class="nav flex-column menu align-items-left">
<li class="nav-item">
<a class="nav-link" href="#" id="dashboard-page">
<span data-feather="home"></span>Dashboard
</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#" id="reserva-page">
<span data-feather="file"></span>Reserva<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" id="perfil-page">
<span data-feather="user"></span>Perfil
</a>
</li>
</ul>
<!-- PERÍODO -->
<h6 class="text-xl-left d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
<span id="periodo"></span>
<span id="icone"></span>
</h6>
<ul class="nav flex-column mb-2">
<!-- ADMINISTRADOR -->
<li class="nav-item">
<a class="nav-link">
<span class="fas fa-user-tie fa-lg mr-1"></span>
<span id="administrador-nome"></span>
</a>
</li>
<!-- HORA -->
<li class="nav-item">
<a class="nav-link">
<span class="fas fa-clock fa-lg mr-1"></span>
<span id="relogio"></span>
</a>
</li>
<!-- SEMANA -->
<li class="nav-item">
<a class="nav-link">
<span class="fas fa-calendar-week fa-lg mr-1"></span>
<span id="semana"></span>
</a>
</li>
<!-- DATA -->
<li class="nav-item">
<a class="nav-link">
<span class="fas fa-calendar-alt fa-lg mr-1"></span>
<span id="calendario"></span>
</a>
</li>
</ul>
</div>
</nav>
<!-- CONTEÚDO PRINCIPAL -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
<!-- TÍTULO -->
<div class="d-flex justify-content-center pt-3 pb-2 mb-3 border-bottom">
<h1><span class="fas fa-file"></span> Reserva</h1>
</div>
<!-- ALERTA -->
<div role="alert" aria-live="assertive" aria-atomic="true" class="toast" data-autohide="false" id="toast">
<div class="toast-header">
<strong class="mr-auto"><i class="fas fa-bell fa-md"></i> Alerta!</strong>
<small>01 min ago</small>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
Olá, você ativou o alerta de reserva.
</div>
</div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-2">
<h2><span class="fa fa-file-medical"></span> Cadastrar</h2>
</div>
<div class="row col-12 my-2">
<!-- FORMULÁRIO COM VALIDAÇÃO -->
<form class="needs-validation" novalidate>
<!-- FORMULÁRIO -->
<div class="form-row">
<!-- Usuário -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-user" title="Usuário"></i>
</div>
</div>
<input class="form-control" id="usuario" placeholder="Ex.: José" title="Nome do usuário" type="text" required>
<div id="valida-usuario"></div>
</div>
<!-- EQUIPAMENTO -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-laptop fa-sm" title="Equipamento"></i>
</div>
</div>
<input class="form-control" id="equipamento" placeholder="Ex.: Data Show S27" title="Nome do equipamento" type="text" required>
<div id="valida-equipamento"></div>
</div>
<!-- LOCAL -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-map-marker-alt" title="Local"></i>
</div>
</div>
<input class="form-control" id="local" placeholder="Ex.: Anatomia I" title="Local da reserva" type="text" required>
<div id="valida-local"></div>
</div>
<!-- HORÁRIO INÍCIAL -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-clock" title="Horário Inicial"></i>
</div>
</div>
<input class="form-control" id="hora-inicial" placeholder="00:00" title="Horário inicial da reserva" type="time" required>
<div id="valida-hora-inicial"></div>
</div>
<!-- HORÁRIO FINAL -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-clock" title="Horário Final"></i>
</div>
</div>
<input class="form-control" id="hora-final" placeholder="00:00" title="Horário final da reserva" type="time" required>
<div id="valida-hora-final"></div>
</div>
<!-- DATA -->
<div class="input-group col-md-4 mb-3">
<div class="input-group-prepend">
<div class="input-group-text bg-dark text-white">
<i class="fas fa-calendar" title="Data da reserva"></i>
</div>
</div>
<input class="form-control" id="data" placeholder="dd/mm/aaaa" min="2018-01-01" max="2020-12-31" title="Data da reserva" type="date" required>
<div id="valida-data"></div>
</div>
<div class="input-group justify-content-center col-sm-12 col-md-12 mb-2">
<!-- BOTÃO CADASTRAR RESERVA -->
<button class="btn btn-outline-dark mx-1" id="cadastrar-reserva" title="Cadastrar reserva" type="submit">
<i class="fas fa-file-medical fa-lg"></i> Cadastrar
</button>
<!-- BOTÃO PESQUISAR -->
<button class="btn btn-outline-dark mx-1" id="pesquisar-reserva" title="Pesquisar reserva" type="submit">
<i class="fa fa-search fa-lg"></i> Pesquisar
</button>
</div>
</div>
</form>
</div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-2">
<h2><span class="fas fa-file-alt"></span> Reservas</h2>
<div class="btn-toolbar mb-md-0">
<div class="btn-group mr-1">
<!-- BOTÃO ATUALIZAR -->
<button class="btn btn-sm btn-outline-dark" id="atualizar" title="Atualizar a página" type="button">
<i class="fas fa-redo-alt fa-md"></i>
</button>
<!-- BOTÃO IMPRIMIR -->
<button class="btn btn-sm btn-outline-dark" id="imprimir" title="Imprimir as reservas" type="button">
<i class="fa fa-print fa-md"></i>
</button>
<!-- BOTÃO EXCLUIR -->
<button class="btn btn-sm btn-outline-dark" id="excluir" title="Excluir todas as reservas" type="button">
<i class="fa fa-trash-alt fa-md"></i>
</button>
<!-- BOTÃO ALARME -->
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-dark" title="Alarme">
<i class="fas fa-bell-slash fa-md" id="alarme-icone"></i>
</button>
<button type="button" class="btn btn-outline-dark dropdown-toggle dropdown-toggle-split" id="dropdownAlarme" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-reference="parent">
<span class="sr-only"></span>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownAlarme">
<h6 class="dropdown-header" id="alarme-info">Alarme desativado</h6>
<a class="dropdown-item" id="alarme-ativado">
<i class="fas fa-bell fa-md"></i> Ativado
</a>
<a class="dropdown-item active" id="alarme-desativado">
<i class="fas fa-bell-slash fa-md"></i> Desativado
</a>
</div>
</div>
</div>
</div>
</div>
<div class="table-responsive mt-1 border-bottom rounded-top">
<table class="table table-hover table-bordered table-sm shadow">
<thead>
<tr class="text-center bg-dark">
<th class="text-white" title="Status das reservas" colspan="5">
<!-- STATUS -->
<nav class="nav nav-underline d-flex justify-content-center align-items-center">
<a class="nav-link text-danger" title="Aguardando">
<i class="fas fa-file fa-lg"></i>
<span class="badge badge-pill bg-light text-danger" id="status-01"></span>
</a>
<a class="nav-link text-success" title="Utilizando">
<i class="fas fa-file-upload fa-lg"></i>
<span class="badge badge-pill bg-light text-success" id="status-02"></span>
</a>
<a class="nav-link text-primary" title="Recolhido">
<i class="fas fa-file-download fa-lg"></i>
<span class="badge badge-pill bg-light text-primary" id="status-03"></span>
</a>
</nav>
</th>
</tr>
<tr class="text-center bg-dark">
<th class="text-white" title="Usuário"><i class="fas fa-user fa-lg" title="Usuário"></i></th>
<th class="text-white" title="Equipamento"><i class="fas fa-laptop fa-lg" title="Equipamento"></i></th>
<th class="text-white" title="Local"><i class="fas fa-map-marker-alt fa-lg" title="Local"></i></th>
<th class="text-white" title="Status"><i class="fas fa-file-medical-alt fa-lg" title="Status"></i></th>
<th class="text-white" title="Opções"><i class="fas fa-user-cog fa-lg" title="Configurações"></i></th>
</tr>
</thead>
<tbody id="lista-reservas-02" class="text-center">
</tbody>
</table>
</div>
</main>
</div>
</div>
<!-- RODAPÉ -->
<footer class="footer my-3 text-center text-small">
<p class="align-middle text-center text-muted">© 2018-2020 Jeferson Luckas</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="https://github.com/JefersonLucas/reserve/blob/master/LICENSE" target="_blank">License</a></li>
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Terms</a></li>
</ul>
<a href="#" class="to-top"><i class="fas fa-chevron-up"></i></a>
</footer>
<!-- MODAL TIPO 1 -->
<div class="modal fade" id="modal-01" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<!-- DOCUMENTO -->
<div class="modal-dialog" id="modal-documento-01">
<div class="modal-content">
<!-- CABEÇALHO -->
<div id="modal-cabecalho-01">
<!-- TÍTULO -->
<h5 class="modal-title" id="modal-titulo-01"></h5>
<!-- BOTÃO FECHAR MODAL -->
<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="fechar-modal-01">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- CONTEÚDO -->
<div class="modal-body" id="modal-conteudo-01"></div>
<div class="modal-footer">
<!-- BOTÃO -->
<button data-dismiss="modal" type="button" id="modal-botao-01">Voltar</button>
</div>
</div>
</div>
</div>
<!-- MODAL TIPO 2 -->
<div class="modal fade" id="modal-02" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<!-- DOCUMENTO -->
<div class="modal-dialog" role="document" id="modal-documento-02">
<div class="modal-content">
<!-- CABEÇALHO -->
<div id="modal-cabecalho-02">
<!-- TÍTULO -->
<h5 class="modal-title" id="modal-titulo-02"></h5>
<!-- BOTÃO FECHAR MODAL -->
<button type="button" title="Fechar" class="close text-white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- CONTEÚDO -->
<div class="modal-body" id="modal-conteudo-02"></div>
<div class="modal-footer">
<!-- BOTÃO -->
<button type="button" data-dismiss="modal" id="modal-botao-02">Voltar</button>
</div>
</div>
</div>
</div>
<!-- JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script>window.jQuery || document.write('<script src="assets/jquery/jquery.slim.min.js"><\/script>')</script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.9.0/feather.min.js"></script>
<script src="assets/js/helpers.js"></script>
<script src="assets/js/reserve.js"></script>
</body>
</html>