feat: make server errors visible to the user for htmx requests
This commit is contained in:
1 parent
4d3fc69faa
commit
de37186706
2 files changed
+65
No files matched your search
@@ -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 %}
|
||||
Reference in new issue
Block a user