diff --git a/templates/base.html b/templates/base.html index f3c641c..ba4fb20 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,75 +1,9 @@ - - - - - - {% block title %} Platzhalter {% endblock %} - - - +{% extends "bootstrapbase.html" %} - - -{% for message in messages %} - -{% endfor %} - - -
- {% block content %} Platzhalter {% endblock %} - - {% if user.is_authenticated %} - Abmelden - {% endif %} - - {% if not user.is_authenticated %} +{% block login %} + {% if user.is_anonymous %} Anmelden {% endif %} - -
- - - - - - - +{% endblock %} diff --git a/templates/bootstrapbase.html b/templates/bootstrapbase.html new file mode 100644 index 0000000..4cd652f --- /dev/null +++ b/templates/bootstrapbase.html @@ -0,0 +1,73 @@ + + + + + + {% block title %} Platzhalter {% endblock %} + + + + + + +{% for message in messages %} + +{% endfor %} + + +
+ {% block content %} Platzhalter {% endblock %} + + {% if user.is_authenticated %} + Abmelden + {% endif %} + + {% block login %} {% endblock %} + +
+ + + + + + + + + diff --git a/templates/registration/login.html b/templates/registration/login.html index c977a8c..78dae38 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -1,11 +1,13 @@ -{% extends "base.html" %} +{% extends "bootstrapbase.html" %} {% block title %}Anmeldung{% endblock %} {% block content %} {% if form.errors %} -

Benutzername oder Passwort falsch.

+ {% endif %} {% if next %} @@ -29,12 +31,14 @@ - + +
+

- Passwort vergessen? + Passwort vergessen?

{% endblock %} \ No newline at end of file