mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +01:00
Added Calendar Icon to DateTime field
This commit is contained in:
@@ -40,6 +40,7 @@ export default class DateTimeField {
|
||||
|
||||
let options = Object.assign({}, this.options, list.data('grav-datetime') || {});
|
||||
list.datetimepicker(options).on('dp.show dp.update', this._disableDecades);
|
||||
list.siblings('.field-icons').on('click', () => list.mousedown().focus());
|
||||
}
|
||||
|
||||
_onAddedNodes(event, target/* , record, instance */) {
|
||||
|
||||
2
themes/grav/css-compiled/template.css
vendored
2
themes/grav/css-compiled/template.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,3 +1,18 @@
|
||||
.datetime-picker-wrapper {
|
||||
position: relative;
|
||||
input {
|
||||
padding-right: 2.5rem;
|
||||
}
|
||||
|
||||
.field-icons {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
bottom: 0;
|
||||
line-height: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.collapse {
|
||||
display: none;
|
||||
&.in {
|
||||
|
||||
Reference in New Issue
Block a user