<commit_before><commit_msg>Default template for profile recovery<commit_after>{% extends twigparent %}

{% block recovery %}
    {% include "feedback.twig" %}

    <div class="logout">
        <div class="row member-logout">
            {%  if stage == 'email' %}
                {{ _self.recovery_start(form_profile_recovery) }}
            {% elseif stage == 'email' %}
                {{ _self.recovery_finish(form_profile_recovery) }}
            {% elseif stage == 'submitted' %}
                <p>An email has been send to {{ email }}. Please follow the instructions to complete the process.</p>
            {% elseif stage == 'reset' %}
                <p>Password reset!</p>
            {% endif %}
        </div>
    </div>
{% endblock recovery %}

{% macro recovery_start(form_profile_recovery) %}
    <p>Enter the email address associated with your account:</p>

    {{ form_start(form_profile_recovery) }}

    {{ form_row(form_profile_recovery.email) }}
    {% do form_profile_recovery.password.setRendered %}

    {{ form_row(form_profile_recovery.submit, {'label': 'Submit »'}) }}

    {{ form_end(form_profile_recovery) }}
{% endmacro %}

{% macro recovery_finish(form_profile_recovery) %}
    <p>Enter a new password for your account</p>

    {{ form_start(form_profile_recovery) }}

    {% do form_profile_recovery.email.setRendered %}
    {{ form_row(form_profile_recovery.password) }}

    {{ form_row(form_profile_recovery.submit, {'label': 'Continue »'}) }}

    {{ form_end(form_profile_recovery) }}
{% endmacro %}
{'fraction_non_alphanumeric': 0.14434330299089726, 'fraction_numerical': 0.0, 'mean_word_length': 3.0606860158311346, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6425425', 'n_tokens_mistral': 500, 'n_tokens_neox': 455, 'n_words': 91}