Design fixes for 2FA

This commit is contained in:
Kumi 2019-01-17 17:26:53 +01:00
parent 07813c5561
commit 80ab0415fc
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{% load i18n %}
{% if cancel_url %}
<a href="{{ cancel_url }}"
class="pull-right btn btn-danger">{% trans "Cancel" %}</a>
{% endif %}
{% if wizard.steps.prev %}
<button name="wizard_goto_step" type="submit"
value="{{ wizard.steps.prev }}" formnovalidate
class="btn btn-info">{% trans "Back" %}</button>
{% endif %}
<button type="submit" class="btn btn-primary">{% trans "Next" %}</button>

View file

@ -0,0 +1,25 @@
{% extends "two_factor/_base_focus.html" %}
{% load i18n %}
{% block content %}
<h1>{% block title %}{% trans "Add Backup Phone" %}{% endblock %}</h1>
{% if wizard.steps.current == 'setup' %}
<p>{% blocktrans %}You'll be adding a backup phone number to your
account. This number will be used if your primary method of
authentication is not available.{% endblocktrans %}</p>
{% elif wizard.steps.current == 'validation' %}
<p>{% blocktrans %}We've sent a token to your phone number. Please
enter the token you've received.{% endblocktrans %}</p>
{% endif %}
<form action="" method="post">{% csrf_token %}
{% include "two_factor/_wizard_forms.html" %}
{# hidden submit button to enable [enter] key #}
<div style="margin-left: -9999px"><input type="submit" value=""/></div>
{% include "two_factor/_wizard_actions.html" %}
</form>
{% endblock %}