Commit aaf76f25b032fff601e5c9c77b9a781608974b59

Authored by Eric Fernandez
1 parent ddf14b9dbc
Exists in master and in 1 other branch develop

filter number, cambio icons, paginacion en footer

Showing 1 changed file with 31 additions and 30 deletions   Show diff stats
src/views/modal-cotizacion.html
1 <div class="modal-header py-1"> 1 <div class="modal-header py-1">
2 <h5 class="modal-title">Seleccione Cotización <span ng-bind="moneda.SIMBOLO"></span></h5> 2 <h5 class="modal-title">Seleccione Cotización <span ng-bind="moneda.SIMBOLO"></span></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 <table class="table table-striped table-sm"> 6 <table class="table table-striped table-sm">
7 <thead> 7 <thead>
8 <tr> 8 <tr>
9 <th>Fecha</th> 9 <th>Fecha</th>
10 <th>Compra</th> 10 <th>Compra</th>
11 <th>Venta</th> 11 <th>Venta</th>
12 <th></th> 12 <th></th>
13 </tr> 13 </tr>
14 </thead> 14 </thead>
15 <tbody> 15 <tbody>
16 <tr 16 <tr
17 class="selectable" 17 class="selectable"
18 ng-repeat="(key,cotizacion) in currentPageCotizacion" 18 ng-repeat="(key,cotizacion) in currentPageCotizacion"
19 ng-click="select(cotizacion)" 19 ng-click="select(cotizacion)"
20 > 20 >
21 <td ng-bind="cotizacion.FECHA | date:'dd/MM/yyyy HH:mm'"></td> 21 <td ng-bind="cotizacion.FECHA | date:'dd/MM/yyyy HH:mm'"></td>
22 <td ng-bind="cotizacion.COTIZACION"></td> 22 <td ng-bind="cotizacion.COTIZACION"></td>
23 <td ng-bind="cotizacion.VENDEDOR"></td> 23 <td ng-bind="cotizacion.VENDEDOR | number:2"></td>
24 <td> 24 <td>
25 <button 25 <button
26 type="button" 26 type="button"
27 class="btn btn-xs p-1 float-right" 27 class="btn btn-xs p-1 float-right"
28 ng-class="{ 28 ng-class="{
29 'btn-secondary': selectedCotizacion != key, 29 'btn-secondary': selectedCotizacion != key,
30 'btn-primary': selectedCotizacion == key 30 'btn-primary': selectedCotizacion == key
31 }" 31 }"
32 foca-focus="selectedCotizacion == {{key}}" 32 foca-focus="selectedCotizacion == {{key}}"
33 ng-keydown="itemProducto($event.keyCode)" 33 ng-keydown="itemProducto($event.keyCode)"
34 > 34 >
35 <i class="fa fa-arrow-right" aria-hidden="true"></i> 35 <i class="fa fa-circle-thin" aria-hidden="true"></i>
36 </button> 36 </button>
37 </td> 37 </td>
38 </tr> 38 </tr>
39 </tbody> 39 </tbody>
40 </table> 40 </table>
41 <nav> 41
42 <ul class="pagination pagination-sm justify-content-end mb-0">
43 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
44 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)">
45 <span aria-hidden="true">&laquo;</span>
46 <span class="sr-only">Anterior</span>
47 </a>
48 </li>
49 <li
50 class="page-item"
51 ng-repeat="pagina in paginas"
52 ng-class="{'active': pagina == currentPage}"
53 >
54 <a
55 class="page-link"
56 href="javascript:void()"
57 ng-click="selectPage(pagina)"
58 ng-bind="pagina"
59 ></a>
60 </li>
61 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
62 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)">
63 <span aria-hidden="true">&raquo;</span>
64 <span class="sr-only">Siguiente</span>
65 </a>
66 </li>
67 </ul>
68 </nav>
69 </div> 42 </div>
70 </div> 43 </div>
71 <div class="modal-footer py-1"> 44 <div class="modal-footer py-1">
45 <nav class="mr-auto">
46 <ul class="pagination pagination-sm justify-content-end mb-0">
47 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
48 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)">