Commit 9439df25f4cb3851b3317ef17442c36bdf3bd9c3
1 parent
ec744d659b
Exists in
master
Teclado virtual en input
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/views/modal-chofer.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 Chofer</h5> | 4 | <h5 class="modal-title my-1">Búsqueda de Chofer</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" | 10 | class="form-control" |
| 11 | id="search" | 11 | id="search" |
| 12 | placeholder="Búsqueda" | 12 | placeholder="Búsqueda" |
| 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="selectedChofer == -1" | 17 | foca-focus="selectedChofer == -1" |
| 18 | ng-focus="selectedChofer = -1" | 18 | ng-focus="selectedChofer = -1" |
| 19 | teclado-virtual | ||
| 19 | > | 20 | > |
| 20 | <div class="input-group-append"> | 21 | <div class="input-group-append"> |
| 21 | <button | 22 | <button |
| 22 | ladda="searchLoading" | 23 | ladda="searchLoading" |
| 23 | class="btn btn-outline-secondary" | 24 | class="btn btn-outline-secondary" |
| 24 | type="button" | 25 | type="button" |
| 25 | ng-click="busquedaPress(13)" | 26 | ng-click="busquedaPress(13)" |
| 26 | > | 27 | > |
| 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 | 33 | ||
| 33 | </div> | 34 | </div> |
| 34 | <div class="modal-body" id="modal-body"> | 35 | <div class="modal-body" id="modal-body"> |
| 35 | 36 | ||
| 36 | <div ng-show="!primerBusqueda"> | 37 | <div ng-show="!primerBusqueda"> |
| 37 | Debe realizar una primer búsqueda. | 38 | Debe realizar una primer búsqueda. |
| 38 | </div> | 39 | </div> |
| 39 | 40 | ||
| 40 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 41 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
| 41 | <thead> | 42 | <thead> |
| 42 | <tr> | 43 | <tr> |
| 43 | <th>Código</th> | 44 | <th>Código</th> |
| 44 | <th>Nombre</th> | 45 | <th>Nombre</th> |
| 45 | <th>DNI</th> | 46 | <th>DNI</th> |
| 46 | <th>Teléfono</th> | 47 | <th>Teléfono</th> |
| 47 | <th></th> | 48 | <th></th> |
| 48 | </tr> | 49 | </tr> |
| 49 | </thead> | 50 | </thead> |
| 50 | <tbody> | 51 | <tbody> |
| 51 | <tr ng-show="currentPageChoferes.length == 0 && primerBusqueda"> | 52 | <tr ng-show="currentPageChoferes.length == 0 && primerBusqueda"> |
| 52 | <td colspan="5"> | 53 | <td colspan="5"> |
| 53 | No se encontraron resultados. | 54 | No se encontraron resultados. |
| 54 | </td> | 55 | </td> |
| 55 | </tr> | 56 | </tr> |
| 56 | <tr class="selectable" | 57 | <tr class="selectable" |
| 57 | ng-repeat="(key,chofer) in currentPageChoferes" | 58 | ng-repeat="(key,chofer) in currentPageChoferes" |
| 58 | ng-click="select(chofer)"> | 59 | ng-click="select(chofer)"> |
| 59 | <td ng-bind="chofer.id"></td> | 60 | <td ng-bind="chofer.id"></td> |
| 60 | <td ng-bind="chofer.nombre"></td> | 61 | <td ng-bind="chofer.nombre"></td> |
| 61 | <td ng-bind="chofer.dni"></td> | 62 | <td ng-bind="chofer.dni"></td> |
| 62 | <td ng-bind="chofer.telefono"></td> | 63 | <td ng-bind="chofer.telefono"></td> |
| 63 | <td> | 64 | <td> |
| 64 | <button | 65 | <button |
| 65 | type="button" | 66 | type="button" |
| 66 | class="btn btn-xs p-1 float-right" | 67 | class="btn btn-xs p-1 float-right" |
| 67 | ng-class="{ | 68 | ng-class="{ |
| 68 | 'btn-secondary': selectedChofer != key, | 69 | 'btn-secondary': selectedChofer != key, |
| 69 | 'btn-primary': selectedChofer == key | 70 | 'btn-primary': selectedChofer == key |
| 70 | }" | 71 | }" |
| 71 | foca-focus="selectedChofer == {{key}}" | 72 | foca-focus="selectedChofer == {{key}}" |
| 72 | ng-keydown="itemChofer($event.keyCode)" | 73 | ng-keydown="itemChofer($event.keyCode)" |
| 73 | > | 74 | > |
| 74 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 75 | <i class="fa fa-circle-thin" aria-hidden="true"></i> |
| 75 | </button> | 76 | </button> |
| 76 | </td> | 77 | </td> |
| 77 | </tr> | 78 | </tr> |
| 78 | </tbody> | 79 | </tbody> |
| 79 | </table> | 80 | </table> |
| 80 | </div> | 81 | </div> |
| 81 | <div class="modal-footer py-1"> | 82 | <div class="modal-footer py-1"> |
| 82 | <nav ng-show="currentPageChoferes.length > 0 && primerBusqueda" class="mr-auto"> | 83 | <nav ng-show="currentPageChoferes.length > 0 && primerBusqueda" class="mr-auto"> |
| 83 | <ul class="pagination pagination-sm justify-content mb-0"> | 84 | <ul class="pagination pagination-sm justify-content 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 |