feat: reload the page with a flash when an htmx request fails
This commit is contained in:
1 parent
0be3c2ccde
commit
a2e4035889
14 files changed
+205
-210
No files matched your search
@@ -0,0 +1,21 @@
|
||||
{#
|
||||
Symfony's error page for anything but a 404, adopted from myep-team. Only used with debug off;
|
||||
dev keeps showing the exception page (preview at /_error/500).
|
||||
|
||||
Never reached by an htmx request: a failed one reloads its page instead (see assets/app.js).
|
||||
#}
|
||||
{% extends 'layout.html.twig' %}
|
||||
|
||||
{% block title %}Fehler · ephub{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-2xl font-bold pb-8">
|
||||
Oops... Ein Fehler ist aufgetreten
|
||||
</h1>
|
||||
<p class="mb-8">
|
||||
Wir haben uns ein paar Notizen dazu gemacht und werden das Problem so schnell wie möglich beseitigen.
|
||||
</p>
|
||||
<a class="button button--primary" href="{{ path('app_dashboard') }}">
|
||||
nochmal von vorne
|
||||
</a>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user