Move templates to /templates

This commit is contained in:
Kumi 2019-01-17 15:17:49 +01:00
parent 159d9c52c4
commit 0381d331aa
10 changed files with 11 additions and 9 deletions

View file

@ -5,22 +5,24 @@
<h1>{% block title %}{% trans "Login" %}{% endblock %}</h1>
{% if wizard.steps.current == 'auth' %}
<p>{% blocktrans %}Enter your credentials.{% endblocktrans %}</p>
<div class="alert alert-info">{% blocktrans %}Enter your credentials.{% endblocktrans %}</div>
{% elif wizard.steps.current == 'token' %}
<div class="alert alert-info">
{% if device.method == 'call' %}
<p>{% blocktrans %}We are calling your phone right now, please enter the
digits you hear.{% endblocktrans %}</p>
{% blocktrans %}We are calling your phone right now, please enter the
digits you hear.{% endblocktrans %}
{% elif device.method == 'sms' %}
<p>{% blocktrans %}We sent you a text message. Please enter the token we
included.{% endblocktrans %}</p>
{% blocktrans %}We sent you a text message. Please enter the token we
included.{% endblocktrans %}
{% else %}
<p>{% blocktrans %}Please enter the token displayed by your generator.
{% endblocktrans %}</p>
{% blocktrans %}Please enter the token displayed by your generator.
{% endblocktrans %}
{% endif %}
</div>
{% elif wizard.steps.current == 'backup' %}
<p>{% blocktrans %}Use this form for entering backup tokens for logging in.
<div class="alert alert-info">{% 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 %}</p>
enter one of these backup tokens to login to your account.{% endblocktrans %}</div>
{% endif %}
<form action="" method="post">{% csrf_token %}