From 957df53b52f0eeaf197f05d5e83b9d5505e2dd06 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Tue, 7 May 2024 16:24:33 +0200 Subject: [PATCH] [FIX] putting the labels of the forms above the fields --- netbox/templates/login.html | 138 ++++++++++++++++++++---------------- 1 file changed, 76 insertions(+), 62 deletions(-) diff --git a/netbox/templates/login.html b/netbox/templates/login.html index 842f7e493..795eed4b1 100644 --- a/netbox/templates/login.html +++ b/netbox/templates/login.html @@ -6,76 +6,90 @@ {% block layout %} -
-
+
+
- {# NetBox logo #} -
- {% trans -
+ {# NetBox logo #} +
+ {% trans +
- {# Login banner #} - {% if config.BANNER_LOGIN %} -
- {{ config.BANNER_LOGIN|safe }} -
- {% endif %} - - {# Login form errors #} - {% if form.non_field_errors %} - - {% endif %} - -
-
-

{% trans "Log In" %}

- - {# Login form #} -
- {% csrf_token %} - - {# Set post-login URL #} - {% if 'next' in request.GET %} - - {% elif 'next' in request.POST %} - + {# Login banner #} + {% if config.BANNER_LOGIN %} +
+ {{ config.BANNER_LOGIN|safe }} +
{% endif %} - {% render_form form %} + {# Login form errors #} + {% if form.non_field_errors %} + + {% endif %} -
- {# SSO login #} - {% if auth_backends %} -
{% trans "Or" context "Denotes an alternative option" %}
-
-
- {% for backend in auth_backends %} - - {% endfor %} -
-
- {% endif %} - -
-
-
+
{% endblock layout %}