From a2d4159c88a94c3c8a4d6421b3026eac3cad77ff Mon Sep 17 00:00:00 2001 From: "valentin.wacker" Date: Thu, 26 Oct 2017 07:05:31 +0000 Subject: [PATCH] #1352 - bisheriger aktueller Stand, vor CalenderDayState git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3354 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- .../default/admin/lodgingsEdit.html.twig | 12 +++--- .../views/default/admin/lodgingsNew.html.twig | 5 ++- .../default/admin/reservationsEdit.html.twig | 2 +- .../default/admin/reservationsNew.html.twig | 2 +- .../views/default/admin/seasons.html.twig | 4 +- .../AppBundle/Controller/AdminController.php | 4 +- trunk/src/AppBundle/Entity/FewoLodging.php | 4 +- .../src/AppBundle/Entity/FewoReservation.php | 2 +- trunk/src/AppBundle/Form/FewoLodgingType.php | 38 +++++++++++++------ .../AppBundle/Form/FewoReservationType.php | 2 + 10 files changed, 48 insertions(+), 27 deletions(-) diff --git a/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig b/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig index a405f4c4..0a5d41f7 100644 --- a/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig +++ b/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig @@ -24,8 +24,9 @@ {{ form_row(form.city, {'label': 'Ort'}) }} {{ form_row(form.maximumPersons, {'label': 'Maximale Personenanzahl'}) }} {{ form_row(form.deposit, {'label': 'Kaution'}) }} - {{ form_row(form.onlyWeekday, {'label': 'Exklusiver Wochentag'}) }} + {#{{ form_row(form.onlyWeekday, {'label': 'Exklusiver Wochentag'}) }}#} + {#
{{ form_widget(form.calendarVisible) }} {{ form_errors(form.calendarVisible) }}
+ #}

@@ -97,8 +99,8 @@ {% for lodgingPrice in lodging.prices %} {{ lodgingPrice.season.name }} - {{ lodgingPrice.season.fromDate|date('d-m-y') }} - {{ lodgingPrice.season.toDate|date('d-m-y') }} + {{ lodgingPrice.season.fromDate|date('d.m.y') }} + {{ lodgingPrice.season.toDate|date('d.m.y') }} {{ lodgingPrice.season.minimumStay }} {{ lodgingPrice.perNight }} {{ lodgingPrice.flatPrice }} @@ -152,8 +154,8 @@ {% for lodgingReservation in lodging.reservations %} - {{ lodgingReservation.fromDate|date('d-m-y') }} - {{ lodgingReservation.toDate|date('d-m-y') }} + {{ lodgingReservation.fromDate|date('d.m.y') }} + {{ lodgingReservation.toDate|date('d.m.y') }} {% if lodgingReservation.status == 0 %} belegt diff --git a/trunk/app/Resources/views/default/admin/lodgingsNew.html.twig b/trunk/app/Resources/views/default/admin/lodgingsNew.html.twig index e8add428..6b52113c 100644 --- a/trunk/app/Resources/views/default/admin/lodgingsNew.html.twig +++ b/trunk/app/Resources/views/default/admin/lodgingsNew.html.twig @@ -24,9 +24,9 @@ {{ form_row(form.city, {label: 'Ort'}) }} {{ form_row(form.maximumPersons, {label: 'Maximale Personenanzahl'}) }} {{ form_row(form.deposit, {label: 'Kaution'}) }} - {{ form_row(form.onlyWeekday, {label: 'Exklusiver Wochentag'}) }} - + {#{{ form_row(form.onlyWeekday, {label: 'Exklusiver Wochentag'}) }}#} + {#
{{ form_widget(form.calendarVisible) }} {{ form_errors(form.calendarVisible) }}
+ #}