-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (82 loc) · 2.52 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
<!DOCTYPE html>
<html lang="en">
<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
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
/>
<title>Ejercicio M3-L1-D1</title>
</head>
<body>
<h1 class="text-center">Completando tabla utilizando formulario.</h1>
<main class="container">
<section id="section-formulario" class="mt-5">
<form id="form-clientes" action="./contactos.html">
<label for="nombre" class="form-label">Nombre:</label>
<input
type="text"
name="nombre"
id="nombre"
class="form-control"
required
/>
<label for="apellido" class="form-label">Apellido:</label>
<input
type="text"
name="apellido"
id="apellido"
class="form-control"
required
/>
<label for="rut" class="form-label">Rut:</label>
<input
type="text"
name="rut"
id="rut"
class="form-control"
required
/>
<label for="edad" class="form-label">Edad:</label>
<input
type="number"
name="edad"
id="edad"
class="form-control"
value="0"
required
min="0"
max="130"
/>
<button type="submit" class="btn btn-primary my-3">
Cargar datos
</button>
</form>
</section>
<section id="section-datos-tabla" class="mt-5">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nombre</th>
<th scope="col">Apellido</th>
<th scope="col">RUN</th>
<th scope="col">Edad</th>
</tr>
</thead>
<tbody id="cuerpo-tabla"></tbody>
</table>
</section>
</main>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"
></script>
<script src="./assets/js/script.js"></script>
</body>
</html>