Commit a55aec99a406178f9430ab1cf37c64963e78acd5
1 parent
47d8c7db86
Exists in
master
and in
1 other branch
cambios para mobile
Showing
1 changed file
with
7 additions
and
7 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 row"> | 
| 6 | <small class="col-2 text-left my-1">Fecha Desde</small> | 6 | <small class="col-lg-2 col-sm-4 text-left my-1">Fecha Desde</small> | 
| 7 | <div class="input-group mb-2 col-4"> | 7 | <div class="col-lg-4 col-sm-8 input-group mb-2"> | 
| 8 | <div class="input-group-prepend"> | 8 | <div class="input-group-prepend"> | 
| 9 | <div class="input-group-text"> | 9 | <div class="input-group-text form-control-sm"> | 
| 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-lg-2 col-sm-4 text-left my-1">Fecha Hasta</small> | 
| 24 | <div class="input-group mb-2 col-4"> | 24 | <div class="col-lg-4 col-sm-8 input-group mb-2"> | 
| 25 | <div class="input-group-prepend"> | 25 | <div class="input-group-prepend"> | 
| 26 | <div class="input-group-text"> | 26 | <div class="input-group-text form-control-sm"> | 
| 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 | teclado-virtual | 
| 54 | /> | 54 | /> | 
| 55 | <div class="input-group-append"> | 55 | <div class="input-group-append"> | 
| 56 | <button | 56 | <button | 
| 57 | ladda="searchLoading" | 57 | ladda="searchLoading" | 
| 58 | class="btn btn-outline-secondary" | 58 | class="btn btn-outline-secondary" | 
| 59 | type="button" | 59 | type="button" | 
| 60 | ng-click="busquedaPress(13)" | 60 | ng-click="busquedaPress(13)" | 
| 61 | > | 61 | > | 
| 62 | <i class="fa fa-search" aria-hidden="true"></i> | 62 | <i class="fa fa-search" aria-hidden="true"></i> | 
| 63 | </button> | 63 | </button> | 
| 64 | </div> | 64 | </div> | 
| 65 | </div> | 65 | </div> | 
| 66 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 66 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 
| 67 | <thead> | 67 | <thead> | 
| 68 | <tr> | 68 | <tr> | 
| 69 | <th>Fecha</th> | 69 | <th>Fecha</th> | 
| 70 | <th>Cliente</th> | 70 | <th>Cliente</th> | 
| 71 | <th>Comprobante</th> | 71 | <th>Comprobante</th> | 
| 72 | <th></th> | 72 | <th></th> | 
| 73 | </tr> | 73 | </tr> | 
| 74 | </thead> | 74 | </thead> | 
| 75 | <tbody> | 75 | <tbody> | 
| 76 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> | 76 | <tr ng-show="currentPageNotasPedido.length == 0 && primerBusqueda"> | 
| 77 | <td colspan="5"> | 77 | <td colspan="5"> | 
| 78 | No se encontraron resultados. | 78 | No se encontraron resultados. | 
| 79 | </td> | 79 | </td> | 
| 80 | </tr> | 80 | </tr> | 
| 81 | <tr class="selectable" | 81 | <tr class="selectable" | 
| 82 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" | 82 | ng-repeat="(key,notaPedido) in currentPageNotasPedido" | 
| 83 | ng-click="select(notaPedido)"> | 83 | ng-click="select(notaPedido)"> | 
| 84 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> | 84 | <td ng-bind="notaPedido.fechaCarga | date : 'dd/MM/yyyy'"></td> | 
| 85 | <td ng-bind="notaPedido.nombreCliente"></td> | 85 | <td ng-bind="notaPedido.nombreCliente"></td> | 
| 86 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> | 86 | <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td> | 
| 87 | <td> | 87 | <td> | 
| 88 | <button | 88 | <button | 
| 89 | type="button" | 89 | type="button" | 
| 90 | class="btn btn-xs p-1 float-right" | 90 | class="btn btn-xs p-1 float-right" | 
| 91 | ng-class="{ | 91 | ng-class="{ | 
| 92 | 'btn-secondary': selectedNotaPedido != key, | 92 | 'btn-secondary': selectedNotaPedido != key, | 
| 93 | 'btn-primary': selectedNotaPedido == key | 93 | 'btn-primary': selectedNotaPedido == key | 
| 94 | }" | 94 | }" | 
| 95 | foca-focus="selectedNotaPedido == {{key}}" | 95 | foca-focus="selectedNotaPedido == {{key}}" | 
| 96 | ng-keydown="itemNotaPedido($event.keyCode)" | 96 | ng-keydown="itemNotaPedido($event.keyCode)" | 
| 97 | > | 97 | > | 
| 98 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 98 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 
| 99 | </button> | 99 | </button> | 
| 100 | </td> | 100 | </td> | 
| 101 | </tr> | 101 | </tr> | 
| 102 | </tbody> | 102 | </tbody> | 
| 103 | </table> | 103 | </table> | 
| 104 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> | 104 | <nav ng-show="currentPageNotasPedido.length > 0 && primerBusqueda"> | 
| 105 | <ul class="pagination pagination-sm justify-content mb-0"> | 105 | <ul class="pagination pagination-sm justify-content mb-0"> | 
| 106 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 106 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 
| 107 | <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)"> | 
| 108 | <span aria-hidden="true">«</span> | 108 | <span aria-hidden="true">«</span> | 
| 109 | <span class="sr-only">Anterior</span> | 109 | <span class="sr-only">Anterior</span> | 
| 110 | </a> | 110 | </a> | 
| 111 | </li> | 111 | </li> | 
| 112 | <li | 112 | <li | 
| 113 | class="page-item" | 113 | class="page-item" | 
| 114 | ng-repeat="pagina in paginas" | 114 | ng-repeat="pagina in paginas" | 
| 115 | ng-class="{'active': pagina == currentPage}" | 115 | ng-class="{'active': pagina == currentPage}" | 
| 116 | > | 116 | > | 
| 117 | <a | 117 | <a | 
| 118 | class="page-link" | 118 | class="page-link" | 
| 119 | href="javascript:void();" | 119 | href="javascript:void();" | 
| 120 | ng-click="selectPage(pagina)" | 120 | ng-click="selectPage(pagina)" | 
| 121 | ng-bind="pagina" | 121 | ng-bind="pagina" | 
| 122 | ></a> | 122 | ></a> | 
| 123 | </li> | 123 | </li> | 
| 124 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 124 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 
| 125 | <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)"> | 
| 126 | <span aria-hidden="true">»</span> | 126 | <span aria-hidden="true">»</span> | 
| 127 | <span class="sr-only">Siguiente</span> | 127 | <span class="sr-only">Siguiente</span> | 
| 128 | </a> | 128 | </a> | 
| 129 | </li> | 129 | </li> | 
| 130 | </ul> | 130 | </ul> | 
| 131 | </nav> | 131 | </nav> | 
| 132 | </div> | 132 | </div> | 
| 133 | <div class="modal-footer py-1"> | 133 | <div class="modal-footer py-1"> | 
| 134 | <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> | 
| 135 | </div> | 135 | </div> | 
| 136 | 136 |