{% extends "base.html" %} {% load i18n static %} {% comment %} Example non-admin login form, modified from the main example Django login template example: https://docs.djangoproject.com/en/2.1/topics/auth/default/#all-authentication-views {% endcomment %} {% block extrastyle %} {{ block.super }} {{ form.media }} {% endblock %} {% block content %}
{% if form.errors %}

Your username and password didn't match. Please try again.

{% endif %} {% if next %} {% if user.is_authenticated %}

Your account doesn't have access to this page. To proceed, please login with an account that has access.

{% else %}

Please login to see this page.

{% endif %} {% endif %} {% if microsoft_login_enabled %}
{% endif %}
{% csrf_token %} {{ form }}
{# Assumes you setup the password_reset view in your URLconf #}

Lost password?

{% endblock %} {% block extrajs %} {% if microsoft_login_enabled %} {% endif %} {% endblock %}