Commit 38153067d505a0369ebfb6df62c2bb0aa2720d77
1 parent
99162bd6b8
Exists in
develop
Agregado nuevo componente con botones de forma de pago.
Showing
2 changed files
with
24 additions
and
0 deletions
Show diff stats
src/js/app.js
1 | angular.module('focaBotoneraFacturador', []) | 1 | angular.module('focaBotoneraFacturador', []) |
2 | .component('focaBotoneraFacturador', { | 2 | .component('focaBotoneraFacturador', { |
3 | templateUrl: 'src/views/botonera-facturador.html', | 3 | templateUrl: 'src/views/botonera-facturador.html', |
4 | controller: 'focaBotoneraFacturadorController', | 4 | controller: 'focaBotoneraFacturadorController', |
5 | bindings: { | 5 | bindings: { |
6 | max: '<', | 6 | max: '<', |
7 | botones: '<' | 7 | botones: '<' |
8 | } | 8 | } |
9 | }) | 9 | }) |
10 | .component('focaBotoneraFormaPago', { | ||
11 | templateUrl: 'src/views/botonera-forma-pago.html', | ||
12 | controller: 'focaBotoneraTarjetasController', | ||
13 | bindings: { | ||
14 | botones: '<', | ||
15 | max: '<' | ||
16 | } | ||
17 | }) | ||
10 | .component('focaBotoneraTarjetas', { | 18 | .component('focaBotoneraTarjetas', { |
11 | templateUrl: 'src/views/botonera-tarjetas.html', | 19 | templateUrl: 'src/views/botonera-tarjetas.html', |
12 | controller: 'focaBotoneraTarjetasController', | 20 | controller: 'focaBotoneraTarjetasController', |
13 | bindings: { | 21 | bindings: { |
14 | botones: '<', | 22 | botones: '<', |
15 | max: '<' | 23 | max: '<' |
16 | } | 24 | } |
17 | }); | 25 | }); |
18 | 26 |
src/views/botonera-forma-pago.html
File was created | 1 | <div | |
2 | class="col-6 col-lg-3 py-2" | ||
3 | ng-repeat="boton in botones track by $index" | ||
4 | ng-class="{'d-md-grid': boton == ''}"> | ||
5 | <button | ||
6 | type="button" | ||
7 | class="btn btn-block btn-xs text-center rounded border border-light foca-overflow-hidden" | ||
8 | ng-disabled="boton.disabled" | ||
9 | ng-click=" | ||
10 | (boton != '') ? ejecutarFuncion(boton.label) : null; | ||
11 | activarBoton(boton);" | ||
12 | > | ||
13 | <img ng-src="./img/{{boton.image}}" alt=""> | ||
14 | <span>{{ boton.label }}</span> | ||
15 | </button> | ||
16 | </div> | ||
17 |