modal-zona.html
2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<div class="modal-header">
<h5 class="modal-title my-1">Búsqueda de Zonas</h5>
</div>
<div class="modal-body" id="modal-body">
<div class="input-group">
<input
ladda="searchLoading"
type="text"
class="form-control form-control-sm"
id="search"
placeholder="Búsqueda"
ng-model="filters"
ng-change="search()"
ng-keydown="busquedaDown($event.keyCode)"
ng-keypress="busquedaPress($event.keyCode)"
foca-focus="selectedProvincia == -1"
ng-focus="selectedProvincia = -1"
teclado-virtual
>
<div class="input-group-append">
<button
ladda="searchLoading"
class="btn btn-outline-secondary"
type="button"
ng-click="busquedaPress(13)"
>
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
</div>
<table class="table table-striped table-sm col-12">
<thead>
<tr>
<th>Código</th>
<th>Nombre</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-show="zonas.length == 0">
<td colspan="3">
No se encontraron resultados.
</td>
</tr>
<tr class="selected"
ng-repeat="(key, zona) in zonas | filter: filters"
ng-click="select(zona)"
>
<td ng-bind="zona.ID | rellenarDigitos: 3: 0"></td>
<td ng-bind="zona.NOM"></td>
<td class="d-md-none text-primary">
<i class="fa fa-circle-thin" aria-hidden="true"></i>
</td>
<td class="d-none d-md-table-cell">
<button
type="button"
class="btn btn-xs p-1 float-right"
ng-class="{
'btn-secondary': selectedProvincia != key,
'btn-primary': selectedProvincia == key
}"
foca-focus="selectedProvincia == {{key}}"
ng-keydown="itemProvincia($event.keyCode)">
<i class="fa fa-circle-thin" aria-hidden="true"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button class="btn btn-sm btn-secondary my-1" type="button" ng-click="cancel()">Cancelar</button>
</div>