-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatos-pedidos.html
More file actions
94 lines (90 loc) · 2.6 KB
/
datos-pedidos.html
File metadata and controls
94 lines (90 loc) · 2.6 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
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Datos de Pedidos</title>
<link rel="stylesheet" href="templates/static/css/datos-pedidos.css" />
<link
rel="shortcut icon"
href="../public/temp-icon.svg"
type="image/x-icon"
/>
</head>
<body>
<h1>Registrar Pedidos</h1>
<section class="form">
<h2 class="form__title">Pedidos</h2>
<form class="form__form" method="POST">
<div class="form__input-container">
<label>
Id del Pedido
<input
type="number"
name="id_pedido"
placeholder="ID del Pedido"
required
/>
</label>
</div>
<div class="form__input-container">
<label>
Id del Cliente
<input
type="number"
name="id_cliente"
placeholder="ID del Cliente"
required
/>
</label>
</div>
<div class="form__input-container">
<label>
Fecha del Pedido
<input
type="date"
name="fecha_pedido"
placeholder="Fecha"
required
/>
</label>
</div>
<div class="form__input-container">
<label>
Ciudad
<input type="text" name="ciudad" placeholder="Ciudad" required />
</label>
</div>
<div class="form__input-container">
<label>
Estado en que se encuentra el pedido
<select name="estado">
<option value="Pendiente">Pendiente</option>
<option value="Entregado">Entregado</option>
<option value="En transito">En transito</option>
</select>
</label>
</div>
<div class="form__input-container">
<input type="submit" value="Guardar" />
</div>
</form>
</section>
<!-- BACKEND -->
<h2>Pedidos Registrados</h2>
<ul>
{% for pedido in pedidos %}
<li>
Pedido ID: {{ pedido[0] }} - Cliente ID: {{ pedido[1] }}
<form
method="POST"
action="{{ url_for('delete_pedido', id=pedido[0]) }}"
>
<button type="submit">Eliminar</button>
</form>
<a href="{{ url_for('edit_pedido', id=pedido[0]) }}">Editar</a>
</li>
{% endfor %}
</ul>
</body>
</html>