-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
314 lines (302 loc) · 11.9 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Compiled and minified CSS Materialize -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
<link rel="shortcut icon" href="./assets/image/logo-galleta-small.png" type="image/x-icon" />
<!-- Styles css -->
<link rel="stylesheet" href="css/style.css" />
<title>CooKies</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<!-- <a class="navbar-brand" href="#"><img src="./assets/image/logo-galleta-small.png" height="40" alt="" /> CooKies</a> -->
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarTogglerDemo02"
aria-controls="navbarTogglerDemo02"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
<ul class="navbar-nav mb-2 ml-auto mb-lg-0">
<li class="nav-item d-flex align-items-center mx-3">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
width="1.5em"
height="1.5em"
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg)"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
fill="#626262"
/>
<rect x="0" y="0" width="24" height="24" fill="rgba(0, 0, 0, 0)" />
</svg>
<a class="nav-link active d-inline-block" id="modal-clientes" aria-current="page" data-toggle="modal" data-target="#addPeople" href="#">
Clientes
</a>
</li>
<li class="nav-item d-flex align-items-center mx-3">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
width="1.5em"
height="1.5em"
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg)"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8z"
fill="#626262"
/>
<rect x="0" y="0" width="24" height="24" fill="rgba(0, 0, 0, 0)" />
</svg>
<a class="nav-link active d-inline-block" id="modal-productos" aria-current="page" data-toggle="modal" data-target="#productModal" href="#">
Productos
</a>
</li>
<li class="nav-item d-flex align-items-center mx-3">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
width="1.5em"
height="1.5em"
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg)"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5A6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z"
fill="#626262"
/>
<rect x="0" y="0" width="24" height="24" fill="rgba(0, 0, 0, 0)" />
</svg>
<a class="nav-link active" href="#"> Buscar </a>
</li>
</ul>
</div>
</div>
</nav>
<div class="text-center bg-light content-logo my-4">
<!-- <img src="./assets/image/logo-galleta.png" height="115" alt="" /> -->
</div>
<div class="container px-0 px-md-3 mt-0">
<table class="table table-borderless bg-white table-list mt-0" aria-describedby="list">
<thead>
<tr>
<th id="name">Nombre</th>
<th id="product">Productos</th>
<th id="payment">Total</th>
<th id="accion"></th>
</tr>
</thead>
<tbody id="list-client"></tbody>
</table>
</div>
<!--Modal Add people -->
<div class="modal fade" id="addPeople" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<form class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Agregar</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="formGroupExampleInput">Nombre</label>
<input type="text" class="form-control" id="namePeople" placeholder="Nombre" />
</div>
<div class="row px-3" id="listProducts"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-primary" id="btnSavePeople">Guardar</button>
</div>
</form>
</div>
</div>
<!--Modal EditPeople -->
<div class="modal fade" id="editPeople" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Midificar</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="formGroupExampleInput">Nombre</label>
<input type="text" class="form-control" id="name-client-edit" />
</div>
<div class="row px-3" id="list-products-edit"></div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-success" id="btn-edit-client">modificar</button>
</div>
</div>
</div>
</div>
<!--Modal deletePeople -->
<div class="modal fade" id="deletePeople" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Eliminar</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-center">
<p>Estas seguro que desea eliminar</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" id="btn-delete-client" class="btn btn-danger">Eliminar</button>
</div>
</div>
</div>
</div>
<!--Modal Producto -->
<div class="modal fade" id="productModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<form class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Productos</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col">
<label for="inputEmail4">Producto</label>
<input type="text" id="name-product" class="form-control" placeholder="Nombre del producto" />
</div>
<div class="col">
<label for="inputEmail4">Precio</label>
<input type="text" id="price-product" class="form-control" placeholder="Precio del producto" />
</div>
</div>
<ul class="list-group list-group-flush mt-3" id="list-product"></ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-primary" id="save-product">Guardar</button>
</div>
</div>
</form>
</div>
<!-- templete -->
<!-- templete lista de productos en modal -->
<template id="templeteListProducts">
<div class="col-md-5 col-5 card p-2 m-1">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="selectProduct1" value="option1" />
<label class="form-check-label w-50" id="nameProduct" for="selectProduct1">Galletas</label>
<span><strong>100 Bs</strong></span>
</div>
</div>
</template>
<!-- templete lista de clientes -->
<template id="templete-client">
<tr>
<td id="name">Alvin</td>
<td id="products">a</td>
<td id="price">$0.87</td>
<td class="d-flex justify-content-end" id="action">
<a href="" class="mx-2 btn-edit" data-toggle="modal" data-target="#editPeople">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
width="1.5em"
height="1.5em"
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg)"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83l3.75 3.75l1.83-1.83z"
fill="#626262"
/>
<rect x="0" y="0" width="24" height="24" fill="rgba(0, 0, 0, 0)" />
</svg>
</a>
<a href="" class="mx-2 btn-delete" data-toggle="modal" data-target="#deletePeople">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
aria-hidden="true"
focusable="false"
width="1.5em"
height="1.5em"
style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg)"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
>
<path
d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zm3.17-7.83a.996.996 0 0 1 1.41 0L12 12.59l1.42-1.42a.996.996 0 1 1 1.41 1.41L13.41 14l1.42 1.42a.996.996 0 1 1-1.41 1.41L12 15.41l-1.42 1.42a.996.996 0 1 1-1.41-1.41L10.59 14l-1.42-1.42a.996.996 0 0 1 0-1.41zM15.5 4l-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"
fill="#626262"
/>
<rect x="0" y="0" width="24" height="24" fill="rgba(0, 0, 0, 0)" />
</svg>
</a>
</td>
</tr>
</template>
<!-- templete de lista de productos -->
<template id="templete-list-product">
<li class="list-group-item d-flex justify-content-between align-items-center" id="item-products">
<p class="mb-0 w-25">Cras justo odio</p>
<span></span>
<button type="button" class="close text-danger">
<span aria-hidden="true">×</span>
</button>
</li>
</template>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"
></script>
<script src="js/bootstrap.js"></script>
<script src="js/index.js"></script>
</body>
</html>