{% extends "admin/base_site.html" %} {% load i18n static %} {% block extrastyle %} {{ block.super }} {{ form.media }} {% endblock %} {% block bodyclass %}{{ block.super }} login{% endblock %} {% block usertools %}{% endblock %} {% block nav-global %}{% endblock %} {% block nav-sidebar %}{% endblock %} {% block content_title %}{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %}
{% if wizard.steps.current == 'token' %} {% if device.method == 'call' %}

{% blocktrans trimmed %}We are calling your phone right now, please enter the digits you hear.{% endblocktrans %}

{% elif device.method == 'sms' %}

{% blocktrans trimmed %}We sent you a text message, please enter the tokens we sent.{% endblocktrans %}

{% else %}

{% blocktrans trimmed %}Please enter the tokens generated by your token generator.{% endblocktrans %}

{% endif %} {% elif wizard.steps.current == 'backup' %}

{% blocktrans trimmed %}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 %}

{% endif %} {% if form.errors and not form.non_field_errors %}

{% if form.errors.items|length == 1 %} {% translate "Please correct the error below." %} {% else %} {% translate "Please correct the errors below." %} {% endif %}

{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %}
{% csrf_token %} {{ wizard.management_form }} {% if wizard.steps.current == 'auth' %}
{{ form.username.errors }} {{ form.username.label_tag }} {{ form.username }}
{{ form.password.errors }} {{ form.password.label_tag }} {{ form.password }}
{% else %}
{{ form.otp_token.errors }} {{ form.otp_token.label_tag }} {{ form.otp_token }}
{% endif %} {% if other_devices %}

{% trans "Or, alternatively, use one of your backup phones:" %}

{% for other in other_devices %} {% endfor %}

{% endif %} {% if backup_tokens %}

{% trans "As a last resort, you can use a backup token:" %}

{% endif %} {# hidden submit button to enable [enter] key #}
{% endblock %}