diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/datepicker_controller.js b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/datepicker_controller.js index a774c894..ce50416e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/datepicker_controller.js +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/controllers/datepicker_controller.js @@ -12,6 +12,7 @@ export default class extends Controller { ] static values = { + inline: Boolean, minDate: String, dateFrom: String, dateTo: String, @@ -20,12 +21,14 @@ export default class extends Controller { initialize() { useDispatch(this) - + const inline = this.hasInlineValue ? this.inlineValue : true this.picker = flatpickr(this.fieldTarget, { mode: 'range', locale: German, - inline: true, + inline, minDate: this.minDateValue, + altFormat: 'd.m.Y', + altInput: !inline, onChange: selectedDates => { if (selectedDates.length === 2) { this.dateFromValue = flatpickr.formatDate(selectedDates[0], 'Y-m-d') diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss index c398edb7..b81096b5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss @@ -1,6 +1,6 @@ @import "~flatpickr/dist/flatpickr.css"; -.flatpickr-input { +[data-datepicker-inline-value="true"] .flatpickr-input { @apply hidden; } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html index eb847d4f..99be4580 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html @@ -27,40 +27,37 @@ data="{'search-target': 'dateTo', 'mobile-search-target': 'dateTo'}"/>
-
-
- {ep:dateRange(dateFrom: filterSettings.dateFrom, dateTo: filterSettings.dateTo, includeLabel: 0)} -
-
-
-
- -
- -
- - - -
-
- +
+
+
+
+ +
+ + + +
+
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html index df139fe2..ade6a613 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html @@ -34,6 +34,7 @@