{% extends "base.html" %} {% load i18n %} {% load include_asset %} {% load settings_value %} {% block content %} {% if messages %} {% for message in messages %} {% if 'info' in message.tags %} {% elif 'success' in message.tags %} {% elif 'error' in message.tags %} {% endif %} {% endfor %} {% endif %}
{% csrf_token %} {% if login_step == 'login' %}
{% if request.session.samlConnect %}

{% trans "Link to a " %}{% settings_value 'SITE_TITLE' %}{% trans " account" %}

{% trans "You've successfully logged in with your organisation account for the first time." %}

{% else %}

{% trans "Sign in" %}

{% trans "with your " %}{% settings_value 'SITE_TITLE' %}{% trans " account" %}

{% endif %} {{ has_errors }}
{% if request.session.samlConnect %}
{% else %}
{% trans "or" %}
{% trans "or" %}

{% elif login_step == 'token' %}
{{ form.errors.otp_token }} {{ form.otp_token.label_tag }} {{ form.otp_token }}
{% elif login_step == 'backup' %}

{% blocktrans %}Use this form for entering backup tokens for logging in. These tokens have been generated for you to print and keep safe. Please enter one of these backup tokens to login to your account.{% endblocktrans %}

    {% for error in form.errors %}
  • {% include_asset "icons/account-alert.svg" %}
    {% trans "Invalid token." %}
    {% trans "Please make sure you have entered it correctly." %}
  • {% endfor %}
{{ form.errors.otp_token }} {{ form.otp_token.label_tag }} {{ form.otp_token }}
{% endif %} {% endblock %}