-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
151 lines (150 loc) · 4.77 KB
/
index.html
File metadata and controls
151 lines (150 loc) · 4.77 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles/bootstrap.css" />
<link rel="stylesheet" href="styles/style.css" />
<title>CRUD</title>
</head>
<body>
<main class="container">
<div class="row">
<div class="col-12 text-center my-3">
<h1>JAP CRUD</h1>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<div class="border p-3 my-3 position-relative" id="get-box">
<h6>Buscar registro</h6>
<input
type="number"
id="inputGet1Id"
class="form-control"
placeholder="ID a buscar"
/>
<button
id="btnGet1"
class="btn btn-primary position-absolute bottom-0 mb-3"
>
Buscar
</button>
</div>
</div>
<div class="col-md-6">
<div class="border p-3 my-3 position-relative" id="post-box">
<h6>Ingresar nuevo registro</h6>
<input
type="text"
id="inputPostNombre"
class="form-control my-1"
placeholder="Nombre"
/>
<input
type="text"
id="inputPostApellido"
class="form-control my-1"
placeholder="Apellido"
/>
<button
id="btnPost"
class="btn btn-success position-absolute bottom-0 mb-3"
>
Agregar
</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="border p-3 my-3 position-relative" id="put-box">
<h6>Modificar registro</h6>
<input
type="number"
id="inputPutId"
class="form-control"
placeholder="ID del registro a modificar"
/>
<button
id="btnPut"
class="btn btn-warning position-absolute bottom-0 mb-3"
>
Modificar
</button>
</div>
</div>
<div class="col-md-6">
<div class="border p-3 my-3 position-relative" id="delete-box">
<h6>Eliminar registro</h6>
<input
type="number"
id="inputDelete"
class="form-control"
placeholder="ID a eliminar"
/>
<button
id="btnDelete"
class="btn btn-danger position-absolute bottom-0 mb-3"
disabled
>
Borrar
</button>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<ul
class="border bg-dark text-white my-3 list-group list-group-flush"
id="results"
></ul>
</div>
</div>
</main>
<footer class="my-5 pt-5 text-muted text-center text-small">
<p class="mb-1">
Este sitio forma parte de
<a href="https://jovenesaprogramar.edu.uy/" target="_blank"
>Jovenes a Programar</a
>
</p>
<p class="mb-1">Generado con fines estrictamente educativos.</p>
</footer>
<div class="alert alert-danger fade" id="alert-error" role="alert">
Algo salió mal...
</div>
<div class="modal fade" tabindex="-1" id="dataModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<label for="inputPutNombre">Nombre:</label>
<input type="text" id="inputPutNombre" class="form-control my-1" />
<label for="inputPutApellido">Apellido:</label>
<input
type="text"
id="inputPutApellido"
class="form-control my-1"
/>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Cancelar
</button>
<button type="button" class="btn btn-primary" id="btnSendChanges">
Guardar
</button>
</div>
</div>
</div>
</div>
<script src="scripts/app.js"></script>
<script src="scripts/bootstrap.bundle.js"></script>
</body>
</html>