From f51017325fd0b094ca85dfed88c475880166f27f Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 14 Aug 2019 18:40:04 +0200 Subject: [PATCH] Added datepicker --- Classes/Controller/DateController.php | 4 ++-- Resources/Private/Partials/Date/SearchForm.html | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Classes/Controller/DateController.php b/Classes/Controller/DateController.php index f4d36f0..601bb9c 100644 --- a/Classes/Controller/DateController.php +++ b/Classes/Controller/DateController.php @@ -90,11 +90,11 @@ class DateController extends ActionController } if ($this->request->hasArgument('start') && $this->request->getArgument('start') != '') { - $start = date( "Y-m-d", strtotime( $this->request->getArgument('start'))); + $start = date( "d.m.y", strtotime( $this->request->getArgument('start'))); } if ($this->request->hasArgument('end') && $this->request->getArgument('end') != '') { - $end = date( "Y-m-d", strtotime( $this->request->getArgument('end'))); + $end = date( "d.m.y", strtotime( $this->request->getArgument('end'))); } $demand = $this->createDemandFromSearch(); diff --git a/Resources/Private/Partials/Date/SearchForm.html b/Resources/Private/Partials/Date/SearchForm.html index 2d8f8c5..5886f17 100644 --- a/Resources/Private/Partials/Date/SearchForm.html +++ b/Resources/Private/Partials/Date/SearchForm.html @@ -18,13 +18,23 @@
- +
+ +
+
+
+
- +
+ +
+
+
+