Commit 6259b1308a35d9871a94f34b7ee45961c988176b

Authored by Eric Fernandez
1 parent 5c90e004b1
Exists in master

quito abreviación

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/views/modal-vehiculo.html
1 <div class="modal-header py-1"> 1 <div class="modal-header py-1">
2 <h5 class="modal-title">Busqueda de Vehiculo</h5> 2 <h5 class="modal-title">Busqueda de Vehiculo</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 ladda="searchLoading" 7 ladda="searchLoading"
8 type="text" 8 type="text"
9 class="form-control" 9 class="form-control"
10 placeholder="Busqueda" 10 placeholder="Busqueda"
11 ng-model="filters" 11 ng-model="filters"
12 ng-change="search()" 12 ng-change="search()"
13 ng-keydown="busquedaDown($event.keyCode)" 13 ng-keydown="busquedaDown($event.keyCode)"
14 ng-keypress="busquedaPress($event.keyCode)" 14 ng-keypress="busquedaPress($event.keyCode)"
15 foca-focus="selectedVehiculo == -1" 15 foca-focus="selectedVehiculo == -1"
16 ng-focus="selectedVehiculo = -1" 16 ng-focus="selectedVehiculo = -1"
17 > 17 >
18 <div class="input-group-append"> 18 <div class="input-group-append">
19 <button 19 <button
20 ladda="searchLoading" 20 ladda="searchLoading"
21 class="btn btn-outline-secondary" 21 class="btn btn-outline-secondary"
22 type="button" 22 type="button"
23 ng-click="busquedaPress(13)" 23 ng-click="busquedaPress(13)"
24 > 24 >
25 <i class="fa fa-search" aria-hidden="true"></i> 25 <i class="fa fa-search" aria-hidden="true"></i>
26 </button> 26 </button>
27 </div> 27 </div>
28 </div> 28 </div>
29 <table ng-show="primerBusqueda" class="table table-striped table-sm"> 29 <table ng-show="primerBusqueda" class="table table-striped table-sm">
30 <thead> 30 <thead>
31 <tr> 31 <tr>
32 <th>Cod</th> 32 <th>Código</th>
33 <th>Tractor</th> 33 <th>Tractor</th>
34 <th>Semi</th> 34 <th>Semi</th>
35 <th>Capacidad</th> 35 <th>Capacidad</th>
36 <th>Cisternado</th> 36 <th>Cisternado</th>
37 </tr> 37 </tr>
38 </thead> 38 </thead>
39 <tbody> 39 <tbody>
40 <tr ng-show="currentPageVehiculos.length == 0 && primerBusqueda"> 40 <tr ng-show="currentPageVehiculos.length == 0 && primerBusqueda">
41 <td colspan="5"> 41 <td colspan="5">
42 No se encontraron resultados. 42 No se encontraron resultados.
43 </td> 43 </td>
44 </tr> 44 </tr>
45 <tr class="selectable" 45 <tr class="selectable"
46 ng-repeat="(key,vehiculo) in currentPageVehiculos" 46 ng-repeat="(key,vehiculo) in currentPageVehiculos"
47 ng-click="select(vehiculo)"> 47 ng-click="select(vehiculo)">
48 <td ng-bind="vehiculo.id"></td> 48 <td ng-bind="vehiculo.id"></td>
49 <td ng-bind="vehiculo.tractor"></td> 49 <td ng-bind="vehiculo.tractor"></td>
50 <td ng-bind="vehiculo.semi"></td> 50 <td ng-bind="vehiculo.semi"></td>
51 <td ng-bind="vehiculo.capacidad"></td> 51 <td ng-bind="vehiculo.capacidad"></td>
52 <td ng-bind="vehiculo.cisternado"></td> 52 <td ng-bind="vehiculo.cisternado"></td>
53 <td> 53 <td>
54 <button 54 <button
55 type="button" 55 type="button"
56 class="btn btn-xs p-1 float-right" 56 class="btn btn-xs p-1 float-right"
57 ng-class="{ 57 ng-class="{
58 'btn-secondary': selectedVehiculo != key, 58 'btn-secondary': selectedVehiculo != key,
59 'btn-primary': selectedVehiculo == key 59 'btn-primary': selectedVehiculo == key
60 }" 60 }"
61 foca-focus="selectedVehiculo == {{key}}" 61 foca-focus="selectedVehiculo == {{key}}"
62 ng-keydown="itemVehiculo($event.keyCode)" 62 ng-keydown="itemVehiculo($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="currentPageVehiculos.length > 0 && primerBusqueda"> 70 <nav ng-show="currentPageVehiculos.length > 0 && primerBusqueda">
71 <ul class="pagination pagination-sm justify-content mb-0"> 71 <ul class="pagination pagination-sm justify-content 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="javascript:void();" ng-click="selectPage(currentPage - 1)"> 73 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)">
74 <span aria-hidden="true">&laquo;</span> 74 <span aria-hidden="true">&laquo;</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="javascript:void();" 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="javascript:void();" ng-click="selectPage(currentPage + 1)"> 91 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)">
92 <span aria-hidden="true">&raquo;</span> 92 <span aria-hidden="true">&raquo;</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