Commit f34ddc13db1d9c6d096bf82218be753e864a93e3
Exists in
master
Merge branch 'master' into 'master'
Master See merge request modulos-npm/foca-modal-nota-pedido!9
Showing
1 changed file
Show diff stats
src/views/foca-modal-nota-pedido.html
1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
2 | <h5 class="modal-title">Busqueda de Nota de Pedido</h5> | 2 | <h5 class="modal-title">Busqueda de Nota de Pedido</h5> |
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"> | 5 | <div class="input-group"> |
6 | <small class="col-2 text-left my-1">Fecha Desde</small> | 6 | <small class="col-2 text-left my-1">Fecha Desde</small> |
7 | <div class="input-group mb-2 col-4"> | 7 | <div class="input-group mb-2 col-4"> |
8 | <div class="input-group-prepend"> | 8 | <div class="input-group-prepend"> |
9 | <div class="input-group-text"> | 9 | <div class="input-group-text"> |
10 | <i class="fa fa-calendar"></i> | 10 | <i class="fa fa-calendar"></i> |
11 | </div> | 11 | </div> |
12 | </div> | 12 | </div> |
13 | <input | 13 | <input |
14 | class="form-control form-control-sm" | 14 | class="form-control form-control-sm" |
15 | id="inlineFormInputGroup" | 15 | id="inlineFormInputGroup" |
16 | ladda="searchLoading" | 16 | ladda="searchLoading" |
17 | type="date" | 17 | type="date" |
18 | ng-model="fechaDesde" | 18 | ng-model="fechaDesde" |
19 | hasta-hoy | 19 | hasta-hoy |
20 | ng-required="true" | 20 | ng-required="true" |
21 | /> | 21 | /> |
22 | </div> | 22 | </div> |
23 | <small class="col-2 text-left my-1">Fecha Hasta</small> | 23 | <small class="col-2 text-left my-1">Fecha Hasta</small> |
24 | <div class="input-group mb-2 col-4"> | 24 | <div class="input-group mb-2 col-4"> |
25 | <div class="input-group-prepend"> | 25 | <div class="input-group-prepend"> |
26 | <div class="input-group-text"> | 26 | <div class="input-group-text"> |
27 | <i class="fa fa-calendar"></i> | 27 | <i class="fa fa-calendar"></i> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | <input | 30 | <input |
31 | class="form-control form-control-sm" | 31 | class="form-control form-control-sm" |
32 | id="inlineFormInputGroup" | 32 | id="inlineFormInputGroup" |
33 | ladda="searchLoading" | 33 | ladda="searchLoading" |
34 | type="date" | 34 | type="date" |
35 | ng-model="fechaHasta" | 35 | ng-model="fechaHasta" |
36 | ng-required="true" | 36 | ng-required="true" |
37 | hasta-hoy | 37 | hasta-hoy |
38 | /> | 38 | /> |
39 | </div> | 39 | </div> |
40 | </div> | 40 | </div> |
41 | <div class="input-group"> | 41 | <div class="input-group"> |
42 | <input | 42 | <input |
43 | ladda="searchLoading" | 43 | ladda="searchLoading" |
44 | type="text" | 44 | type="text" |
45 | class="form-control form-control-sm" | 45 | class="form-control form-control-sm" |
46 | placeholder="Busqueda" | 46 | placeholder="Busqueda" |
47 | ng-model="filters" | 47 | ng-model="filters" |
48 | ng-change="search()" | 48 | ng-change="search()" |
49 | ng-keydown="busquedaDown($event.keyCode)" | 49 | ng-keydown="busquedaDown($event.keyCode)" |
50 | ng-keypress="busquedaPress($event.keyCode)" | 50 | ng-keypress="busquedaPress($event.keyCode)" |
51 | foca-focus="selectedNotaPedido == -1" | 51 | foca-focus="selectedNotaPedido == -1" |
52 | ng-focus="selectedNotaPedido = -1" | 52 | ng-focus="selectedNotaPedido = -1" |
53 | teclado-virtual | ||
53 | /> | 54 | /> |
54 | <div class="input-group-append"> | 55 | <div class="input-group-append"> |
55 | <button | 56 | <button |
56 | ladda="searchLoading" | 57 | ladda="searchLoading" |
57 | class="btn btn-outline-secondary" | 58 | class="btn btn-outline-secondary" |
58 | type="button" | 59 | type="button" |
59 | ng-click="busquedaPress(13)" | 60 | ng-click="busquedaPress(13)" |
60 | > | 61 | > |
61 | <i class="fa fa-search" aria-hidden="true"></i> | 62 | <i class="fa fa-search" aria-hidden="true"></i> |
62 | </button> | 63 | </button> |
63 | </div> | 64 | </div> |
64 | </div> | 65 | </div> |
65 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 66 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
66 | <thead> | 67 | <thead> |
67 | <tr> | 68 | <tr> |
68 | <th>Fecha</th> | 69 | <th>Fecha</th> |
69 | <th>Cliente</th> | 70 | <th>Cliente</th> |
70 | <th>Comprobante</th> | 71 | <th>Comprobante</th> |
71 | <th></th> | 72 | <th></th> |
72 | </tr> | 73 | </tr> |
73 | </thead> | 74 | </thead> |
74 | <tbody> | 75 | <tbody> |
75 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> | 76 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> |
76 | <td colspan="5"> | 77 | <td colspan="5"> |
77 | No se encontraron resultados. | 78 | No se encontraron resultados. |
78 | </td> | 79 | </td> |
79 | </tr> | 80 | </tr> |
80 | <tr class="selectable" | 81 | <tr class="selectable" |
81 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" | 82 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" |
82 | ng-click="select(notaPedido)"> | 83 | ng-click="select(notaPedido)"> |
83 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> | 84 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> |
84 | <td ng-bind="notaPedido.nombreCliente"></td> | 85 | <td ng-bind="notaPedido.nombreCliente"></td> |
85 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> | 86 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> |
86 | <td> | 87 | <td> |
87 | <button | 88 | <button |
88 | type="button" | 89 | type="button" |
89 | class="btn btn-xs p-1 float-right" | 90 | class="btn btn-xs p-1 float-right" |
90 | ng-class="{ | 91 | ng-class="{ |
91 | 'btn-secondary': selectedNotaPedido != key, | 92 | 'btn-secondary': selectedNotaPedido != key, |
92 | 'btn-primary': selectedNotaPedido == key | 93 | 'btn-primary': selectedNotaPedido == key |
93 | }" | 94 | }" |
94 | foca-focus="selectedNotaPedido == {{key}}" | 95 | foca-focus="selectedNotaPedido == {{key}}" |
95 | ng-keydown="itemNotaPedido($event.keyCode)" | 96 | ng-keydown="itemNotaPedido($event.keyCode)" |
96 | > | 97 | > |
97 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 98 | <i class="fa fa-arrow-right" aria-hidden="true"></i> |
98 | </button> | 99 | </button> |
99 | </td> | 100 | </td> |
100 | </tr> | 101 | </tr> |
101 | </tbody> | 102 | </tbody> |
102 | </table> | 103 | </table> |
103 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> | 104 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> |
104 | <ul class="pagination pagination-sm justify-content mb-0"> | 105 | <ul class="pagination pagination-sm justify-content mb-0"> |
105 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 106 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
106 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 107 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
107 | <span aria-hidden="true">«</span> | 108 | <span aria-hidden="true">«</span> |
108 | <span class="sr-only">Anterior</span> | 109 | <span class="sr-only">Anterior</span> |
109 | </a> | 110 | </a> |
110 | </li> | 111 | </li> |
111 | <li | 112 | <li |
112 | class="page-item" | 113 | class="page-item" |
113 | ng-repeat="pagina in paginas" | 114 | ng-repeat="pagina in paginas" |
114 | ng-class="{'active': pagina == currentPage}" | 115 | ng-class="{'active': pagina == currentPage}" |
115 | > | 116 | > |
116 | <a | 117 | <a |
117 | class="page-link" | 118 | class="page-link" |
118 | href="javascript:void();" | 119 | href="javascript:void();" |
119 | ng-click="selectPage(pagina)" | 120 | ng-click="selectPage(pagina)" |
120 | ng-bind="pagina" | 121 | ng-bind="pagina" |
121 | ></a> | 122 | ></a> |
122 | </li> | 123 | </li> |
123 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 124 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
124 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 125 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> |
125 | <span aria-hidden="true">»</span> | 126 | <span aria-hidden="true">»</span> |
126 | <span class="sr-only">Siguiente</span> | 127 | <span class="sr-only">Siguiente</span> |
127 | </a> | 128 | </a> |
128 | </li> | 129 | </li> |
129 | </ul> | 130 | </ul> |
130 | </nav> | 131 | </nav> |
131 | </div> | 132 | </div> |
132 | <div class="modal-footer py-1"> | 133 | <div class="modal-footer py-1"> |
133 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 134 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
134 | </div> | 135 | </div> |
135 | 136 |