Commit 41194bea65363c9cb9d0ef3523e3592f4ae56524
1 parent
0ece424641
Exists in
facturador
Arreglo en html y cantidad de botones por pagina.
Showing
2 changed files
with
10 additions
and
10 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -6,8 +6,8 @@ angular.module('focaBotoneraPrincipal') |
| 6 | 6 | botones, focaModalService, APP, focaBotoneraLateralService) { |
| 7 | 7 | $scope.paginas = []; |
| 8 | 8 | var botonesPorPagina = 10; |
| 9 | - if(APP === 'distribuidor' || APP === 'transportista') { | |
| 10 | - botonesPorPagina = 3; | |
| 9 | + if(APP === 'distribuidor' || APP === 'transportista' || APP === 'facturador') { | |
| 10 | + botonesPorPagina = 6; | |
| 11 | 11 | } |
| 12 | 12 | for(var i = 0; i < botones.data.length; i += botonesPorPagina) { |
| 13 | 13 | $scope.paginas.push(botones.data.slice(i, i + botonesPorPagina)); |
src/views/foca-botonera-principal.html
| 1 | -<div class="botonera-principal"> | |
| 1 | +<div class="botonera-principal h-75"> | |
| 2 | 2 | <div class="row mt-3 justify-content-center d-none d-sm-flex"> |
| 3 | 3 | <div class="col-auto p-0"> |
| 4 | 4 | <img src="./img/logoMapa.png"/> |
| 5 | 5 | </div> |
| 6 | 6 | </div> |
| 7 | - <div class="row"> | |
| 8 | - <div class="col-12 mb-3"> | |
| 7 | + <div class="row h-100 mt-4"> | |
| 8 | + <div class="col-12"> | |
| 9 | 9 | <swiper on-init="inicioSwiper"> |
| 10 | - <slides> | |
| 10 | + <slides class="d-flex align-items-center"> | |
| 11 | 11 | <slide ng-repeat="(keyPagina, pagina) in paginas"> |
| 12 | 12 | <menu class="botonera-principal-menu"> |
| 13 | 13 | <menuitem |
| ... | ... | @@ -27,15 +27,15 @@ |
| 27 | 27 | <next></next> |
| 28 | 28 | <pagination></pagination> |
| 29 | 29 | </swiper> |
| 30 | - <div class="d-none d-sm-block"> | |
| 30 | + <div class="d-none d-sm-flex"> | |
| 31 | 31 | <a |
| 32 | - class="btn btn-outline-dark mt-5 btn-lg" | |
| 32 | + class="btn btn-outline-dark btn-lg mx-1" | |
| 33 | 33 | href="javascript:void()" |
| 34 | 34 | ng-click="showTerminal()" |
| 35 | 35 | > |
| 36 | 36 | <i class="fa fa-info-circle" aria-hidden="true"></i> |
| 37 | 37 | </a> |
| 38 | - <a class="btn btn-outline-dark mt-5 btn-lg" | |
| 38 | + <a class="btn btn-outline-dark btn-lg mx-1" | |
| 39 | 39 | href="javascript:void()" |
| 40 | 40 | ng-click="logout()" |
| 41 | 41 | > |
| ... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | 46 | </div> |
| 47 | - <div class="row d-md-none fixed-bottom"> | |
| 47 | + <div class="row d-flex d-sm-none fixed-bottom"> | |
| 48 | 48 | <div class="w-100 d-flex px-3 acciones-mobile"> |
| 49 | 49 | <a |
| 50 | 50 | class="btn btn-outline-dark btn-lg mr-2" |