{% extends "core_components/site_base.html" %} {% block tabtitle %}Simmate | Login{% endblock %} {% block banner %} {% include "core_components/header.html" %} {% endblock %} {% block body %} {% load crispy_forms_tags %} {% load static %} {% load account socialaccount %} {% load getsetting %} {% simmate_setting "website.require_login_internal" as REQUIRE_LOGIN_INTERNAL %} {% simmate_setting "website.login_message" as LOGIN_MESSAGE %}

Sign In

{% 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 %} {% else %} {% if LOGIN_MESSAGE %} {{ LOGIN_MESSAGE }} {% else %} Please login to access extra features. {% endif %} {% endif %}

{% get_providers as socialaccount_providers %} {% if socialaccount_providers %}
{% for provider in socialaccount_providers %}
{% if provider.id == "google" %} Log in using Google {% elif provider.id == "github" %} Log in using Github {% elif provider.id == "microsoft" %} Log in using Microsoft {% endif %}
{% endfor %}
{% endif %} {% if not REQUIRE_LOGIN_INTERNAL %}
{% csrf_token %} {{ form | crispy }} {% if next %}{% endif %}
{% endif %}
{% if not REQUIRE_LOGIN_INTERNAL %}

Don't have an account? Sign Up

{% endif %}
{% endblock %}