{% extends "two_factor/_base_focus.html" %}
{% load i18n %}

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

  <p class="subtitle">{% blocktrans trimmed %}Congratulations, you've successfully enabled two-factor
    authentication.{% endblocktrans %}</p>

  {% if not phone_methods %}
    <p class="subtitle"><a href="{% url 'security_2fa' %}"
                           class="button">{% trans "Back to Account Security" %}</a></p>
  {% else %}
    <p class="subtitle">{% blocktrans trimmed %}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 'security_2fa' %}"
       class="float-right button">{% trans "Back to Account Security" %}</a>
    <p class="subtitle"><a href="{% url 'two_factor:phone_create' %}"
                           class="button">{% trans "Add Phone Number" %}</a></p>
  {% endif %}

{% endblock %}
