-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (160 loc) · 8.99 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/bootstrap.css">
<link rel="stylesheet" href="./styles/bootstrap.min.css">
<link rel="stylesheet" href="https://bootswatch.com/5/journal/bootstrap.min.css">
<link rel="stylesheet" href="https://bootswatch.com/5/journal/bootstrap.css">
<title>CONTROL DE RUTAS</title>
<script type="module" src="./modules/app.js"></script>
</head>
<body>
<div class="navbar navbar-expand-lg bg-success text-white">
<div class="container-fluid">
<a href="#" class="navbar-brand text-white">Control de Rutas de Transporte</a>
</div>
</div>
<div class="container">
<div class="bs-docs-section">
<div class="row">
<div class="col-sm-3">
<p class="bs-component">
<form>
<fieldset class="card bg-light mb-3" style="max-width: 20rem">
<legend class="card-header"><h4>Agregar Nueva Base</h4></legend>
<div class="form-group card-body">
<div class="form-floating mb-3">
<input type="text" class="form-control" id="name_base" placeholder="Nombre de la base">
<label for="name_base">Nombre de la Base</label>
</div>
<div class="form-floating mb-3">
<input type="number" class="form-control" id="mins" placeholder="Minutos de Duración" maxlength="3" required max="60">
<label for="mins">Duración (en minutos)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="posicion">
<label class="form-check-label" for="posicion">
¿Agregar en posición?
</label>
</div>
<div class="form-floating mb-3" id="campo_posicion" style="display:none;">
<input type="number" class="form-control" id="pos" placeholder="Posición" maxlength="3" required
max="60">
<label for="pos">Posición</label>
</div>
<button type="button" class="btn btn-outline-dark" id="agregarBase" style="width:100%; text-align:center">Agregar</button>
</div>
</fieldset>
</form>
</p>
<p class="bs-component">
<form>
<fieldset class="card bg-light mb-3" style="max-width: 20rem">
<legend class="card-header">
<h4>Listado de Bases</h4>
</legend>
<div class="form-group card-body">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Nombre</th>
<th scope="col">Duración</th>
</tr>
</thead>
<tbody id="listadoBases">
</tbody>
</table>
</div>
</fieldset>
</form>
</p>
</div>
<div class="col-sm-3">
<p class="bs-component">
<form>
<fieldset class="card bg-light mb-3" style="max-width: 20rem">
<legend class="card-header">
<h4>Buscar Base</h4>
</legend>
<div class="form-group card-body">
<div class="form-floating mb-3">
<input type="search" class="form-control" id="searchBase" placeholder="Buscar Base">
<label for="searchBase">Buscar</label>
</div>
<button type="button" id="buscar" class="btn btn-outline-dark" style="width:100%; text-align:center">Buscar</button>
</div>
</fieldset>
</form>
</p>
<p class="bs-component">
<form>
<fieldset class="card bg-light mb-3" style="max-width: 20rem">
<legend class="card-header">
<h4>Eliminar Base</h4>
</legend>
<div class="form-group card-body">
<div class="form-floating mb-3">
<input type="search" class="form-control" id="eliminaInput" placeholder="Buscar Base">
<label for="eliminaInput">Eliminar</label>
</div>
<small id="errorEliminar" class="form-text text-muted" style="display:none">Base No Encontrada!</small>
</div>
<button type="button" id="eliminar" class="btn btn-outline-dark" style="width:100%; text-align:center">Eliminar</button>
</fieldset>
</form>
</p>
</div>
<div class="col-sm-6">
<p class="bs-component">
<form>
<fieldset class="card bg-light mb-3">
<legend class="card-header">
<h4>Info. Base</h4>
</legend>
<div class="form-group card-body">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Nombre</th>
<th scope="col">Duración</th>
</tr>
<tr>
<td id="nombre_base"></td>
<td id="duracion_base"></td>
</tr>
</thead>
</table>
</div>
</fieldset>
</form>
</p>
<p class="bs-component">
<form>
<fieldset>
<legend>
<h3>Recorrido</h3>
</legend>
<div class="form-group">
<label for="baseInicial" class="form-label mt-4">Base Inicial:</label>
<input type="text" class="form-control" id="baseInicial" placeholder="Nombre de la base">
<label for="h_inicio" class="form-label mt-4">Inicio:</label>
<input type="time" id="h_inicio" name="appt" min="00:00" max="24:00" required>
<label for="h_fin" class="form-label mt-4">Fin:</label>
<input type="time" id="h_final" name="appt" min="00:00" max="24:00" required>
<button class="btn btn-outline-dark" type="button" id="iniciar">Iniciar</button>
<button class="btn btn-outline-danger" type="button" id="limpiar">Limpiar</button>
</div>
</fieldset>
</form>
<table class="table table-hover" id="recorrido">
</table>
</p>
</div>
</div>
</div>
</div>
</body>
</html>