Commit 84c688188ca6d0976b218008ad4a2e6f26404336
1 parent
b460273d56
Exists in
master
Paginacion
Showing
1 changed file
with
29 additions
and
12 deletions
Show diff stats
src/views/modal-vendedores.html
| 1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
| 2 | <h3 class="modal-title">Búsqueda de vendedores</h3> | 2 | <h3 class="modal-title">Búsqueda de vendedores</h3> |
| 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 mb-3"> | 5 | <div class="input-group mb-3"> |
| 6 | <input | 6 | <input type="text" class="form-control" placeholder="Busqueda" ng-model="filters" ng-change="search()" |
| 7 | type="text" | 7 | ng-keypress="enter($event.keyCode)"> |
| 8 | class="form-control" | ||
| 9 | placeholder="Busqueda" | ||
| 10 | ng-model="filters" | ||
| 11 | ng-change="search()" | ||
| 12 | ng-keypress="enter($event.keyCode)" | ||
| 13 | > | ||
| 14 | <table class="table table-striped table-sm"> | 8 | <table class="table table-striped table-sm"> |
| 15 | <thead> | 9 | <thead> |
| 16 | <tr> | 10 | <tr> |
| 17 | <th> | 11 | <th> |
| 18 | Código | 12 | Código |
| 19 | </th> | 13 | </th> |
| 20 | <th> | 14 | <th> |
| 21 | Nombre | 15 | Nombre |
| 22 | </th> | 16 | </th> |
| 23 | <th></th> | 17 | <th></th> |
| 24 | </tr> | 18 | </tr> |
| 25 | </thead> | 19 | </thead> |
| 26 | <tbody> | 20 | <tbody> |
| 27 | <tr ng-repeat="vendedor in filteredVendedores"> | 21 | <tr ng-repeat="vendedor in filteredVendedores"> |
| 28 | <td ng-bind="vendedor.CodVen"></td> | 22 | <td ng-bind="vendedor.CodVen"></td> |
| 29 | <td ng-bind="vendedor.NomVen"></td> | 23 | <td ng-bind="vendedor.NomVen"></td> |
| 30 | <td> | 24 | <td> |
| 31 | <button type="button" class="btn btn-secondary p-5 float-right mr-1" ng-click="select(producto)"> | 25 | <button type="button" class="btn p-2 float-right" ng-class="{ |
| 32 | <i class="fa fa-check" aria-hidden="true"></i> | 26 | 'btn-secondary': selectVendedores != key, |
| 27 | 'btn-primary': selectVendedores == key | ||
| 28 | }" | ||
| 29 | ng-click="select(vendedor)" foca-focus="selectVendedores == {{key}}" ng-keydown="itemProducto($event.keyCode)"> | ||
| 30 | <i class="fa fa-arrow-right" aria-hidden="true"></i> | ||
| 33 | </button> | 31 | </button> |
| 34 | </td> | 32 | </td> |
| 35 | </tr> | 33 | </tr> |
| 36 | </tbody> | 34 | </tbody> |
| 37 | </table> | 35 | </table> |
| 36 | <nav> | ||
| 37 | <ul class="pagination justify-content-end"> | ||
| 38 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | ||
| 39 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> | ||
| 40 | <span aria-hidden="true">«</span> | ||
| 41 | <span class="sr-only">Anterior</span> | ||
| 42 | </a> | ||
| 43 | </li> | ||
| 44 | <li class="page-item" ng-repeat="pagina in paginas" ng-class="{'active': pagina == currentPage}"> | ||
| 45 | <a class="page-link" href="#" ng-click="selectPage(pagina)" ng-bind="pagina"></a> | ||
| 46 | </li> | ||
| 47 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | ||
| 48 | <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> | ||
| 49 | <span aria-hidden="true">»</span> | ||
| 50 | <span class="sr-only">Siguiente</span> | ||
| 51 | </a> | ||
| 52 | </li> | ||
| 53 | </ul> |