24 lines
1.1 KiB
Twig
24 lines
1.1 KiB
Twig
{#- The card is the swap target, so the month navigation replaces the whole calendar -#}
|
|
<section id="calendar-wrapper" class="card" aria-labelledby="calendar-title">
|
|
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-line px-5 py-3">
|
|
<h2 id="calendar-title" class="section-title">Kalender</h2>
|
|
<div class="flex gap-2">
|
|
<button type="button"
|
|
class="btn-tool"
|
|
hx-get="{{ path('app_admin_accommodation_calendar', {id: accommodation.id, month: prevMonth}) }}"
|
|
hx-target="#calendar-wrapper"
|
|
hx-swap="outerHTML">
|
|
← {{ prevLabel }}
|
|
</button>
|
|
<button type="button"
|
|
class="btn-tool"
|
|
hx-get="{{ path('app_admin_accommodation_calendar', {id: accommodation.id, month: nextMonth}) }}"
|
|
hx-target="#calendar-wrapper"
|
|
hx-swap="outerHTML">
|
|
{{ nextLabel }} →
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<twig:calendar:grid :months="months"/>
|
|
</section>
|