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