From 1a604bec2ffca950f9caaea0358eac0ce664b8a0 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Tue, 7 May 2024 17:41:08 +0200 Subject: [PATCH] Putting field labels above fields --- netbox/templates/login.html | 146 ++++++++++++++++++------------------ 1 file changed, 72 insertions(+), 74 deletions(-) diff --git a/netbox/templates/login.html b/netbox/templates/login.html index 4ead285b4ed..ff687d6bce5 100644 --- a/netbox/templates/login.html +++ b/netbox/templates/login.html @@ -6,92 +6,90 @@ {% block layout %} -
-
+
+
+ + {# NetBox logo #} +
+ {% trans +
+ + {# Login banner #} + {% if config.BANNER_LOGIN %} +
+ {{ config.BANNER_LOGIN|safe }} +
+ {% endif %} + + {# Login form errors #} + {% if form.non_field_errors %} + + {% endif %} - {# NetBox logo #} -
- {% trans -
+
+
+

{% trans "Log In" %}

- {# Login banner #} - {% if config.BANNER_LOGIN %} -
- {{ config.BANNER_LOGIN|safe }} -
- {% endif %} + {# Login form #} +
+ {% csrf_token %} - {# Login form errors #} - {% if form.non_field_errors %} - + {# Set post-login URL #} + {% if 'next' in request.GET %} + + {% elif 'next' in request.POST %} + {% endif %} -
-
-

{% trans "Log In" %}

- - {# Login form #} - - {% csrf_token %} - - {# Set post-login URL #} - {% if 'next' in request.GET %} - - {% elif 'next' in request.POST %} - - {% endif %} - -
- - {{ form.username }} - {% for error in form.username.errors %} -
{{ error }}
- {% endfor %} -
- -
- - {{ form.password }} - {% for error in form.password.errors %} -
{{ error }}
- {% endfor %} -
+
+ + {{ form.username }} + {% for error in form.username.errors %} +
{{ error }}
+ {% endfor %} +
- - -
+
+ + {{ form.password }} + {% for error in form.password.errors %} +
{{ error }}
+ {% endfor %}
+ + +
- {# SSO login #} - {% if auth_backends %} -
{% trans "Or" context "Denotes an alternative option" %}
-
-
- {% for backend in auth_backends %} - - {% endfor %} -
+ {# SSO login #} + {% if auth_backends %} +
{% trans "Or" context "Denotes an alternative option" %}
+
+
+ {% for backend in auth_backends %} + - {% endif %} + {% endfor %} +
+
+ {% endif %} -
+
-
+
{% endblock layout %}