diff --git a/trunk/app/Resources/views/admin.html.twig b/trunk/app/Resources/views/admin.html.twig
index 38222870..494e9911 100644
--- a/trunk/app/Resources/views/admin.html.twig
+++ b/trunk/app/Resources/views/admin.html.twig
@@ -34,6 +34,12 @@
%}
{% endstylesheets %}
+ {% stylesheets
+ 'bundles/app/css/daterangepicker.css'
+ filter='cssrewrite'
+ %}
+
+ {% endstylesheets %}
{# TODO Move to custom.css #}
{% endblock stylesheets %}
@@ -42,6 +48,7 @@
+
@@ -110,13 +117,14 @@
{#TODO ausmisten und im gleichen zuge das CSS für den Datepicker einfügen#}
{% block javascripts %}
{% javascripts
- '@AppBundle/Resources/public/js/jquery-3.1.1.js'
'@AppBundle/Resources/public/js/jquery-ui-1.12.1.js'
'@AppBundle/Resources/public/js/bootstrap-3.3.7.js'
'@AppBundle/Resources/public/js/jquery.prettyPhoto-3.1.6.js'
'@AppBundle/Resources/public/js/parallax.js'
'@AppBundle/Resources/public/js/owl.carousel-2.2.0.js'
'@AppBundle/Resources/public/js/bootstrap-select-1.12.0.js'
+ '@AppBundle/Resources/public/vendor/daterangepicker/moment.min.js'
+ '@AppBundle/Resources/public/vendor/daterangepicker/daterangepicker.js'
'@AppBundle/Resources/public/js/custom.js'
%}
diff --git a/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig b/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig
index ea9a673f..81f75972 100644
--- a/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig
+++ b/trunk/app/Resources/views/default/admin/lodgingsEdit.html.twig
@@ -14,133 +14,6 @@
- {{ form_row(form.name, {'label': 'Name'}) }}
- {{ form_row(form.group, {'label': 'Gruppe'}) }}
- {{ form_row(form.type, {'label': 'Typ'}) }}
- {{ form_row(form.description, {'label': 'Beschreibung'}) }}
- {{ form_row(form.equipment, {'label': 'Ausstattung'}) }}
- {{ form_row(form.adress1, {'label': 'Adresse 1'}) }}
- {{ form_row(form.adress2, {'label': 'Adresse 2'}) }}
- {{ form_row(form.zipCode, {'label': 'PLZ'}) }}
- {{ form_row(form.city, {'label': 'Ort'}) }}
- {{ form_row(form.maximumPersons, {'label': 'Maximale Personenanzahl'}) }}
- {{ form_row(form.deposit, {'label': 'Kaution'}) }}
-
- {#
-
- {{ form_widget(form.calendarVisible) }}
-
- {{ form_errors(form.calendarVisible) }}
-
- #}
-
-
-
-
Bilder
- {% if lodging.images is not empty %}
-
-
-
- | Bild |
- Pos |
- Name |
- Beschreibung |
- |
-
-
-
- {% for image in lodging.images %}
-
-  }}) |
- {{ image.pos }} |
- {{ image.fileName }} |
- {{ image.description }} |
-
-
- Bearbeiten
-
-
- Löschen
-
- |
-
- {% endfor %}
-
-
- {% else %}
-
Keine Bilder vorhanden
- {% endif %}
-
-
- Hinzufügen
-
-
- Mehrere Bilder hochladen
-
-
-
-
-
Saisons (Preise)
-
- {% if lodging.prices is not empty %}
-
-
-
- | Name |
- Von |
- Bis |
- Mindestbelegung |
- Preis pro Nacht |
- Service-Gebühr |
- |
-
-
-
- {% for lodgingPrice in lodging.prices %}
-
- | {{ lodgingPrice.season.name }} |
- {{ lodgingPrice.season.fromDate|date('d.m.y') }} |
- {{ lodgingPrice.season.toDate|date('d.m.y') }} |
- {{ lodgingPrice.season.minimumStay }} |
- {{ lodgingPrice.perNight }} |
- {{ lodgingPrice.flatPrice }} |
-
-
- Bearbeiten
-
-
- Löschen
-
- |
-
- {% endfor %}
-
-
- {% else %}
-
Keine Saisons vorhanden
- {% endif %}
-
-
- Hinzufügen
-
-
-
-
Reservierungen
{% if lodging.reservations is not empty %}
@@ -216,6 +89,11 @@
{% include 'default/admin/lodgingsEditCalendar.html.twig' %}
-
+
+
+
Saisons (Preise)
+
+ {% if lodging.prices is not empty %}
+
+
+
+ | Name |
+ Von |
+ Bis |
+ Mindestbelegung |
+ Preis pro Nacht |
+ Service-Gebühr |
+ |
+
+
+
+ {% for lodgingPrice in lodging.prices %}
+ {% if lodgingPrice.season is not empty %}
+
+
+ | {{ lodgingPrice.season.name }} |
+ {{ lodgingPrice.season.fromDate|date('d.m.y') }} |
+ {{ lodgingPrice.season.toDate|date('d.m.y') }} |
+ {{ lodgingPrice.season.minimumStay }} |
+ {{ lodgingPrice.perNight }} |
+ {{ lodgingPrice.flatPrice }} |
+
+
+ Bearbeiten
+
+
+ Löschen
+
+ |
+
+ {% endif %}
+
+ {% endfor %}
+
+
+ {% else %}
+
Keine Saisons vorhanden
+ {% endif %}
+
+
+ Hinzufügen
+
+
+
+
+
+ {{ form_row(form.name, {'label': 'Name'}) }}
+ {{ form_row(form.group, {'label': 'Gruppe'}) }}
+ {{ form_row(form.type, {'label': 'Typ'}) }}
+ {{ form_row(form.description, {'label': 'Beschreibung'}) }}
+ {{ form_row(form.equipment, {'label': 'Ausstattung'}) }}
+ {{ form_row(form.adress1, {'label': 'Adresse 1'}) }}
+ {{ form_row(form.adress2, {'label': 'Adresse 2'}) }}
+ {{ form_row(form.zipCode, {'label': 'PLZ'}) }}
+ {{ form_row(form.city, {'label': 'Ort'}) }}
+ {{ form_row(form.maximumPersons, {'label': 'Maximale Personenanzahl'}) }}
+ {{ form_row(form.deposit, {'label': 'Kaution'}) }}
+
+ {#
+
+ {{ form_widget(form.calendarVisible) }}
+
+ {{ form_errors(form.calendarVisible) }}
+
+ #}
+
+
+
+
+
+
Bilder
+ {% if lodging.images is not empty %}
+
+
+
+ | Bild |
+ Pos |
+ Name |
+ Beschreibung |
+ |
+
+
+
+ {% for image in lodging.images %}
+
+  }}) |
+ {{ image.pos }} |
+ {{ image.fileName }} |
+ {{ image.description }} |
+
+
+ Bearbeiten
+
+
+ Löschen
+
+ |
+
+ {% endfor %}
+
+
+ {% else %}
+
Keine Bilder vorhanden
+ {% endif %}
+
+
+ Hinzufügen
+
+
+ Mehrere Bilder hochladen
+
+
+
+
+
+
{{ form_rest(form) }}
diff --git a/trunk/app/Resources/views/default/admin/lodgingsEditCalendar.html.twig b/trunk/app/Resources/views/default/admin/lodgingsEditCalendar.html.twig
index 7975f0a8..d26f857d 100644
--- a/trunk/app/Resources/views/default/admin/lodgingsEditCalendar.html.twig
+++ b/trunk/app/Resources/views/default/admin/lodgingsEditCalendar.html.twig
@@ -1,61 +1,73 @@
-
-{% for calendar_month in calendar %}
-
-
- |
- {{ calendar_month['monthName'] }} {{ calendar_month['year'] }}
- |
-
-
- | Mo |
- Di |
- Mi |
- Do |
- Fr |
- Sa |
- So |
-
-
-
- {% for weekIndex in 0..5 %}
-
- {% for dayIndex in 0..6 %}
- {# @var dayState \AppBundle\Util\CalendarDayState #}
- {% set dayState = calendar_month['data'][(weekIndex * 7) + dayIndex] %}
- {% set is_past_date = dayState.date is not empty and date(dayState.date) < date('now') %}
+ {% set counter = 0 %}
+ {% for calendar_month in calendar %}
+ {% set counter = counter + 1 %}
+ {% if counter%2 != 0 %}
+
+ {% endif %}
- {# Set cell class #}
+
+
+
+
+ |
+ {{ calendar_month['monthName'] }} {{ calendar_month['year'] }}
+ |
+
+
+ | Mo |
+ Di |
+ Mi |
+ Do |
+ Fr |
+ Sa |
+ So |
+
+
+
+ {% for weekIndex in 0..5 %}
+
+ {% for dayIndex in 0..6 %}
+ {# @var dayState \AppBundle\Util\CalendarDayState #}
+ {% set dayState = calendar_month['data'][(weekIndex * 7) + dayIndex] %}
-
- {% if dayState.isReserved or dayState.isReservationBegin %}
- {% if dayState.reservation.id is defined %}
-
- {{ dayState.day }}
-
- {% else %}
- ID
- {% endif %}
+ {% set is_past_date = dayState.date is not empty and date(dayState.date) < date('now') %}
- {% elseif dayState.isBookable and not is_past_date %}
-
- {{ dayState.day }}
-
- {% elseif dayState.day == 0 %}
-
- {% else %}
- {% if dayState.isPastDate %}
- {{ dayState.day }}
- {% else %}
- {{ dayState.day }}
- {% endif %}
- {% endif %}
- |
- {% endfor %}
+ {# Set cell class #}
+
+
+ {% if dayState.isReserved or dayState.isReservationBegin %}
+ {% if dayState.reservation.id is defined %}
+
+ {{ dayState.day }}
+
+ {% else %}
+ ID
+ {% endif %}
+
+ {% elseif dayState.isBookable and not is_past_date %}
+
+ {{ dayState.day }}
+
+ {% elseif dayState.day == 0 %}
+
+ {% else %}
+ {% if dayState.isPastDate %}
+ {{ dayState.day }}
+ {% else %}
+ {{ dayState.day }}
+ {% endif %}
+ {% endif %}
+ |
+ {% endfor %}
+
+
+ {% endfor %}
+
+
+
+ {% if counter%2 == 0 %}
+
+ {% endif %}
-
{% endfor %}
-
- {% endfor %}
-
-
diff --git a/trunk/app/Resources/views/default/admin/reservationsEdit.html.twig b/trunk/app/Resources/views/default/admin/reservationsEdit.html.twig
index a22af117..4de98975 100644
--- a/trunk/app/Resources/views/default/admin/reservationsEdit.html.twig
+++ b/trunk/app/Resources/views/default/admin/reservationsEdit.html.twig
@@ -6,31 +6,6 @@
Reservierung bearbeiten für {{ lodging.name }}
-
Mögliche Saisons
-
-
-
-
- | Name |
- Von |
- Bis |
- Preis pro Nacht |
- Service-Gebühr |
-
-
-
- {% for lodgingPrice in lodging.prices %}
-
- | {{ lodgingPrice.season.name }} |
- {{ lodgingPrice.season.fromDate|date('d-m-y') }} |
- {{ lodgingPrice.season.toDate|date('d-m-y') }} |
- {{ lodgingPrice.perNight }} |
- {{ lodgingPrice.flatPrice }} |
-
- {% endfor %}
-
-
-
Reservierung