{% extends "base.html" %}
{% load i18n %}

{% block main_panel %}
  <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 %}
