wip: integrate with bpn-connect for admin crud, calendars

This commit is contained in:
Björn Fromme committed 2026-07-16 09:03:42 +02:00
1 parent 90b0726f0d
commit f0b68b2cc4
12 files changed
+481 -35

No files matched your search

@@ -0,0 +1 @@
<twig:calendar :accommodation="accommodation" :startMonth="startMonth ?? null"/>
+10 -6
View File
@@ -25,6 +25,10 @@
<hr class="my-8">
<twig:calendar :accommodation="accommodation"/>
<hr class="my-8">
<h2 class="text-xl font-bold">
Preise
</h2>
@@ -41,7 +45,7 @@
Preis pro Nacht
</th>
<th>
Preise weitere Person
Preis weitere Person
</th>
<th>
Mindestbelegung (Nächte)
@@ -95,7 +99,7 @@
</tr>
{% else %}
<tr>
<td colspan="2">
<td colspan="7" class="text-center">
Keine Daten
</td>
</tr>
@@ -165,7 +169,7 @@
</tr>
{% else %}
<tr>
<td colspan="5">
<td colspan="5" class="text-center">
Keine Daten
</td>
</tr>
@@ -241,7 +245,7 @@
</tr>
{% else %}
<tr>
<td colspan="6">
<td colspan="6" class="text-center">
Keine Daten
</td>
</tr>
@@ -256,9 +260,9 @@
</a>
</div>
<hr class="my-8">
{% if cmsData is defined and cmsData.success is true %}
<hr class="my-8">
{% if cmsData is defined %}
<h2 class="text-xl font-bold">
CMS-Daten
</h2>
@@ -54,7 +54,7 @@
</tr>
{% else %}
<tr>
<td colspan="4">
<td colspan="5" class="text-center">
Keine Daten...
</td>
</tr>
@@ -64,8 +64,12 @@
</div>
</div>
<div class="flex justify-end">
<a href="{{ path('app_admin_accommodation_create') }}" class="button button--primary button--small">
<button type="button"
hx-get="{{ path('app_admin_accommodation_create') }}"
hx-target="body"
hx-swap="beforeend"
class="button button--primary button--small">
neu
</a>
</button>
</div>
{% endblock %}
@@ -0,0 +1,23 @@
{% extends 'htmx_modal_admin.html.twig' %}
{% form_theme form 'forms_admin.html.twig' %}
{% block content %}
<div class="text-xl font-bold pb-4">
Neues Gruppenhaus
</div>
{{ form_start(form) }}
<div class="grid lg:grid-cols-2 gap-y-4 lg:gap-x-8">
{{ form_row(form.name) }}
{{ form_row(form.code) }}
{{ form_row(form.minPaxSummer) }}
{{ form_row(form.maxAdolescentAge) }}
{{ form_row(form.currency) }}
</div>
<div class="flex justify-end pt-8">
<button type="submit" class="button button--primary button--small">
speichern
</button>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}