-
Notifications
You must be signed in to change notification settings - Fork 0
/
agregarReceta.html
127 lines (124 loc) · 4.71 KB
/
agregarReceta.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
123
124
125
126
127
<!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">
<meta name="description" content="Agregar recetas">
<title>Agregar receta</title>
<link href="./styles.css" rel="stylesheet">
<link rel="stylesheet" href="./node_modules//bootstrap/dist/css/bootstrap.min.css" />
<script src="./node_modules/bootstrap/dist/js/bootstrap.bundle.js"></script>
<script src="./node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
<script src="./js/index.js" type="module"></script>
<script src="./js/agregarReceta.js" type="module"></script>
<script src="./js/functions.js" type="module"></script>
</head>
<body class="bg-black">
<menu-bar></menu-bar>
<section class="containe-fluid vh-auto d-flex justify-content-center align-items-center p-5 overflow-x-hidden">
<div class="container border border-dark rounded p-5 bg-light text-center ">
<form
id="form"
onsubmit="return false"
>
<form-recipe-main-info config-2="add"></form-recipe-main-info>
<div id="ingredient-recipe-box" class="d-flex flex-column gap-sm-2 p-5 mb-5 border">
<div class="container d-flex justify-content-between p-0 mb-1">
<label for="ingredient" class="form-label text-dark m-0 w-50 text-truncate my-auto text-start">Ingrediente</label>
<input
autocomplete="off"
type="text"
title="Ingrediente"
id="ingredient"
class="form-control form-control-sm rounded w-50 border-secondary-subtle"
list="list-options-ingredient"
placeholder="Elija el ingrediente"
oninput="oninputAgregarRecetaIngrediente(event)"
>
<datalist
id="list-options-ingredient"
aria-label="Nombre del ingrediente"
>
</datalist>
</div>
<div class="container d-flex justify-content-between p-0 pb-4 mb-1">
<label for="quantity" class="form-label text-dark m-0 w-50 text-truncate my-auto text-start">Cantidad</label>
<input
type="number"
title="Cantidad"
id="quantity"
class="form-control form-control-sm rounded w-50 border-secondary-subtle"
placeholder="0"
step="any"
min="0"
max="999"
onchange="onchangeAgregarRecetaCantidad(event)"
onkeyup="onchangeAgregarRecetaCantidad(event)"
>
</div>
<div class="container d-flex justify-content-between p-0 mb-1">
<label for="cost-value" class="form-label text-black-50 fst-italic m-0 w-50 text-truncate my-auto text-start">Valor de costo</label>
<input
type="text"
title="Valor de costo"
id="cost-value"
class="form-control form-control-sm rounded w-50 border-secondary-subtle shadow-none fst-italic text-black-50"
readonly
placeholder="Costo"
tabindex="-1"
>
</div>
<div class="container d-flex justify-content-between p-0 mb-1">
<label for="price" class="form-label text-black-50 fst-italic m-0 w-50 text-truncate my-auto text-start">Precio</label>
<input
type="text"
title="Precio"
id="price"
class="form-control form-control-sm rounded w-50 border-secondary-subtle shadow-none fst-italic text-black-50"
readOnly
placeholder="Precio"
tabindex="-1"
>
</div>
<div class="container d-flex justify-content-between p-0 mb-1">
<label for="measurement-unit" class="form-label text-black-50 fst-italic m-0 w-50 text-truncate my-auto text-start">Unidad de medida</label>
<input
type="text"
title="Unidad de medida"
id="measurement-unit"
class="form-control form-control-sm rounded w-50 border-secondary-subtle shadow-none fst-italic text-black-50"
readonly
placeholder="Unidad de medida"
tabindex="-1"
>
</div>
<div class="container d-flex justify-content-between p-0 mb-1">
<label for="_id_ingredient" class="form-label text-black-50 fst-italic m-0 w-50 text-truncate my-auto text-start">Codigo</label>
<input
type="text"
title="Codigo"
id="_id_ingredient"
class="form-control form-control-sm rounded w-50 border-secondary-subtle shadow-none fst-italic text-black-50"
placeholder="Codigo"
readonly
tabindex="-1"
>
</div>
<button
class="btn btn-secondary btn-sm mt-2 mx-auto"
id="btn-add-ingredient"
disabled
onclick="addRowToTable(event)"
>
Agregar
</button>
</div>
<div id="table-main-container" class="d-none flex-column gap-sm-2">
<table-recipe config="add"></table-recipe>
</div>
</form>
</div>
</section>
</body>
</html>