-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathformulario.html
More file actions
83 lines (80 loc) · 2.22 KB
/
formulario.html
File metadata and controls
83 lines (80 loc) · 2.22 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
82
83
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Formulario de Clientes</title>
<link rel="stylesheet" href="templates/static/css/formulario.css" />
<link
rel="shortcut icon"
href="../public/temp-icon.svg"
type="image/x-icon"
/>
</head>
<body>
<h1>Nuevo Cliente</h1>
<section class="form">
<h2 class="form__title">Datos Personales</h2>
<form class="form__form" method="POST">
<div class="form__input-container">
<label>
Nombre y Apellido
<input type="text" name="nombre" placeholder="John Doe" required />
</label>
</div>
<div class="form__input-container">
<label>
Celular
<input
type="text"
name="telefono"
placeholder="3127105207"
required
/>
</label>
</div>
<div class="form__input-container">
<label>
Correo Electrónico
<input
type="email"
name="correo"
placeholder="hola@example.com"
required
/>
</label>
</div>
<div class="form__input-container">
<label>
Dirección
<input
type="text"
name="direccion"
placeholder="Aquí va tu dirección"
required
/>
</label>
</div>
<div class="form__input-container">
<input type="submit" value="Guardar" />
</div>
</form>
</section>
<!-- BACKEND -->
<h2>Clientes Registrados</h2>
<ul>
{% for cliente in clientes %}
<li>
{{ cliente[1] }} - {{ cliente[2] }}
<form
method="POST"
action="{{ url_for('delete_cliente', id=cliente[0]) }}"
>
<button type="submit">Eliminar</button>
</form>
<a href="{{ url_for('edit_cliente', id=cliente[0]) }}">Editar</a>
</li>
{% endfor %}
</ul>
</body>
</html>