From d873418d929df5743d4729d9b09626a6eadd1f8d Mon Sep 17 00:00:00 2001 From: Code Monkey <44203608+afedak@users.noreply.github.com> Date: Wed, 12 Dec 2018 04:00:27 +0200 Subject: [PATCH] Fix times search fields in range display mode (#253) --- CHANGELOG.md | 1 + .../Resources/views/Form/fields.html.twig | 46 ++++++++++--------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ff285a36..22f5d61df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -173,6 +173,7 @@ and to the [CHANGELOG recommendations](http://keepachangelog.com/). - Fix new booking form handler without BOOKING_NEW_FORM_PROCESS listeners - Fix user label translation in payin refund in sonata admin - Fix IBAN form field length +- Fix times search fields in range display mode ### Changed - Upgrade Microsoft Translator API request method from Bing to Azur diff --git a/src/Cocorico/CoreBundle/Resources/views/Form/fields.html.twig b/src/Cocorico/CoreBundle/Resources/views/Form/fields.html.twig index 36550213d..15da527ae 100644 --- a/src/Cocorico/CoreBundle/Resources/views/Form/fields.html.twig +++ b/src/Cocorico/CoreBundle/Resources/views/Form/fields.html.twig @@ -725,30 +725,32 @@ {{ form_widget(form.end) }} {% else %} - - {{ form_label(form.end) }} - +
+ + {{ form_label(form.end) }} + - {{ form_errors(form.end) }} - {% if timePicker %} -
- {{ form_widget(form.end_picker,{ - 'attr': { - 'class': 'form-control', - 'placeholder': '--:--', - } - }) }} - - - -
- {#hide end time field#} - - {% else %} - {{ form_widget(form.end) }} - {% endif %} + {% endif %} +
{% endif %} {%- endblock -%}