From 929c6dfff0de8918a653fe527966e75be4e53b7f Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 18 Jan 2025 15:47:07 +0100 Subject: [PATCH] feat: Add registration button --- .../static/fellchensammlung/css/styles.css | 5 +++ src/templates/registration/login.html | 43 +++++++++++-------- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/fellchensammlung/static/fellchensammlung/css/styles.css b/src/fellchensammlung/static/fellchensammlung/css/styles.css index b023f7b..7fcc589 100644 --- a/src/fellchensammlung/static/fellchensammlung/css/styles.css +++ b/src/fellchensammlung/static/fellchensammlung/css/styles.css @@ -259,6 +259,11 @@ a.btn, a.btn2, a.nav-link { border: 1px solid black; } +.btn-small { + font-size: medium; + padding: 6px; +} + .checkmark { display: inline-block; position: relative; diff --git a/src/templates/registration/login.html b/src/templates/registration/login.html index c27dbf3..f578209 100644 --- a/src/templates/registration/login.html +++ b/src/templates/registration/login.html @@ -3,25 +3,32 @@ {% block content %} - {% if form.errors %} -

{% translate "Dein Username oder Passwort ist falsch." %}

- {% endif %} + {% if form.errors %} +

{% translate "Dein Username oder Passwort ist falsch." %}

+ {% endif %} -{% if user.is_authenticated %} -

{% translate "Du bist bereits eingeloggt." %}

- {% else %} {% if next %} -

{% translate "Bitte log dich ein um diese Seite sehen zu können." %}

- {% endif %} -{% endif %} + {% if user.is_authenticated %} +

{% translate "Du bist bereits eingeloggt." %}

+ {% else %} {% if next %} +

{% translate "Bitte log dich ein um diese Seite sehen zu können." %}

+ {% endif %} + {% endif %} -{% if not user.is_authenticated %} -
- {% csrf_token %} - {{ form.as_p }} - - -
+ {% if not user.is_authenticated %} +
+
+
+ {% csrf_token %} + {{ form.as_p }} + + +
+
-

{% translate "Passwort vergessen?" %}

-{% endif %} + +
+ {% endif %} {% endblock %} \ No newline at end of file