diff --git a/src/js/controller.js b/src/js/controller.js index dba963d..fedd17d 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -23,6 +23,9 @@ angular.module('focaModalRemito') $scope.filteredRemitos = []; $scope.currentPageRemitos = []; $scope.selectedRemito = -1; + $scope.dateOptions = { + maxDate: new Date() + }; //METODOS $scope.busquedaPress = function(key) { diff --git a/src/views/foca-modal-remito.html b/src/views/foca-modal-remito.html index d3f318d..f67f664 100644 --- a/src/views/foca-modal-remito.html +++ b/src/views/foca-modal-remito.html @@ -45,10 +45,15 @@ class="form-control form-control-sm" id="inlineFormInputGroup" ladda="searchLoading" - type="date" + type="text" ng-model="fechaDesde" - hasta-hoy ng-required="true" + uib-datepicker-popup="dd/MM/yyyy" + show-button-bar="false" + is-open="datepickerOpen" + on-open-focus="false" + ng-focus="datepickerOpen = true" + datepicker-options="dateOptions" /> Fecha Hasta @@ -62,10 +67,15 @@ class="form-control form-control-sm" id="inlineFormInputGroup" ladda="searchLoading" - type="date" + type="text" ng-model="fechaHasta" ng-required="true" - hasta-hoy + uib-datepicker-popup="dd/MM/yyyy" + show-button-bar="false" + is-open="datepicker2Open" + on-open-focus="false" + ng-focus="datepicker2Open = true" + datepicker-options="dateOptions" />