wip: refactor admin controllers

This commit is contained in:
Björn Fromme committed 2026-07-16 09:03:42 +02:00
1 parent a294d1cc5e
commit bb7ae1adcc
24 files changed
+124 -45

No files matched your search

+11 -1
View File
@@ -6,7 +6,8 @@
<div class="lg:col-span-2">
{{ form_row(form.name) }}
</div>
{{ form_row(form.code) }}
{{ form_row(form.calendarCode) }}
{{ form_row(form.cmsCode) }}
{{ form_row(form.minPaxSummer) }}
{{ form_row(form.maxAdolescentAge) }}
{{ form_row(form.currency) }}
@@ -25,6 +26,15 @@
{{ cmsData.address | default('-') | nl2br }}
</div>
</div>
{% else %}
<div class="space-y-4">
<div class="max-w-64">
<svg class="w-full h-auto" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM10 10.5C10 11.3284 9.32843 12 8.5 12C7.67157 12 7 11.3284 7 10.5C7 9.67157 7.67157 9 8.5 9C9.32843 9 10 9.67157 10 10.5ZM18 17L14 11L7 17H18Z"></path></svg>
</div>
<div>
<strong>CMS-Code falsch oder Haus in TYPO3 nicht angelegt</strong>
</div>
</div>
{% endif %}
</div>
<div class="flex justify-between pt-8">
@@ -29,7 +29,7 @@
{{ accommodation.name }}
</td>
<td>
{{ accommodation.code }}
{{ accommodation.calendarCode }}
</td>
<td>
{{ accommodation.createdAt | date('d.m.Y, H:i') }}
@@ -2,8 +2,11 @@
{{ form_start(form) }}
<div class="grid lg:grid-cols-2 gap-y-4 lg:gap-x-8">
{{ form_row(form.dateFrom) }}
{{ form_row(form.dateTo) }}
<div class="lg:col-span-2 grid lg:grid-cols-3 gap-y-4 lg:gap-x-8">
{{ form_row(form.dateFrom) }}
{{ form_row(form.dateTo) }}
{{ form_row(form.season) }}
</div>
{{ form_row(form.pricePerNight) }}
{{ form_row(form.pricePerNightOverride) }}
{{ form_row(form.priceAdditionalPerson) }}
+16 -16
View File
@@ -1,19 +1,4 @@
<div class="flex justify-around items-center gap-6 mb-4 text-sm text-gray-600">
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-blue-500"></span> Preiskonfigurationen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-green-500"></span> Verpflegungsleistungen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-amber-500"></span> optionale Zusatzleistungen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-red-500"></span> Buchungsstopp
</div>
</div>
<div class="grid grid-cols-3 gap-8">
<div class="grid grid-cols-3 gap-8 mb-4">
{% for month in months %}
<div>
<div class="text-sm font-semibold text-center mb-2">{{ month.label }}</div>
@@ -54,3 +39,18 @@
</div>
{% endfor %}
</div>
<div class="flex justify-around items-center gap-6 mb-4 text-sm text-gray-600">
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-blue-500"></span> Preiskonfigurationen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-green-500"></span> Verpflegungsleistungen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-amber-500"></span> optionale Zusatzleistungen
</div>
<div class="flex items-center gap-1.5">
<span class="inline-block w-3 h-3 rounded-full bg-red-500"></span> nicht verfügbar
</div>
</div>