{% extends "account/base.html" %} {% load inventree_extras %} {% load i18n account socialaccount crispy_forms_tags inventree_extras %} {% block head_title %}{% trans "Sign In" %}{% endblock %} {% block content %} {% settings_value 'LOGIN_ENABLE_REG' as enable_reg %} {% settings_value 'LOGIN_ENABLE_PWD_FORGOT' as enable_pwd_forgot %} {% settings_value 'LOGIN_ENABLE_SSO' as enable_sso %} {% mail_configured as mail_conf %} {% inventree_demo_mode as demo %}

{% trans "Sign In" %}

{% if enable_reg %} {% get_providers as socialaccount_providers %} {% if socialaccount_providers %}

{% blocktrans with site.name as site_name %}Please sign in with one of your existing third party accounts or sign up for a account and sign in below:{% endblocktrans %}

{% else %}

{% blocktrans %}If you have not created an account yet, then please sign up first.{% endblocktrans %}

{% endif %} {% endif %}
{% csrf_token %} {{ form|crispy }} {% if redirect_field_value %} {% endif %}
{% if mail_conf and enable_pwd_forgot and not demo %} {% trans "Forgot Password?" %} {% endif %} {% if demo %}

{% trans "InvenTree demo instance" %} - {% trans "Click here for login details" %}

{% endif %}
{% if enable_sso %}

{% trans 'or use SSO' %}

{% include "socialaccount/snippets/provider_list.html" with process="login" %}
{% include "socialaccount/snippets/login_extra.html" %} {% endif %} {% endblock %}