Commit c69937291921db783579a8ed4912abf9e512df86
1 parent
d34caf7b9c
Exists in
master
Fix paginador.
Showing
1 changed file
with
3 additions
and
3 deletions
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 | <input | 6 | <input |
| 7 | ladda="searchLoading" | 7 | ladda="searchLoading" |
| 8 | type="text" | 8 | type="text" |
| 9 | class="form-control" | 9 | class="form-control" |
| 10 | placeholder="Busqueda" | 10 | placeholder="Busqueda" |
| 11 | ng-model="filters" | 11 | ng-model="filters" |
| 12 | ng-change="search()" | 12 | ng-change="search()" |
| 13 | ng-keydown="busquedaDown($event.keyCode)" | 13 | ng-keydown="busquedaDown($event.keyCode)" |
| 14 | ng-keypress="busquedaPress($event.keyCode)" | 14 | ng-keypress="busquedaPress($event.keyCode)" |
| 15 | foca-focus="selectedNotaPedido == -1" | 15 | foca-focus="selectedNotaPedido == -1" |
| 16 | ng-focus="selectedNotaPedido = -1" | 16 | ng-focus="selectedNotaPedido = -1" |
| 17 | > | 17 | > |
| 18 | <div class="input-group-append"> | 18 | <div class="input-group-append"> |
| 19 | <button | 19 | <button |
| 20 | ladda="searchLoading" | 20 | ladda="searchLoading" |
| 21 | class="btn btn-outline-secondary" | 21 | class="btn btn-outline-secondary" |
| 22 | type="button" | 22 | type="button" |
| 23 | ng-click="busquedaPress(13)" | 23 | ng-click="busquedaPress(13)" |
| 24 | > | 24 | > |
| 25 | <i class="fa fa-search" aria-hidden="true"></i> | 25 | <i class="fa fa-search" aria-hidden="true"></i> |
| 26 | </button> | 26 | </button> |
| 27 | </div> | 27 | </div> |
| 28 | </div> | 28 | </div> |
| 29 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 29 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
| 30 | <thead> | 30 | <thead> |
| 31 | <tr> | 31 | <tr> |
| 32 | <th>Fecha</th> | 32 | <th>Fecha</th> |
| 33 | <th>Cliente</th> | 33 | <th>Cliente</th> |
| 34 | <th>Comprobante</th> | 34 | <th>Comprobante</th> |
| 35 | <th></th> | 35 | <th></th> |
| 36 | </tr> | 36 | </tr> |
| 37 | </thead> | 37 | </thead> |
| 38 | <tbody> | 38 | <tbody> |
| 39 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> | 39 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> |
| 40 | <td colspan="5"> | 40 | <td colspan="5"> |
| 41 | No se encontraron resultados. | 41 | No se encontraron resultados. |
| 42 | </td> | 42 | </td> |
| 43 | </tr> | 43 | </tr> |
| 44 | <tr class="selectable" | 44 | <tr class="selectable" |
| 45 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" | 45 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" |
| 46 | ng-click="select(notaPedido)"> | 46 | ng-click="select(notaPedido)"> |
| 47 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> | 47 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> |
| 48 | <td ng-bind="notaPedido.nombreCliente"></td> | 48 | <td ng-bind="notaPedido.nombreCliente"></td> |
| 49 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> | 49 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> |
| 50 | <td> | 50 | <td> |
| 51 | <button | 51 | <button |
| 52 | type="button" | 52 | type="button" |
| 53 | class="btn btn-xs p-1 float-right" | 53 | class="btn btn-xs p-1 float-right" |
| 54 | ng-class="{ | 54 | ng-class="{ |
| 55 | 'btn-secondary': selectedNotaPedido != key, | 55 | 'btn-secondary': selectedNotaPedido != key, |
| 56 | 'btn-primary': selectedNotaPedido == key | 56 | 'btn-primary': selectedNotaPedido == key |
| 57 | }" | 57 | }" |
| 58 | foca-focus="selectedNotaPedido == {{key}}" | 58 | foca-focus="selectedNotaPedido == {{key}}" |
| 59 | ng-keydown="itemNotaPedido($event.keyCode)" | 59 | ng-keydown="itemNotaPedido($event.keyCode)" |
| 60 | > | 60 | > |
| 61 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 61 | <i class="fa fa-arrow-right" aria-hidden="true"></i> |
| 62 | </button> | 62 | </button> |
| 63 | </td> | 63 | </td> |
| 64 | </tr> | 64 | </tr> |
| 65 | </tbody> | 65 | </tbody> |
| 66 | </table> | 66 | </table> |
| 67 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> | 67 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> |
| 68 | <ul class="pagination pagination-sm justify-content mb-0"> | 68 | <ul class="pagination pagination-sm justify-content mb-0"> |
| 69 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 69 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 70 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> | 70 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
| 71 | <span aria-hidden="true">«</span> | 71 | <span aria-hidden="true">«</span> |
| 72 | <span class="sr-only">Anterior</span> | 72 | <span class="sr-only">Anterior</span> |
| 73 | </a> | 73 | </a> |
| 74 | </li> | 74 | </li> |
| 75 | <li | 75 | <li |
| 76 | class="page-item" | 76 | class="page-item" |
| 77 | ng-repeat="pagina in paginas" | 77 | ng-repeat="pagina in paginas" |
| 78 | ng-class="{'active': pagina == currentPage}" | 78 | ng-class="{'active': pagina == currentPage}" |
| 79 | > | 79 | > |
| 80 | <a | 80 | <a |
| 81 | class="page-link" | 81 | class="page-link" |
| 82 | href="#" | 82 | href="javascript:void();" |
| 83 | ng-click="selectPage(pagina)" | 83 | ng-click="selectPage(pagina)" |
| 84 | ng-bind="pagina" | 84 | ng-bind="pagina" |
| 85 | ></a> | 85 | ></a> |
| 86 | </li> | 86 | </li> |
| 87 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 87 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 88 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> | 88 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> |
| 89 | <span aria-hidden="true">»</span> | 89 | <span aria-hidden="true">»</span> |
| 90 | <span class="sr-only">Siguiente</span> | 90 | <span class="sr-only">Siguiente</span> |
| 91 | </a> | 91 | </a> |
| 92 | </li> | 92 | </li> |
| 93 | </ul> | 93 | </ul> |
| 94 | </nav> | 94 | </nav> |
| 95 | </div> | 95 | </div> |
| 96 | <div class="modal-footer py-1"> | 96 | <div class="modal-footer py-1"> |
| 97 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 97 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 98 | </div> | 98 | </div> |
| 99 | 99 |