Commit a1e1e2b0bfae7deeeea574ccfff0f31e8046af80
1 parent
d7ee920898
Exists in
develop
Arreglo en la vista.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/views/botonera-forma-pago.html
1 | <div | 1 | <div |
2 | class="col-6 col-lg-3 py-2" | 2 | class="col-6 col-sm-3 py-2" |
3 | ng-repeat="boton in botones track by $index" | 3 | ng-repeat="boton in botones track by $index" |
4 | ng-class="{'d-md-grid': boton == ''}"> | 4 | ng-class="{'d-md-grid': boton == ''}"> |
5 | <button | 5 | <button |
6 | type="button" | 6 | type="button" |
7 | class="btn btn-block btn-xs text-center rounded border border-light foca-overflow-hidden" | 7 | class="btn btn-block btn-xs text-center rounded border border-light foca-overflow-hidden" |
8 | ng-disabled="boton.disabled" | 8 | ng-disabled="boton.disabled" |
9 | ng-click=" | 9 | ng-click=" |
10 | (boton != '') ? ejecutarFuncion(boton) : null; | 10 | (boton != '') ? ejecutarFuncion(boton) : null; |
11 | activarBoton(boton);" | 11 | activarBoton(boton);" |
12 | > | 12 | > |
13 | <img ng-src="./img/{{boton.image}}" alt=""> | 13 | <img ng-src="./img/{{boton.image}}" alt=""> |
14 | <span>{{ boton.label }}</span> | 14 | <span>{{ boton.label }}</span> |
15 | </button> | 15 | </button> |
16 | </div> | 16 | </div> |
17 | 17 |
src/views/botonera-tarjetas.html
1 | <div | 1 | <div |
2 | class="col-4 col-lg-2 pb-3" | 2 | class="col-4 col-lg-2 px-1 pb-3" |
3 | ng-repeat="boton in botones track by $index" | 3 | ng-repeat="boton in botones track by $index" |
4 | ng-class="{'d-md-grid': boton == ''}"> | 4 | ng-class="{'d-md-grid': boton == ''}"> |
5 | <button | 5 | <button |
6 | type="button" | 6 | type="button" |
7 | class="btn btn-block btn-tarjeta rounded border p-1" | 7 | class="btn btn-block btn-tarjeta rounded border p-1" |
8 | ng-click=" | 8 | ng-click=" |
9 | (boton != '') ? ejecutarFuncion(boton) : null; | 9 | (boton != '') ? ejecutarFuncion(boton) : null; |
10 | activarBoton(boton);" | 10 | activarBoton(boton);" |
11 | ng-class=" | 11 | ng-class=" |
12 | { | 12 | { |
13 | 'd-sm-block h-100': boton == '', | 13 | 'd-sm-block h-100': boton == '', |
14 | 'border-light': !boton.active, | 14 | 'border-light': !boton.active, |
15 | 'border-warning': boton.active | 15 | 'border-warning': boton.active |
16 | }" | 16 | }" |
17 | ng-disabled="boton.disable" | 17 | ng-disabled="boton.disable" |
18 | > | 18 | > |
19 | <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt=""> | 19 | <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt=""> |
20 | <label ng-if="!boton.image" ng-bind="boton.nombre"></label> | 20 | <label ng-if="!boton.image" ng-bind="boton.nombre"></label> |
21 | </button> | 21 | </button> |
22 | </div> | 22 | </div> |
23 | 23 |