Commit 402ddbcd8df9354460944cf05d5c70b0c93b578e
1 parent
717a69624b
Exists in
master
calendario bootstrap
Showing
2 changed files
with
17 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -23,6 +23,9 @@ angular.module('focaModalRemito') |
23 | 23 | $scope.filteredRemitos = []; |
24 | 24 | $scope.currentPageRemitos = []; |
25 | 25 | $scope.selectedRemito = -1; |
26 | + $scope.dateOptions = { | |
27 | + maxDate: new Date() | |
28 | + }; | |
26 | 29 | |
27 | 30 | //METODOS |
28 | 31 | $scope.busquedaPress = function(key) { |
src/views/foca-modal-remito.html
... | ... | @@ -45,10 +45,15 @@ |
45 | 45 | class="form-control form-control-sm" |
46 | 46 | id="inlineFormInputGroup" |
47 | 47 | ladda="searchLoading" |
48 | - type="date" | |
48 | + type="text" | |
49 | 49 | ng-model="fechaDesde" |
50 | - hasta-hoy | |
51 | 50 | ng-required="true" |
51 | + uib-datepicker-popup="dd/MM/yyyy" | |
52 | + show-button-bar="false" | |
53 | + is-open="datepickerOpen" | |
54 | + on-open-focus="false" | |
55 | + ng-focus="datepickerOpen = true" | |
56 | + datepicker-options="dateOptions" | |
52 | 57 | /> |
53 | 58 | </div> |
54 | 59 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> |
... | ... | @@ -62,10 +67,15 @@ |
62 | 67 | class="form-control form-control-sm" |
63 | 68 | id="inlineFormInputGroup" |
64 | 69 | ladda="searchLoading" |
65 | - type="date" | |
70 | + type="text" | |
66 | 71 | ng-model="fechaHasta" |
67 | 72 | ng-required="true" |
68 | - hasta-hoy | |
73 | + uib-datepicker-popup="dd/MM/yyyy" | |
74 | + show-button-bar="false" | |
75 | + is-open="datepicker2Open" | |
76 | + on-open-focus="false" | |
77 | + ng-focus="datepicker2Open = true" | |
78 | + datepicker-options="dateOptions" | |
69 | 79 | /> |
70 | 80 | </div> |
71 | 81 | </div> |