-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.html
122 lines (118 loc) · 3.78 KB
/
admin.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="crud con vanilla js" />
<meta name="keywords" content="vanilla js, crud" />
<meta name="author" content="Agustina Mena" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<title>Practica CRUD</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg bg-dark" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">CRUD</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Inicio</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="admin.html"
>Admin</a
>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container">
<section class="my-5">
<h1 class="display-3 text-center text-primary">
Administrar Productos
</h1>
<hr />
<form id="formProductos">
<div class="mb-3">
<label for="codigo" class="form-label">Codigo</label>
<input
type="text"
class="form-control"
id="codigo"
placeholder="123"
maxlength="4"
required
/>
<div class="invalid-feedback">
debe ingresar un codigo alfanumerico
</div>
</div>
<div class="mb-3">
<label for="producto" class="form-label">Producto</label>
<input
type="text"
class="form-control"
id="producto"
placeholder="Ej: Iron Man"
maxlength="30"
required
/>
</div>
<div class="mb-3">
<label for="descripcion" class="form-label">Descripcion</label>
<textarea
class="form-control"
id="descripcion"
rows="3"
maxlength="50"
required
>
</textarea>
</div>
<div class="mb-3">
<label for="cantidad" class="form-label">Cantidad</label>
<input
type="text"
class="form-control"
id="cantidad"
placeholder="2"
maxlength="3"
required
/>
</div>
<div class="mb-3">
<label for="URL" class="form-label">URL</label>
<input
type="text"
class="form-control"
id="URL"
placeholder="http://125.00"
maxlength="30"
required
/>
</div>
<button type="submit" class="btn btn-primary">guardar</button>
</form>
<div class="alert alert-danger my-3 d-none" role="alert" id="mensajeAlert">
Debe completar todos los campos requeridos </div>
</section>
</main>
<footer></footer>
<script src="js/bootstrap.min.js"></script>
<script src="js/admin.js" type="module"></script>
</body>
</html>