{% extends "hqwebapp/base_section.html" %}
{% load i18n %}

{% block page_content %}
  <h1>{% block title %}{% trans "Enable Two-Factor Authentication" %}{% endblock %}</h1>

  <p>{% blocktrans %}Congratulations, you've successfully enabled two-factor
      authentication.{% endblocktrans %}

  {% if not phone_methods %}
    <p><a href="{% url 'two_factor:profile' %}"
        class="btn btn-block btn-default">{% trans "Back to Profile" %}</a></p>
  {% else %}
    <p>{% blocktrans %}However, it might happen that you don't have access to
      your primary token device. To enable account recovery, add a phone 
      number.{% endblocktrans %}</p>

    <a href="{% url 'two_factor:profile' %}"
        class="pull-right btn btn-link">{% trans "Back to Profile" %}</a>
    <p><a href="{% url 'two_factor:phone_create' %}"
        class="btn btn-success">{% trans "Add Phone Number" %}</a></p>
  {% endif %}

{% endblock %}

{% extends "hqwebapp/base_section.html" %}
{% load i18n %}

{% block page_content %}
  <h1>{% block title %}{% trans "Enable Two-Factor Authentication" %}{% endblock %}</h1>

  <p>{% blocktrans %}Congratulations, you've successfully enabled two-factor
      authentication.{% endblocktrans %}

  {% if not phone_methods %}
    <p><a href="{% url 'two_factor:profile' %}"
        class="btn btn-block btn-default">{% trans "Back to Profile" %}</a></p>
  {% else %}
    <p>{% blocktrans %}To enable account recovery, generate backup tokens.{% endblocktrans %}</p>

    <a href="{% url 'two_factor:profile' %}"
        class="pull-right btn btn-link">{% trans "Back to Profile" %}</a>
    <p><a href="{% url 'two_factor:backup_tokens' %}"
        class="btn btn-success">{% trans "Generate Backup Tokens" %}</a></p>
  {% endif %}

{% endblock %}

Change add backup phone prompt to generate backup tokens
Change add backup phone prompt to generate backup tokens
