Commit 4853360e5da936183a469a0d6d8cf4c3fcf49193
1 parent
96c49ad801
Exists in
master
and in
2 other branches
fix code review.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/views/foca-modal-remito.html
| 1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
| 2 | <h5 class="modal-title">Busqueda de Remito</h5> | 2 | <h5 class="modal-title">Busqueda de Remito</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="selectedRemito == -1" | 15 | foca-focus="selectedRemito == -1" |
| 16 | ng-focus="selectedRemito = -1" | 16 | ng-focus="selectedRemito = -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="currentPageRemitos.length == 0 && primerBusqueda"> | 39 | <tr ng-show="currentPageRemitos.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, remito) in currentPageRemitos" | 45 | ng-repeat="(key, remito) in currentPageRemitos" |
| 46 | ng-click="select(remito)"> | 46 | ng-click="select(remito)"> |
| 47 | <td ng-bind="remito.fechaRemito | date : 'dd/MM/yyyy'"></td> | 47 | <td ng-bind="remito.fechaRemito | date : 'dd/MM/yyyy'"></td> |
| 48 | <td ng-bind="remito.nombreCliente"></td> | 48 | <td ng-bind="remito.nombreCliente"></td> |
| 49 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> | 49 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | 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': selectedRemito != key, | 55 | 'btn-secondary': selectedRemito != key, |
| 56 | 'btn-primary': selectedRemito == key | 56 | 'btn-primary': selectedRemito == key |
| 57 | }" | 57 | }" |
| 58 | foca-focus="selectedRemito == {{key}}" | 58 | foca-focus="selectedRemito == {{key}}" |
| 59 | ng-keydown="itemRemito($event.keyCode)" | 59 | ng-keydown="itemRemito($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="currentPageRemitos.length > 0 && primerBusqueda"> | 67 | <nav ng-show="currentPageRemitos.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 | 70 | <a |
| 71 | class="page-link" | 71 | class="page-link" |
| 72 | href="javascript:void;" | 72 | href="javascript:void();" |
| 73 | ng-click="selectPage(currentPage - 1)" | 73 | ng-click="selectPage(currentPage - 1)" |
| 74 | > | 74 | > |
| 75 | <span aria-hidden="true">«</span> | 75 | <span aria-hidden="true">«</span> |
| 76 | <span class="sr-only">Anterior</span> | 76 | <span class="sr-only">Anterior</span> |
| 77 | </a> | 77 | </a> |
| 78 | </li> | 78 | </li> |
| 79 | <li | 79 | <li |
| 80 | class="page-item" | 80 | class="page-item" |
| 81 | ng-repeat="pagina in paginas" | 81 | ng-repeat="pagina in paginas" |
| 82 | ng-class="{'active': pagina == currentPage}" | 82 | ng-class="{'active': pagina == currentPage}" |
| 83 | > | 83 | > |
| 84 | <a | 84 | <a |
| 85 | class="page-link" | 85 | class="page-link" |
| 86 | href="javascript:void;" | 86 | href="javascript:void();" |
| 87 | ng-click="selectPage(pagina)" | 87 | ng-click="selectPage(pagina)" |
| 88 | ng-bind="pagina" | 88 | ng-bind="pagina" |
| 89 | ></a> | 89 | ></a> |
| 90 | </li> | 90 | </li> |
| 91 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 91 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 92 | <a | 92 | <a |
| 93 | class="page-link" | 93 | class="page-link" |
| 94 | href="javascript:void;" | 94 | href="javascript:void();" |
| 95 | ng-click="selectPage(currentPage + 1)" | 95 | ng-click="selectPage(currentPage + 1)" |
| 96 | > | 96 | > |
| 97 | <span aria-hidden="true">»</span> | 97 | <span aria-hidden="true">»</span> |
| 98 | <span class="sr-only">Siguiente</span> | 98 | <span class="sr-only">Siguiente</span> |
| 99 | </a> | 99 | </a> |
| 100 | </li> | 100 | </li> |
| 101 | </ul> | 101 | </ul> |
| 102 | </nav> | 102 | </nav> |
| 103 | </div> | 103 | </div> |
| 104 | <div class="modal-footer py-1"> | 104 | <div class="modal-footer py-1"> |
| 105 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 105 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 106 | </div> | 106 | </div> |
| 107 | 107 |