-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (104 loc) · 5.3 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
<!DOCTYPE html>
<html lang="es">
<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="shortcut icon" href="./assets/images/rueda.png" type="image/x-icon">
<!-- CDN FontAwesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- CDN Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous" />
<link rel="stylesheet" href="./assets/css/styles.css">
<title>CRUD - LocalStorage</title>
</head>
<body>
<header class="d-flex flex-wrap justify-content-center py-3 mb-4">
<article class="header__container">
<section class="header__img">
<img src="./assets/images/rueda.png" alt="Logo" height="80px">
</section>
<section class="header__brand">
<h1>CRUD - LocalStorage</h1>
</section>
</article>
</header>
<main>
<section class="container">
<h2>Registro de Usuarios</h2>
</div>
<div class="container">
<form id="form_register" class="needs-validation row g-3" novalidate>
<div class="col-md-6">
<label for="nombre" class="form-label">Nombre:</label>
<input type="text" class="form-control" id="nombre" pattern="^[a-zA-Z]+( [a-zA-Z]+)*$" required>
</div>
<div class="col-md-6">
<label for="mailInput" class="form-label">Email:</label>
<input type="email" class="form-control" id="mailInput"
pattern="[\-a-zA-Z0-9~!$%^&*_=+\}\{'?]+(\.[\-a-zA-Z0-9~!$%^&*_=+\}\{'?]+)*@([a-zA-Z0-9_][\-a-zA-Z0-9_]*(\.[\-a-zA-Z0-9_]+)*\.([cC][oO][mM]))(:[0-9]{1,5})?"
required>
</div>
<div class="col-md-6">
<label for="perfilusuario" class="form-label">Perfil de Usuario:</label>
<select class="form-select" id="perfilusuario" required>
<option value="">Seleccione Perfil</option>
<option>Usuario</option>
<option>Auditor</option>
<option>Consultor</option>
<option>Administrador</option>
</select>
</div>
<div class="col-md-6">
<label for="estadousuario" class="form-label">Estado de Usuario:</label>
<select class="form-select" id="estadousuario" required>
<option value="">Seleccione Estado</option>
<option>Activo</option>
<option>Inactivo</option>s
</select>
</div>
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
<button class="btn btn-primary active" id="btn_grabar" type="button"><i
class="fa-solid fa-floppy-disk"></i> Grabar</button>
<button class="btn btn-primary inactive" id="btn_actualizar" type="button"><i
class="fa-solid fa-arrows-rotate"></i> Actualizar</button>
<button class="btn btn-danger active" id="btn_cancelar" type="button"><i
class="fa-solid fa-right-from-bracket"></i> Cancelar</button>
</div>
<hr>
</form>
<div class="table-responsive mt-4">
<table class="table table-bordered text-center align-middle table-hover border-success"
id="tabla_usuarios">
<h4>Tabla de Usuarios Registrados</h4>
<thead>
<tr class="table-info text-uppercase">
<th>Nombre</th>
<th>E-Mail</th>
<th>Perfil</th>
<th>Estado</th>
<th>Acciones</th>
</tr>
</thead>
<tbody class="table-group-divider hover" id="tablebody">
</tbody>
</table>
</div>
</section>
</main>
<footer>
<div class="text-center mt-3">
<p>
<small><strong>Copyright ©2023, Todos los derechos reservados.</strong></small>
<br>
<a href="https://github.com/PabloMad75"><small><strong>By PabloMad75.</strong></small></a>
</p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="./assets/js/crud.js"></script>
</body>
</html>