{% extends "admin/login.html" %} {% load static %} {% load sso_tags %} {% load show_form %} {% load i18n %} {% block extrastyle %} {{ block.super }} {% with sso_providers|default:None as sso_providers %} {% if sso_providers is None %} {% define_sso_providers as sso_providers %} {% endif %} {% for provider in sso_providers %} {% endfor %} {% endwith %} {% endblock %} {# Default Django Admin Block #} {% block content %} {% with show_admin_form|default:None as show_form %} {% if show_form is None %} {% define_show_form as show_form %} {% endif %} {% if show_form %} {{ block.super }} {% endif %} {% include 'microsoft_sso/login_sso.html' %} {% endwith %} {% endblock %} {# Django Unfold Admin Block #} {% block base %} {{ block.super }} {# Process HTML login elements from Django Unfold #} {% endblock %}