{% load i18n %} {% load inventree_extras %} {% load sso %} {% sso_login_enabled as sso %}

{% trans "Single Sign On Accounts" %}

{% include "spacer.html" %}
{% if sso %}
{% if social_form.accounts %}

{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}

{% csrf_token %}
{% if social_form.non_field_errors %}
{{ social_form.non_field_errors }}
{% endif %} {% for base_account in social_form.accounts %} {% with base_account.get_provider_account as account %}
{% endwith %} {% endfor %}
{% else %}
{% trans 'There are no social network accounts connected to this account.' %}
{% endif %}
{% trans 'Add SSO Account' %}
{% include "socialaccount/snippets/provider_list.html" with process="connect" %}
{% include "socialaccount/snippets/login_extra.html" %}
{% else %}
{% trans "Single Sign On is not enabled for this server" %}
{% endif %}