From 737958a7ab0f02ac0328dd632d848817bc34cf1f Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Tue, 10 May 2022 18:06:50 +0200 Subject: [PATCH] add error pages --- templates/400.html | 1 + templates/404.html | 3 +++ templates/500.html | 3 +++ templates/error_base.html | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 templates/400.html create mode 100644 templates/404.html create mode 100644 templates/500.html create mode 100644 templates/error_base.html diff --git a/templates/400.html b/templates/400.html new file mode 100644 index 0000000..3e35c6e --- /dev/null +++ b/templates/400.html @@ -0,0 +1 @@ +{% extends "error_base.html" %} \ No newline at end of file diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..a70f695 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,3 @@ +{% extends "error_base.html" %} +

{% block error_message%}Seite nicht gefunden{% endblock %}

+{% block error_text%}{% endblock %} \ No newline at end of file diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..7634e57 --- /dev/null +++ b/templates/500.html @@ -0,0 +1,3 @@ +{% extends "error_base.html" %} +

{% block error_message%}Es ist ein Fehler aufgetreten{% endblock %}

+{% block error_text%}Wir arbeiten dran. Bei dringenden Problemen kannst du dich an den Infopoint wenden.{% endblock %} \ No newline at end of file diff --git a/templates/error_base.html b/templates/error_base.html new file mode 100644 index 0000000..dd78879 --- /dev/null +++ b/templates/error_base.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block title %}Fehler{% endblock %} + +{% block navbar %} + + +{% endblock %} + +{% block body %} +
+
+

{% block error_message%}Fehler{% endblock %}

+ {% block error_text%}
¯\_(ツ)_/¯
{% endblock %}
+ Zurück zur Schichtübersicht +{% if user.is_authenticated %} + Zurück zur Teamansicht +{% endif %} +
+
+{% endblock %}