-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (93 loc) · 5 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
<!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 nuevo-registro" placeholder="Nombre" oninput="datosCorrectos('nuevo-registro','btnPost')">
<input type="text" id="inputPostApellido" class="form-control my-1 nuevo-registro" placeholder="Apellido" oninput="datosCorrectos('nuevo-registro','btnPost')" >
<button id="btnPost" class="btn btn-success position-absolute bottom-0 mb-3" disabled>
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 modificar-dato" placeholder="ID del registro a modificar" oninput="datosCorrectos('modificar-dato','btnPut')">
<!-- data-bs-toggle="modal" data-bs-target="#dataModal"> -->
<button id="btnPut" class="btn btn-warning position-absolute bottom-0 mb-3" disabled>
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 eliminar-dato" placeholder="ID a eliminar" oninput="datosCorrectos('eliminar-dato', 'btnDelete')">
<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> - 2022</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 modificar-NA" oninput="datosCorrectos('modificar-NA', 'btnSendChanges')">
<label for="inputPutApellido">Apellido:</label>
<input type="text" id="inputPutApellido" class="form-control my-1 modificar-NA" oninput="datosCorrectos('modificar-NA', 'btnSendChanges')">
</div>
<div class="modal-footer">
<button id="cancelar" type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-primary" id="btnSendChanges" data-bs-dismiss="modal" disabled>Guardar</button>
</div>
</div>
</div>
</div>
<!-- Alerta de error -->
<div class="alert alert-danger alert-dismissible fade text-center" role="alert" id="errorAlert">
<p>Algo salió mal...</p>
</div>
<script src="scripts/bootstrap.bundle.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>