diff --git a/src/js/controller.js b/src/js/controller.js index a7fa5e5..7894632 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -23,6 +23,9 @@ angular.module('focaModalNotaPedido') $scope.filteredNotasPedido = []; $scope.currentPageNotasPedido = []; $scope.selectedNotaPedido = -1; + $scope.dateOptions = { + maxDate: new Date() + }; //METODOS $scope.busquedaPress = function(key) { diff --git a/src/views/foca-modal-nota-pedido.html b/src/views/foca-modal-nota-pedido.html index 1b14c7f..22db075 100644 --- a/src/views/foca-modal-nota-pedido.html +++ b/src/views/foca-modal-nota-pedido.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" />