{% extends "login/phone_authentication_page.html.twig" %}

{% block flash_message %}{{ esc_html__('Call with a code is being made', '2fas') }}{% endblock %}
{% block open_authentication_action %}{{ actions['open_call_auth'] }}{% endblock %}
{% block message %}{{ esc_html__('Please wait for our call with your code at', '2fas') }}: {% endblock %}
{% block open_authentication_button_value %}{{ esc_html__('Call me again', '2fas') }}{% endblock %}
{% block verify_code_action %}{{ actions['verify_call_code'] }}{% endblock %}
{% block back_to_previous_page_form %}
    <form method="post" action="{{ login_url }}" class="twofas-login-nav-form">
        <div>
            {% include "login/authentication_hidden_inputs.html.twig" %}

            <input type="hidden" name="twofas_action" value="{{ actions['log_in_with_totp_code'] }}" />
        </div>

        <input type="submit" class="button-link" value="{{ esc_attr__('Back to previous page', '2fas') }}" />
    </form>
{% endblock %}
