{# User login page. Extends base.html directly to override normal UI layout. #} {% extends 'base/base.html' %} {% load form_helpers %} {% load static %} {% load i18n %} {% 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 %}

{% trans "Log In" %}

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