Commit d0de59b66f2bf2078cded29a2cf9faf0907d0a90
Exists in
master
Merge branch 'master' into 'master'
Master(pmarco) See merge request modulos-npm/foca-modal-proveedor!6
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">Búsqueda de Proveedor</h5> | 2 | <h5 class="modal-title">Búsqueda de Proveedor</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 | type="text" | 7 | type="text" |
| 8 | class="form-control" | 8 | class="form-control" |
| 9 | placeholder="Busqueda" | 9 | placeholder="Busqueda" |
| 10 | ng-model="filters" | 10 | ng-model="filters" |
| 11 | ng-change="search()" | 11 | ng-change="search()" |
| 12 | ng-keydown="busquedaDown($event.keyCode)" | 12 | ng-keydown="busquedaDown($event.keyCode)" |
| 13 | ng-keypress="busquedaPress($event.keyCode)" | 13 | ng-keypress="busquedaPress($event.keyCode)" |
| 14 | foca-focus="selectedProveedores == -1" | 14 | foca-focus="selectedProveedores == -1" |
| 15 | ng-focus="selectedProveedores = -1" | 15 | ng-focus="selectedProveedores = -1" |
| 16 | > | 16 | > |
| 17 | <table class="table table-striped table-sm"> | 17 | <table class="table table-striped table-sm"> |
| 18 | <thead> | 18 | <thead> |
| 19 | <tr> | 19 | <tr> |
| 20 | <th>Código</th> | 20 | <th>Código</th> |
| 21 | <th>Nombre</th> | 21 | <th>Nombre</th> |
| 22 | <th>CUIT</th> | 22 | <th>CUIT</th> |
| 23 | <th></th> | 23 | <th></th> |
| 24 | </tr> | 24 | </tr> |
| 25 | </thead> | 25 | </thead> |
| 26 | <tbody> | 26 | <tbody> |
| 27 | <tr ng-repeat="(key, proveedor) in currentPageProveedores"> | 27 | <tr |
| 28 | class="selectable" | ||
| 29 | ng-repeat="(key, proveedor) in currentPageProveedores" | ||
| 30 | ng-click="select(proveedor)"> | ||
| 28 | <td ng-bind="proveedor.COD"></td> | 31 | <td ng-bind="proveedor.COD"></td> |
| 29 | <td ng-bind="proveedor.NOM"></td> | 32 | <td ng-bind="proveedor.NOM"></td> |
| 30 | <td ng-bind="proveedor.CUIT"></td> | 33 | <td ng-bind="proveedor.CUIT"></td> |
| 31 | <td> | 34 | <td> |
| 32 | <button | 35 | <button |
| 33 | type="button" | 36 | type="button" |
| 34 | class="btn btn-xs p-1 float-right" | 37 | class="btn btn-xs p-1 float-right" |
| 35 | ng-class="{ | 38 | ng-class="{ |
| 36 | 'btn-secondary': selectedProveedores != key, | 39 | 'btn-secondary': selectedProveedores != key, |
| 37 | 'btn-primary': selectedProveedores == key | 40 | 'btn-primary': selectedProveedores == key |
| 38 | }" | 41 | }" |
| 39 | ng-click="select(proveedor)" | 42 | ng-click="select(proveedor)" |
| 40 | foca-focus="selectedProveedores == {{key}}" | 43 | foca-focus="selectedProveedores == {{key}}" |
| 41 | ng-keydown="itemProveedor($event.keyCode)" | 44 | ng-keydown="itemProveedor($event.keyCode)" |
| 42 | > | 45 | > |
| 43 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | 46 | <i class="fa fa-arrow-right" aria-hidden="true"></i> |
| 44 | </button> | 47 | </button> |
| 45 | </td> | 48 | </td> |
| 46 | </tr> | 49 | </tr> |
| 47 | </tbody> | 50 | </tbody> |
| 48 | </table> | 51 | </table> |
| 49 | <nav> | 52 | <nav> |
| 50 | <ul class="pagination pagination-sm justify-content-end mb-0"> | 53 | <ul class="pagination pagination-sm justify-content-end mb-0"> |
| 51 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 54 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 52 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> | 55 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> |
| 53 | <span aria-hidden="true">«</span> | 56 | <span aria-hidden="true">«</span> |
| 54 | <span class="sr-only">Anterior</span> | 57 | <span class="sr-only">Anterior</span> |
| 55 | </a> | 58 | </a> |
| 56 | </li> | 59 | </li> |
| 57 | <li | 60 | <li |
| 58 | class="page-item" | 61 | class="page-item" |
| 59 | ng-repeat="pagina in paginas" | 62 | ng-repeat="pagina in paginas" |
| 60 | ng-class="{'active': pagina == currentPage}" | 63 | ng-class="{'active': pagina == currentPage}" |
| 61 | > | 64 | > |
| 62 | <a | 65 | <a |
| 63 | class="page-link" | 66 | class="page-link" |
| 64 | href="#" | 67 | href="#" |
| 65 | ng-click="selectPage(pagina)" | 68 | ng-click="selectPage(pagina)" |
| 66 | ng-bind="pagina" | 69 | ng-bind="pagina" |
| 67 | ></a> | 70 | ></a> |
| 68 | </li> | 71 | </li> |
| 69 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 72 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 70 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> | 73 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> |
| 71 | <span aria-hidden="true">»</span> | 74 | <span aria-hidden="true">»</span> |
| 72 | <span class="sr-only">Siguiente</span> | 75 | <span class="sr-only">Siguiente</span> |
| 73 | </a> | 76 | </a> |
| 74 | </li> | 77 | </li> |
| 75 | </ul> | 78 | </ul> |
| 76 | </nav> | 79 | </nav> |
| 77 | </div> | 80 | </div> |
| 78 | </div> | 81 | </div> |
| 79 | <div class="modal-footer py-1"> | 82 | <div class="modal-footer py-1"> |
| 80 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 83 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 81 | </div> | 84 | </div> |
| 82 | 85 |