Commit 9d83d90532657a5f32bbf2c84dfb607f3fe70111
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !3
Showing
1 changed file
 
Show diff stats
src/views/foca-busqueda-cliente-modal.html
| 1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> | 
| 2 | <div class="row w-100"> | 2 | <div class="row w-100"> | 
| 3 | <div class="col-lg-6"> | 3 | <div class="col-lg-6"> | 
| 4 | <h5 class="modal-title my-1">Búsqueda de Cliente</h5> | 4 | <h5 class="modal-title my-1">Búsqueda de Cliente</h5> | 
| 5 | </div> | 5 | </div> | 
| 6 | <div class="input-group col-lg-6 pr-0 my-2"> | 6 | <div class="input-group col-lg-6 pr-0 my-2"> | 
| 7 | <input | 7 | <input | 
| 8 | ladda="searchLoading" | 8 | ladda="searchLoading" | 
| 9 | type="text" | 9 | type="text" | 
| 10 | class="form-control form-control-sm" | 10 | class="form-control form-control-sm" | 
| 11 | id="search" | 11 | id="search" | 
| 12 | placeholder="Busqueda" | 12 | placeholder="Busqueda" | 
| 13 | ng-model="filters" | 13 | ng-model="filters" | 
| 14 | ng-change="search()" | 14 | ng-change="search()" | 
| 15 | ng-keydown="busquedaDown($event.keyCode)" | 15 | ng-keydown="busquedaDown($event.keyCode)" | 
| 16 | ng-keypress="busquedaPress($event.keyCode)" | 16 | ng-keypress="busquedaPress($event.keyCode)" | 
| 17 | foca-focus="selectedClientes == -1" | 17 | foca-focus="selectedClientes == -1" | 
| 18 | ng-focus="selectedClientes = -1" | 18 | ng-focus="selectedClientes = -1" | 
| 19 | teclado-virtual | 19 | teclado-virtual | 
| 20 | > | 20 | > | 
| 21 | <div class="input-group-append"> | 21 | <div class="input-group-append"> | 
| 22 | <button | 22 | <button | 
| 23 | ladda="searchLoading" | 23 | ladda="searchLoading" | 
| 24 | data-spinner-color="#FF0000" | ||
| 24 | class="btn btn-outline-secondary" | 25 | class="btn btn-outline-secondary" | 
| 25 | type="button" | 26 | type="button" | 
| 26 | ng-click="busquedaPress(13)"> | 27 | ng-click="busquedaPress(13)"> | 
| 27 | <i class="fa fa-search" aria-hidden="true"></i> | 28 | <i class="fa fa-search" aria-hidden="true"></i> | 
| 28 | </button> | 29 | </button> | 
| 29 | </div> | 30 | </div> | 
| 30 | </div> | 31 | </div> | 
| 31 | </div> | 32 | </div> | 
| 32 | </div> | 33 | </div> | 
| 33 | <div class="modal-body" id="modal-body"> | 34 | <div class="modal-body" id="modal-body"> | 
| 34 | 35 | ||
| 35 | <div ng-show="!primerBusqueda"> | 36 | <div ng-show="!primerBusqueda"> | 
| 36 | Debe realizar una primer búsqueda. | 37 | Debe realizar una primer búsqueda. | 
| 37 | </div> | 38 | </div> | 
| 38 | 39 | ||
| 39 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 40 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 
| 40 | <thead> | 41 | <thead> | 
| 41 | <tr> | 42 | <tr> | 
| 42 | <th>Código</th> | 43 | <th>Código</th> | 
| 43 | <th>Nombre</th> | 44 | <th>Nombre</th> | 
| 44 | <th>CUIT</th> | 45 | <th>CUIT</th> | 
| 45 | <th></th> | 46 | <th></th> | 
| 46 | </tr> | 47 | </tr> | 
| 47 | </thead> | 48 | </thead> | 
| 48 | <tbody> | 49 | <tbody> | 
| 49 | <tr ng-show="currentPageClientes.length == 0 && primerBusqueda"> | 50 | <tr ng-show="currentPageClientes.length == 0 && primerBusqueda"> | 
| 50 | <td colspan="4"> | 51 | <td colspan="4"> | 
| 51 | No se encontraron resultados. | 52 | No se encontraron resultados. | 
| 52 | </td> | 53 | </td> | 
| 53 | </tr> | 54 | </tr> | 
| 54 | <tr | 55 | <tr | 
| 55 | class="selectable" | 56 | class="selectable" | 
| 56 | ng-repeat="(key, cliente) in currentPageClientes" | 57 | ng-repeat="(key, cliente) in currentPageClientes" | 
| 57 | ng-click="select(cliente)"> | 58 | ng-click="select(cliente)"> | 
| 58 | <td ng-bind="cliente.cod"></td> | 59 | <td ng-bind="cliente.cod"></td> | 
| 59 | <td ng-bind="cliente.nom"></td> | 60 | <td ng-bind="cliente.nom"></td> | 
| 60 | <td ng-bind="cliente.cuit"></td> | 61 | <td ng-bind="cliente.cuit"></td> | 
| 61 | <td> | 62 | <td> | 
| 62 | <button | 63 | <button | 
| 63 | type="button" | 64 | type="button" | 
| 64 | class="btn btn-xs p-1 float-right" | 65 | class="btn btn-xs p-1 float-right" | 
| 65 | ng-class="{ | 66 | ng-class="{ | 
| 66 | 'btn-secondary': selectedClientes != key, | 67 | 'btn-secondary': selectedClientes != key, | 
| 67 | 'btn-primary': selectedClientes == key | 68 | 'btn-primary': selectedClientes == key | 
| 68 | }" | 69 | }" | 
| 69 | ng-click="select(cliente)" | 70 | ng-click="select(cliente)" | 
| 70 | foca-focus="selectedClientes == {{key}}" | 71 | foca-focus="selectedClientes == {{key}}" | 
| 71 | ng-keydown="itemCliente($event.keyCode)" | 72 | ng-keydown="itemCliente($event.keyCode)" | 
| 72 | > | 73 | > | 
| 73 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 74 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 
| 74 | </button> | 75 | </button> | 
| 75 | </td> | 76 | </td> | 
| 76 | </tr> | 77 | </tr> | 
| 77 | </tbody> | 78 | </tbody> | 
| 78 | </table> | 79 | </table> | 
| 79 | 80 | ||
| 80 | </div> | 81 | </div> | 
| 81 | <div class="modal-footer py-1"> | 82 | <div class="modal-footer py-1"> | 
| 82 | <nav ng-show="currentPageClientes.length > 0 && primerBusqueda" class="mr-auto"> | 83 | <nav ng-show="currentPageClientes.length > 0 && primerBusqueda" class="mr-auto"> | 
| 83 | <ul class="pagination pagination-sm mb-0"> | 84 | <ul class="pagination pagination-sm mb-0"> | 
| 84 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 85 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 
| 85 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> | 86 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> | 
| 86 | <span aria-hidden="true">«</span> | 87 | <span aria-hidden="true">«</span> | 
| 87 | <span class="sr-only">Anterior</span> | 88 | <span class="sr-only">Anterior</span> | 
| 88 | </a> | 89 | </a> | 
| 89 | </li> | 90 | </li> | 
| 90 | <li | 91 | <li | 
| 91 | class="page-item" | 92 | class="page-item" | 
| 92 | ng-repeat="pagina in paginas" | 93 | ng-repeat="pagina in paginas" | 
| 93 | ng-class="{'active': pagina == currentPage}" | 94 | ng-class="{'active': pagina == currentPage}" | 
| 94 | > | 95 | > | 
| 95 | <a | 96 | <a | 
| 96 | class="page-link" | 97 | class="page-link" | 
| 97 | href="javascript:void()" | 98 | href="javascript:void()" | 
| 98 | ng-click="selectPage(pagina)" | 99 | ng-click="selectPage(pagina)" | 
| 99 | ng-bind="pagina" | 100 | ng-bind="pagina" | 
| 100 | ></a> | 101 | ></a> | 
| 101 | </li> | 102 | </li> | 
| 102 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 103 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 
| 103 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> | 104 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> | 
| 104 | <span aria-hidden="true">»</span> | 105 | <span aria-hidden="true">»</span> | 
| 105 | <span class="sr-only">Siguiente</span> | 106 | <span class="sr-only">Siguiente</span> | 
| 106 | </a> | 107 | </a> | 
| 107 | </li> | 108 | </li> | 
| 108 | </ul> | 109 | </ul> | 
| 109 | </nav> | 110 | </nav> | 
| 110 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 111 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 
| 111 | </div> | 112 | </div> | 
| 112 | 113 |