Commit c6200d5be396910c50d5b1cf735d61a8bd6d1c55
1 parent
9338b7cb24
Exists in
master
elimino espacio innecesario
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/views/modal-busqueda-productos.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h3 class="modal-title">Busqueda de Productos</h3> | 2 | <h3 class="modal-title">Busqueda de Productos</h3> |
3 | </div> | 3 | </div> |
4 | <div class="modal-body" id="modal-body"> | 4 | <div class="modal-body" id="modal-body"> |
5 | <div class="input-group mb-3"> | 5 | <div class="input-group mb-3"> |
6 | <input | 6 | <input |
7 | type="text" | 7 | type="text" |
8 | class="form-control" | 8 | class="form-control" |
9 | placeholder="Busqueda" | 9 | placeholder="Busqueda" |
10 | ng-model="filters" | 10 | ng-model="filters" |
11 | ng-change="search()" | 11 | ng-change="search()" |
12 | ng-keydown="busquedaDown($event.keyCode)" | 12 | ng-keydown="busquedaDown($event.keyCode)" |
13 | ng-keypress="busquedaPress($event.keyCode)" | 13 | ng-keypress="busquedaPress($event.keyCode)" |
14 | foca-focus="selectedProducto == -1" | 14 | foca-focus="selectedProducto == -1" |
15 | ng-focus="selectedProducto = -1" | 15 | ng-focus="selectedProducto = -1" |
16 | > | 16 | > |
17 | <table class="table table-striped table-sm"> | 17 | <table class="table table-striped table-sm"> |
18 | <thead> | 18 | <thead> |
19 | <tr> | 19 | <tr> |
20 | <th>Sec.</th> | 20 | <th>Sec.</th> |
21 | <th>Cod.</th> | 21 | <th>Cod.</th> |
22 | <th>Descripción</th> | 22 | <th>Descripción</th> |
23 | <th>P. Base</th> | 23 | <th>P. Base</th> |
24 | <th></th> | 24 | <th></th> |
25 | </tr> | 25 | </tr> |
26 | </thead> | 26 | </thead> |
27 | <tbody> | 27 | <tbody> |
28 | <tr ng-repeat="(key,producto) in currentPageProductos"> | 28 | <tr ng-repeat="(key,producto) in currentPageProductos"> |
29 | <td ng-bind="producto.sector"></td> | 29 | <td ng-bind="producto.sector"></td> |
30 | <td ng-bind="producto.codigo"></td> | 30 | <td ng-bind="producto.codigo"></td> |
31 | <td ng-bind="producto.descripcion"></td> | 31 | <td ng-bind="producto.descripcion"></td> |
32 | <td ng-bind="producto.precio | currency"></td> | 32 | <td ng-bind="producto.precio | currency"></td> |
33 | <td> | 33 | <td> |
34 | <button | 34 | <button |
35 | type="button" | 35 | type="button" |
36 | class="btn p-2 float-right" | 36 | class="btn p-2 float-right" |
37 | ng-class="{ | 37 | ng-class="{ |
38 | 'btn-secondary': selectedProducto != key, | 38 | 'btn-secondary': selectedProducto != key, |
39 | 'btn-primary': selectedProducto == key | 39 | 'btn-primary': selectedProducto == key |
40 | }" | 40 | }" |
41 | ng-click="select(producto)" | 41 | ng-click="select(producto)" |
42 | foca-focus="selectedProducto == {{key}}" | 42 | foca-focus="selectedProducto == {{key}}" |
43 | ng-keydown="itemProducto($event.keyCode)" | 43 | ng-keydown="itemProducto($event.keyCode)" |
44 | > | 44 | > |
45 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 45 | <i class="fa fa-arrow-right" aria-hidden="true"></i> |
46 | </button> | 46 | </button> |
47 | </td> | 47 | </td> |
48 | </tr> | 48 | </tr> |
49 | </tbody> | 49 | </tbody> |
50 | </table> | 50 | </table> |
51 | <nav> | 51 | <nav> |
52 | <ul class="pagination justify-content-end"> | 52 | <ul class="pagination justify-content-end"> |
53 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 53 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
54 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> | 54 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> |
55 | <span aria-hidden="true">«</span> | 55 | <span aria-hidden="true">«</span> |
56 | <span class="sr-only">Anterior</span> | 56 | <span class="sr-only">Anterior</span> |
57 | </a> | 57 | </a> |
58 | </li> | 58 | </li> |
59 | <li | 59 | <li |
60 | class="page-item" | 60 | class="page-item" |
61 | ng-repeat="pagina in paginas" | 61 | ng-repeat="pagina in paginas" |
62 | ng-class="{'active': pagina == currentPage}" | 62 | ng-class="{'active': pagina == currentPage}" |
63 | > | 63 | > |
64 | <a | 64 | <a |
65 | class="page-link" | 65 | class="page-link" |
66 | href="#" | 66 | href="#" |
67 | ng-click="selectPage(pagina)" | 67 | ng-click="selectPage(pagina)" |
68 | ng-bind="pagina" | 68 | ng-bind="pagina" |
69 | ></a> | 69 | ></a> |
70 | </li> | 70 | </li> |
71 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 71 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
72 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> | 72 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> |
73 | <span aria-hidden="true">»</span> | 73 | <span aria-hidden="true">»</span> |
74 | <span class="sr-only">Siguiente</span> | 74 | <span class="sr-only">Siguiente</span> |
75 | </a> | 75 | </a> |
76 | </li> | 76 | </li> |
77 | </ul> | 77 | </ul> |
78 | </nav> | 78 | </nav> |
79 | </div> | 79 | </div> |
80 | </div> | 80 | </div> |
81 | <div class="modal-footer"> | 81 | <div class="modal-footer"> |
82 | <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 82 | <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
83 | </div> | 83 | </div> |
84 | 84 |