Commit cc2197abcec5fbf4a77ac8e61e09125c2efaad11
1 parent
f1a4c3b11f
Exists in
master
and in
1 other branch
Cambio en la vista.
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
src/views/botonera-productos.html
1 | <div | 1 | <div |
2 | class="col-6 col-sm-3 p-2" | 2 | class="col-6 col-sm-3 p-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-producto rounded border border-light p-0" | 7 | class="btn btn-block rounded border border-light p-0" |
8 | ng-click="(boton != '') ? ejecutarFuncion(boton.label) : null;" | 8 | ng-click="(boton != '') ? ejecutarFuncion(boton) : null;" |
9 | ng-class="{'btn-producto' : boton.image, 'btn-producto-default' : !boton.image}" | ||
9 | > | 10 | > |
10 | <img ng-src="./img/{{boton.image}}" alt=""> | 11 | <img ng-src="./img/{{boton.image || boton.imageDefault}}" alt=""> |
12 | <label ng-if="!boton.image" ng-bind="boton.label"></label> | ||
11 | </button> | 13 | </button> |
12 | </div> | 14 | </div> |
13 | 15 |