Commit 5e6a32a345a18a3a106c04bcb36961f9c798b24d

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master (pmarco)

See merge request modulos-npm/foca-modal-moneda!1
src/views/modal-moneda.html
1 <div class="modal-header py-1"> 1 <div class="modal-header py-1">
2 <h5 class="modal-title">Busqueda de Moneda</h5> 2 <h5 class="modal-title">Busqueda de Moneda</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 form-control-sm" 8 class="form-control form-control-sm"
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="selectedMoneda == -1" 14 foca-focus="selectedMoneda == -1"
15 ng-focus="selectedMoneda = -1" 15 ng-focus="selectedMoneda = -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>Nombre</th> 20 <th>Nombre</th>
21 <th>Simbolo</th> 21 <th>Simbolo</th>
22 <th></th> 22 <th></th>
23 </tr> 23 </tr>
24 </thead> 24 </thead>
25 <tbody> 25 <tbody>
26 <tr 26 <tr
27 class="selectable" 27 class="selectable"
28 ng-repeat="(key,moneda) in currentPageMoneda" 28 ng-repeat="(key,moneda) in currentPageMoneda"
29 ng-click="select(moneda)" 29 ng-click="select(moneda)"
30 > 30 >
31 <td ng-bind="moneda.DETALLE"></td> 31 <td ng-bind="moneda.DETALLE"></td>
32 <td ng-bind="moneda.SIMBOLO"></td> 32 <td ng-bind="moneda.SIMBOLO"></td>
33 <td> 33 <td>
34 <button 34 <button
35 type="button" 35 type="button"
36 class="btn btn-xs p-1 float-right" 36 class="btn btn-xs p-1 float-right"
37 ng-class="{ 37 ng-class="{
38 'btn-secondary': selectedMoneda != key, 38 'btn-secondary': selectedMoneda != key,
39 'btn-primary': selectedMoneda == key 39 'btn-primary': selectedMoneda == key
40 }" 40 }"
41 foca-focus="selectedMoneda == {{key}}" 41 foca-focus="selectedMoneda == {{key}}"
42 ng-keydown="itemProducto($event.keyCode)" 42 ng-keydown="itemProducto($event.keyCode)"
43 > 43 >
44 <i class="fa fa-arrow-right" aria-hidden="true"></i> 44 <i class="fa fa-arrow-right" aria-hidden="true"></i>
45 </button> 45 </button>
46 </td> 46 </td>
47 </tr> 47 </tr>
48 </tbody> 48 </tbody>
49 </table> 49 </table>
50 <nav> 50 <nav>
51 <ul class="pagination pagination-sm justify-content-end mb-0"> 51 <ul class="pagination pagination-sm justify-content-end mb-0">
52 <li class="page-item" ng-class="{'disabled': currentPage == 1}"> 52 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
53 <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> 53 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)">
54 <span aria-hidden="true">&laquo;</span> 54 <span aria-hidden="true">&laquo;</span>
55 <span class="sr-only">Anterior</span> 55 <span class="sr-only">Anterior</span>
56 </a> 56 </a>
57 </li> 57 </li>
58 <li 58 <li
59 class="page-item" 59 class="page-item"
60 ng-repeat="pagina in paginas" 60 ng-repeat="pagina in paginas"
61 ng-class="{'active': pagina == currentPage}" 61 ng-class="{'active': pagina == currentPage}"
62 > 62 >
63 <a 63 <a
64 class="page-link" 64 class="page-link"
65 href="#" 65 href="javascript:void();"
66 ng-click="selectPage(pagina)" 66 ng-click="selectPage(pagina)"
67 ng-bind="pagina" 67 ng-bind="pagina"
68 ></a> 68 ></a>
69 </li> 69 </li>
70 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> 70 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
71 <a class="page-link" href="#" ng-click="selectPage(currentPage + 1)"> 71 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)">
72 <span aria-hidden="true">&raquo;</span> 72 <span aria-hidden="true">&raquo;</span>
73 <span class="sr-only">Siguiente</span> 73 <span class="sr-only">Siguiente</span>
74 </a> 74 </a>
75 </li> 75 </li>
76 </ul> 76 </ul>
77 </nav> 77 </nav>
78 </div> 78 </div>
79 </div> 79 </div>
80 <div class="modal-footer py-1"> 80 <div class="modal-footer py-1">
81 <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> 81 <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button>
82 </div> 82 </div>
83 83