Commit 4fea86788cd3de1ac2d5fe7717f8316befb1ea61

Authored by Jose Pinto
1 parent aae07507bb
Exists in master and in 1 other branch develop

calendario bootstrap

Showing 2 changed files with 10 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -6,6 +6,9 @@ angular.module('focaCabeceraFacturador')
6 6  
7 7 $scope.showCabecera = true;
8 8 $scope.cabecera = [];
  9 + $scope.dateOptions = {
  10 + maxDate: new Date()
  11 + };
9 12  
10 13 $scope.$on('addCabecera', function(event, data) {
11 14 var propiedad = $filter('filter')($scope.cabecera, {label: data.label}, true);
src/views/cabecera.html
... ... @@ -28,13 +28,18 @@
28 28 </span>
29 29 <input
30 30 ng-show="datepickerAbierto"
31   - type="date"
  31 + type="text"
32 32 ng-model="$ctrl.fecha"
33 33 ng-change="datepickerAbierto = false"
34 34 ng-blur="datepickerAbierto = false"
35 35 class="form-control form-control-sm col-8 float-right"
36 36 foca-focus="datepickerAbierto"
37   - hasta-hoy
  37 + uib-datepicker-popup="dd/MM/yyyy"
  38 + show-button-bar="false"
  39 + is-open="datepickerOpen"
  40 + on-open-focus="false"
  41 + ng-focus="datepickerOpen = true"
  42 + datepicker-options="dateOptions"
38 43 />
39 44 </div>
40 45 <div class="col-5 col-sm border border-white border-right-0 align-middle">