-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (73 loc) · 2.94 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
<!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">
<title>Bootcamp - JavaScript 001</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<main class="container">
<form action="index.html">
<input type="hidden" name="codigo" id="codigo">
<div class="mb-3">
<label for="nombre" class="form-label">Nombre</label>
<input type="text" name="nombre" id="nombre" class="form-control">
</div>
<div class="mb-3">
<label for="cantidad" class="form-label">Cantidad</label>
<input type="number" name="cantidad" id="cantidad" class="form-control">
</div>
<div class="mb-3">
<label for="precio" class="form-label">precio</label>
<div class="input-group">
<span class="input-group-text">$</span>
<input type="number" name="precio" id="precio" class="form-control">
</div>
</div>
<div class="mb-3">
<label for="categoria" class="form-label">Categoria</label>
<select name="categoria" id="categoria" class="form-control">
<option value="1">Categoria 1</option>
<option value="2">Categoria 2</option>
<option value="3">Categoria 3</option>
<option value="4">Categoria 4</option>
</select>
</div>
<div class="mb-3">
<button type="submit" class="btn btn-primary">Guardar</button>
</div>
</form>
<div>
<table class="table">
<thead>
<tr>
<td>Codigo</td>
<td>Nombre</td>
<td>Cantidad</td>
<td>Precio</td>
<td>Total</td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">Totales:</td>
<td id="cantidad-totales">0</td>
<td id="precio-totales">0</td>
<td id="gran-total">0</td>
<td></td>
</tr>
</tfoot>
</table>
</div>
</main>
<script src="index.js"></script>
</body>
</html>