feat: integrate with htmx

This commit is contained in:
Björn Fromme committed 2024-02-07 10:15:59 +01:00
1 parent 4d1799ca49
commit 1e572606f8
154 files changed
+1447 -1461

No files matched your search

@@ -1,9 +0,0 @@
{{ form_start(form) }}
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.date) }}
</div>
<button type="submit" class="btn">
Speichern
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
@@ -0,0 +1,15 @@
{% extends 'htmx_modal.html.twig' %}
{% block title %}Teilnahme hinzufügen/bestätigen{% endblock %}
{% block content %}
{{ form_start(form, { 'attr': { 'hx-post': app.request.uri, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML' } }) }}
<div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.date) }}
</div>
<button type="submit" class="btn">
Speichern
</button>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}
@@ -0,0 +1,8 @@
{% extends 'htmx_confirmation_modal.html.twig' %}
{% block content %}
<div>
Möchtest du die Teilnahme von <em>{{ attendance.teamer}}</em> an der Schulung
<em>{{ attendance.training.name }}</em> wirklich löschen?
</div>
{% endblock %}