From febd087a6289fa9a0bc5517ddf43a6373401207a Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Mon, 30 Jun 2025 21:04:15 +0200 Subject: [PATCH 1/2] Add datepicker template --- composer.json | 2 +- .../templates/mm_filteritem_datepicker.html5 | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 src/CoreBundle/Resources/contao/templates/mm_filteritem_datepicker.html5 diff --git a/composer.json b/composer.json index 93e76da13..edf244d23 100644 --- a/composer.json +++ b/composer.json @@ -95,7 +95,7 @@ }, "extra": { "branch-alias": { - "dev-release/2.4.0": "2.4.x-dev" + "dev-master": "2.4.x-dev" }, "contao": { "runonce": [ diff --git a/src/CoreBundle/Resources/contao/templates/mm_filteritem_datepicker.html5 b/src/CoreBundle/Resources/contao/templates/mm_filteritem_datepicker.html5 new file mode 100755 index 000000000..8781253cb --- /dev/null +++ b/src/CoreBundle/Resources/contao/templates/mm_filteritem_datepicker.html5 @@ -0,0 +1,27 @@ +extend('mm_filteritem_default'); ?> +block('formlabel'); ?> +hide_label): ?> + label ?> + +endblock(); ?> +block('formfield'); ?> +raw['eval']['urlparam']; +$dateMin = null !== $this->raw['optionsMin']['key'] ? \date('Y-m-d', $this->raw['optionsMin']['key']) : ''; +$dateMax = null !== $this->raw['optionsMax']['key'] ? \date('Y-m-d', $this->raw['optionsMax']['key']) : ''; +$placeholderMin = $this->raw['optionsMin']['value'] ?? ''; +$placeholderMax = $this->raw['optionsMax']['value'] ?? ''; +$index = 0; +?> +raw['eval']['fromField']): ?> + + +raw['eval']['size']) { + $index = 1; +} +?> +raw['eval']['toField']): ?> + + +endblock(); ?> From a308d8ee50a3acd7779adc4d912513569dbea375 Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Mon, 30 Jun 2025 21:10:54 +0200 Subject: [PATCH 2/2] Add datepicker template --- .phpcq.yaml.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/.phpcq.yaml.dist b/.phpcq.yaml.dist index 1391cd5a3..dac15ddbb 100644 --- a/.phpcq.yaml.dist +++ b/.phpcq.yaml.dist @@ -47,6 +47,7 @@ phpcq: - 31C7E470E2138192 - 5E6DDE998AB73B8E - A978220305CD5C32 + - 97B02DD8E5071466 # Composer normalize - C00543248C87FB13 # phpmd