* Anreise-Wochentag nun per Saison statt Objekt definierbar * Anreise-Wochentag wird für buchbare Tage im Kalender berücksichtigt * Kalenderblätter bis zum Ende des spätesten bekannten Saisonende * Datepicker erlaubt nur noch mögliche Reiseenddaten anzuklicken im Fewo-Buchungsformular * Algogrithmus zur Bestimmung buchbarer Kalendereinträge komplett umgeschrieben, da bisher Reservierungen von nur einer Nacht nicht berücksichtigt werden konnten * Upload mehrerer Bilder gleichzeitig nun möglich * Beim Upload von Bildern werden diese gleich in JPEG umgewandelt, komprimiert und für den Slider zugeschnitten * Behoben: CRM-Export funktioniert teilweise nicht * Für CMS-Template "overview" können nun twig-Variablen per JSON in Spalte cms_settings gesetzt werden (=> Kulturreisensuche ausblendbar für Fewo-Übersichtsseite) * Sonstiges: * Falls CRM-Export nicht funktioniert, wird dies in der Buchungs-Mail für den Service deutlich gemacht SQL: ALTER TABLE fewo_lodging DROP only_weekday; ALTER TABLE fewo_season ADD only_weekday INT DEFAULT NULL; git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3359 f459cee4-fb09-11de-96c3-f9c5f16c3c76
65 lines
No EOL
2.5 KiB
Twig
65 lines
No EOL
2.5 KiB
Twig
<table class="table">
|
|
{% for calendar_month in calendar %}
|
|
<thead>
|
|
<tr>
|
|
<th colspan="7">
|
|
{{ calendar_month['monthName'] }} {{ calendar_month['year'] }}
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Mo</th>
|
|
<th>Di</th>
|
|
<th>Mi</th>
|
|
<th>Do</th>
|
|
<th>Fr</th>
|
|
<th>Sa</th>
|
|
<th>So</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for weekIndex in 0..5 %}
|
|
<tr>
|
|
{% 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 cell class #}
|
|
{% if (dayState.isReserved and
|
|
not dayState.isReservationBegin and not dayState.isReservationEnd)
|
|
%}
|
|
{% set cell_class = 'admin-calendar-day-reservation' %}
|
|
{% elseif dayState.isReservationBegin %}
|
|
{% set cell_class = 'admin-calendar-day-reservation-begin' %}
|
|
{% elseif dayState.isReservationEnd %}
|
|
{% set cell_class = 'admin-calendar-day-reservation-end' %}
|
|
{% elseif dayState.isInSeason %}
|
|
{% set cell_class = 'admin-calendar-day-free' %}
|
|
{% else %}
|
|
{% set cell_class = '' %}
|
|
{% endif %}
|
|
|
|
|
|
<td class="{{ cell_class }}">
|
|
{% if dayState.isReserved and not dayState.isReservationEnd %}
|
|
<a href="{{ '/admin/fewo/lodgings/' ~ lodging.id ~ '/reservations/' ~ dayState.reservation.id }}">
|
|
{{ dayState.day }}
|
|
</a>
|
|
{% elseif dayState.isBookable and not is_past_date %}
|
|
<a href="/admin/fewo/lodgings/{{ lodging.id }}/reservations/new/{{ dayState.day < 10 ? '0':'' }}{{dayState.day}}{{ calendar_month['monthNumber'] < 10 ? '0':'' }}{{calendar_month['monthNumber']}}{{calendar_month['year']}}">
|
|
{{ dayState.day }}
|
|
</a>
|
|
{% elseif dayState.day == 0 %}
|
|
-
|
|
{% else %}
|
|
<del>{{ dayState.day }}</del>
|
|
{% endif %}
|
|
</td>
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endfor %}
|
|
</table> |