diff --git a/src/app/pages/form/inputs/inputs.html b/src/app/pages/form/inputs/inputs.html index 13bd467..1a21c33 100644 --- a/src/app/pages/form/inputs/inputs.html +++ b/src/app/pages/form/inputs/inputs.html @@ -34,6 +34,12 @@
+
+
+
@@ -55,8 +61,6 @@ ba-panel-class="with-scroll">
- - diff --git a/src/app/pages/form/inputs/widgets/datePickers/datePickers.html b/src/app/pages/form/inputs/widgets/datePickers/datePickers.html new file mode 100644 index 0000000..c7bf647 --- /dev/null +++ b/src/app/pages/form/inputs/widgets/datePickers/datePickers.html @@ -0,0 +1,22 @@ +
+
+

Inline

+ +
+ +
+
+ +
+

Popup

+ +

+ + + + +

+ +
+ +
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js b/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js new file mode 100644 index 0000000..61ba75e --- /dev/null +++ b/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js @@ -0,0 +1,20 @@ +/** + * Created by n.poltoratsky + * on 23.06.2016. + */ +(function(){ + 'use strict'; + + angular.module('BlurAdmin.pages.form') + .controller('datepickerCtrl', datepickerCtrl); + + /** @ngInject */ + function datepickerCtrl($scope) { + + $scope.dt = new Date(); + $scope.options = { + showWeeks: false + }; + + } +})(); \ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js b/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js new file mode 100644 index 0000000..a3f71e2 --- /dev/null +++ b/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js @@ -0,0 +1,26 @@ +/** + * Created by n.poltoratsky + * on 23.06.2016. + */ +(function(){ + 'use strict'; + + angular.module('BlurAdmin.pages.form') + .controller('datepickerpopupCtrl', datepickerpopupCtrl); + + /** @ngInject */ + function datepickerpopupCtrl($scope) { + + $scope.open = open; + $scope.opened = false; + $scope.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate']; + $scope.format = $scope.formats[0]; + $scope.options = { + showWeeks: false + }; + + function open() { + $scope.opened = true; + } + } +})(); \ No newline at end of file diff --git a/src/sass/theme/_datePicker.scss b/src/sass/theme/_datePicker.scss new file mode 100644 index 0000000..597ad84 --- /dev/null +++ b/src/sass/theme/_datePicker.scss @@ -0,0 +1,45 @@ +.datepicker { + .btn:hover { + transform: scale(1); + } + + button.btn.btn-default { + background-color: transparent; + } + + button.btn.btn-default.active { + background-color: $info; + color: white; + } + + button.btn.active span.ng-binding.text-info { + color: white; + } +} + +.uib-datepicker-wrap { + display:inline-block; + min-height:270px; +} + +.uib-datepicker span.ng-binding.text-muted { + color: $default-text; +} +.uib-datepicker-popup { + + background-color: $bootstrap-panel-bg; + border-width: 0; + color: black; + + button.btn { + color: black; + + .text-muted { + color: black; + } + } + + .glyphicon { + color: rgba($progress-background, 1); + } +} \ No newline at end of file