-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (75 loc) · 2.86 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD con JavaScript y PHP</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="assets/css/home.css">
</head>
<body>
<div class="container my-5">
<h1 class="text-center mb-4 mt-5 fw-bold">CRUD de Usuarios Con JavaScript/PHP
<hr>
</h1>
<div class="row mt-5">
<div class="col-md-4">
<form id="user-form" class="mb-4">
<input type="hidden" id="user-id" value="">
<h2 class="fw-bold mb-5">Registrar Nuevo Usuario <hr></h2>
<div class="mb-3">
<label for="name" class="form-label">Nombre</label>
<input type="text" class="form-control" id="name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Correo Electrónico</label>
<input type="email" class="form-control" id="email" required>
</div>
<div class="mb-3">
<label for="age" class="form-label">Edad</label>
<input type="number" class="form-control" id="age" required>
</div>
<label for="flexRadioDefault">¿Habla inglés?</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="speak_english" id="Si">
<label class="form-check-label" for="Si">
Si
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="speak_english" id="No">
<label class="form-check-label" for="No">
No
</label>
</div>
<div class="d-grid gap-2 mt-3">
<button id="form-submit-btn" class="btn btn-primary" type="submit">Crear nuevo usuario</button>
</div>
</form>
</div>
<div class="col-md-8 mb-5">
<h2 class="fw-bold mb-5 text-center">Lista de Usuarios <hr></h2>
<div class="table-responsive">
<table id="tbl_usuarios" class="table table-striped table-hover">
<thead>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Correo</th>
<th>Edad</th>
<th>Habla inglés</th>
<th>Fecha de creación</th>
<th>Acciones</th>
</tr>
</thead>
<tbody id="tbody-user-table">
</tbody>
</table>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
<script src="./assets/js/app.js"></script>
</body>
</html>