Commit e68358f2375db70c93e57f0901719bebf2ee3f02

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master (pmarco)

See merge request modulos-npm/foca-modal-transportista!1
src/views/modal-transportista.html
1 <div class="modal-header py-1"> 1 <div class="modal-header py-1">
2 <h5 class="modal-title">Busqueda de Transportista</h5> 2 <h5 class="modal-title">Busqueda de Transportista</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="selectedTransportista == -1" 15 foca-focus="selectedTransportista == -1"
16 ng-focus="selectedTransportista = -1" 16 ng-focus="selectedTransportista = -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>Nombre</th> 32 <th>Nombre</th>
33 <th>CUIT</th> 33 <th>CUIT</th>
34 <th></th> 34 <th></th>
35 </tr> 35 </tr>
36 </thead> 36 </thead>
37 <tbody> 37 <tbody>
38 <tr ng-show="currentPageTransportistas.length == 0 && primerBusqueda"> 38 <tr ng-show="currentPageTransportistas.length == 0 && primerBusqueda">
39 <td colspan="5"> 39 <td colspan="5">
40 No se encontraron resultados. 40 No se encontraron resultados.
41 </td> 41 </td>
42 </tr> 42 </tr>
43 <tr class="selectable" 43 <tr class="selectable"
44 ng-repeat="(key,transportista) in currentPageTransportistas" 44 ng-repeat="(key,transportista) in currentPageTransportistas"
45 ng-click="select(transportista)"> 45 ng-click="select(transportista)">
46 <td ng-bind="transportista.nombre"></td> 46 <td ng-bind="transportista.nombre"></td>
47 <td ng-bind="transportista.CUIT"></td> 47 <td ng-bind="transportista.CUIT"></td>
48 <td> 48 <td>
49 <button 49 <button
50 type="button" 50 type="button"
51 class="btn btn-xs p-1 float-right" 51 class="btn btn-xs p-1 float-right"
52 ng-class="{ 52 ng-class="{
53 'btn-secondary': selectedTransportista != key, 53 'btn-secondary': selectedTransportista != key,
54 'btn-primary': selectedTransportista == key 54 'btn-primary': selectedTransportista == key
55 }" 55 }"
56 foca-focus="selectedTransportista == {{key}}" 56 foca-focus="selectedTransportista == {{key}}"
57 ng-keydown="itemTransportista($event.keyCode)" 57 ng-keydown="itemTransportista($event.keyCode)"
58 > 58 >
59 <i class="fa fa-arrow-right" aria-hidden="true"></i> 59 <i class="fa fa-arrow-right" aria-hidden="true"></i>
60 </button> 60 </button>
61 </td> 61 </td>
62 </tr> 62 </tr>
63 </tbody> 63 </tbody>
64 </table> 64 </table>
65 <nav ng-show="currentPageTransportistas.length > 0 && primerBusqueda"> 65 <nav ng-show="currentPageTransportistas.length > 0 && primerBusqueda">
66 <ul class="pagination pagination-sm justify-content mb-0"> 66 <ul class="pagination pagination-sm justify-content mb-0">
67 <li class="page-item" ng-class="{'disabled': currentPage == 1}"> 67 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
68 <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> 68 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)">
69 <span aria-hidden="true">&laquo;</span> 69 <span aria-hidden="true">&laquo;</span>
70 <span class="sr-only">Anterior</span> 70 <span class="sr-only">Anterior</span>
71 </a> 71 </a>
72 </li> 72 </li>
73 <li 73 <li
74 class="page-item" 74 class="page-item"
75 ng-repeat="pagina in paginas" 75 ng-repeat="pagina in paginas"
76 ng-class="{'active': pagina == currentPage}" 76 ng-class="{'active': pagina == currentPage}"
77 > 77 >
78 <a 78 <a
79 class="page-link" 79 class="page-link"
80 href="#" 80 href="javascript:void();"
81 ng-click="selectPage(pagina)" 81 ng-click="selectPage(pagina)"
82 ng-bind="pagina" 82 ng-bind="pagina"
83 ></a> 83 ></a>
84 </li> 84 </li>
85 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> 85 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
86 <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> 86 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)">
87 <span aria-hidden="true">&raquo;</span> 87 <span aria-hidden="true">&raquo;</span>
88 <span class="sr-only">Siguiente</span> 88 <span class="sr-only">Siguiente</span>
89 </a> 89 </a>
90 </li> 90 </li>
91 </ul> 91 </ul>
92 </nav> 92 </nav>
93 </div> 93 </div>
94 <div class="modal-footer py-1"> 94 <div class="modal-footer py-1">
95 <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> 95 <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button>
96 </div> 96 </div>
97 97