diff --git a/netbox/templates/login.html b/netbox/templates/login.html index 842f7e4930a..795eed4b145 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 banner #} + {% if config.BANNER_LOGIN %} +
+ {{ config.BANNER_LOGIN|safe }} +
+ {% endif %} - {# Login form errors #} - {% if form.non_field_errors %} - - {% endif %} + {# Login form errors #} + {% if form.non_field_errors %} + + {% endif %} -
-
-

{% trans "Log In" %}

+
+
+

{% trans "Log In" %}

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