diff --git a/publichealth/settings/base.py b/publichealth/settings/base.py index 13a16c0..b164686 100644 --- a/publichealth/settings/base.py +++ b/publichealth/settings/base.py @@ -127,6 +127,7 @@ AUTH_PASSWORD_VALIDATORS = [ }, ] +PASSWORD_REQUIRED_TEMPLATE = 'password.html' # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ diff --git a/publichealth/templates/404.html b/publichealth/templates/404.html index c6418c4..e38515d 100644 --- a/publichealth/templates/404.html +++ b/publichealth/templates/404.html @@ -1,11 +1,35 @@ {% extends "base.html" %} -{% block title %}404 - Page not found{% endblock %} +{% block title %}404 - Seite nicht gefunden{% endblock %} {% block body_class %}template-404{% endblock %} {% block content %} -

Page not found

+
+
-

Sorry, this page could not be found.

+

Nicht gefunden/Introuvable

+ +
+ +
+ + +
+ +

+
Diese Seite konnte nicht gefunden werden. Möchten Sie eine Suche starten? +
Désolé, cette page est introuvable. Voulez-vous faire une recherche sur le site? +
Sorry, this page could not be found. Would you like to do a search of the site? +

+ +
+
+
+ + {% endblock %} diff --git a/publichealth/templates/password.html b/publichealth/templates/password.html new file mode 100644 index 0000000..9c49603 --- /dev/null +++ b/publichealth/templates/password.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} + +{% block title %}Password Required{% endblock %} + +{% block body_class %}password-required{% endblock %} + +{% block content %} +
+
+ +

Password requis/erforderlich

+ +
+
+ {% csrf_token %} + + {{ form.non_field_errors }} + +
+ {{ form.password.errors }} + {{ form.password }} +
+ + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} + +
+ +

+
Sie benötigen ein Passwort, um auf diese Seite zuzugreifen. +
Vous avez besoin d'un mot de passe pour accéder à cette page. +
You need a password to access this page. +

+ +
+
+
+{% endblock %} diff --git a/requirements.txt b/requirements.txt index 2fb4de8..d0a06e8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -# Updated: 30.5.2017 +# Updated: 5.7.2017 # Core wagtail==1.11