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

{% block content %}
  <h1>
    {% block title %}
      {% trans "Add Backup Phone" %}
    {% endblock %}

  </h1>
  <form action="" method="post">
    {% csrf_token %}
    {% if wizard.steps.current == 'setup' %}
      <p>
        {% blocktrans trimmed %}You'll be adding a backup phone number to your
          account. This number will be used if your primary method of
          registration is not available.{% endblocktrans %}
      </p>
    {% elif wizard.steps.current == 'validation' %}
      <p>
        {% blocktrans trimmed %}We've sent a token to your phone number. Please
          enter the token you've received.{% endblocktrans %}
      </p>
    {% endif %}
    {% include "two_factor/_wizard_forms.html" with step=wizard.steps.current %}
    {# hidden submit button to enable [enter] key #}
    <input type="submit" value="" class="d-none" />
    {% include "two_factor/_wizard_actions.html" %}
  </form>
{% endblock %}
