feat: make server errors visible to the user for htmx requests

This commit is contained in:
Björn Fromme
2026-07-02 10:02:05 +02:00
parent 4d3fc69faa
commit de37186706
2 changed files with 65 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{% embed '_partials/_modal.html.twig' with { 'level': 'error' } %}
{% block title %}
Oops...
{% endblock %}
{% block content %}
{% include '_partials/_alert.html.twig' with {
level: 'error',
modal: true,
messages: ['Da ist etwas schiefgelaufen. Wir haben uns Notizen gemacht und kümmern uns schnellstmöglich darum.']
} %}
{% endblock %}
{% endembed %}