-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (80 loc) · 3.11 KB
/
index.html
File metadata and controls
81 lines (80 loc) · 3.11 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Boostrap -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<!-- Titulo de la página -->
<title>Crud librería</title>
</head>
<body>
<h1 class="text-center mt-3 mb-3 text-primary">CRUD PYTHON-FLASK-POSTGRES SQL</h1>
<!-- Fromulario -->
<div class="conteiner">
<div class="card shadow">
<div class="card-body">
<form id="formulario" method="post">
<div class="row mb-3">
<div class="col">
<label for="name" class="form-label">Nombre</label>
<input type="text" class="form-control" id="name" name="name" />
</div>
<div class="col">
<label for="isbn" class="form-label">ISBN</label>
<input type="text" class="form-control" id="isbn" name="isbn" />
</div>
<div class="col">
<label for="cant" class="form-label">Cantidad</label>
<input type="number" class="form-control" id="cant" name="cant" />
</div>
<div class="col">
<label for="borrowed" class="form-label">Prestado</label>
<select class="form-select" name="borrowed" id="borrowed" name="borrowed">
<option value="True">Si</option>
<option value="False">No</option>
</select>
</div>
</div>
<div class="row p-2">
<button id="btnEnviar" class="btn btn-primary btn-lg mx-auto" type="submit" style="max-width: 200px">Guardar</button>
</div>
</form>
</div>
</div>
</div>
<!-- Tabla -->
<div class="conteiner">
<div class="card shadow">
<div class="card-body">
<table class="table table-bordered">
<thead>
<th class="text-center" scope="col">#</th>
<th class="text-center" scope="col">Nombre</th>
<th class="text-center" scope="col">ISBN</th>
<th class="text-center" scope="col">Cant</th>
<th class="text-center" scope="col">Prestado</th>
<th class="text-center" scope="col">Editar</th>
<th class="text-center" scope="col">Eliminar</th>
</thead>
<tbody id="tDatos">
<!-- Aqui se están llenando los datos desde JS -->
</tbody>
</table>
</div>
</div>
</div>
<script src="src/templates/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>