{% import '@SyliusUi/Macro/headers.html.twig' as headers %}

{% extends '@SyliusShop/layout.html.twig' %}

{% form_theme form '@SyliusShop/Form/theme.html.twig' %}

{% block content %}
    <div class="account-request-password-reset container">
        <div class="row justify-content-md-center">
            <div class="col-auto">
                {{ headers.shop('sylius.ui.reset_password'|trans, 'lock', 'sylius.ui.set_a_new_password_for_your_account'|trans) }}
                {{ sylius_template_event('sylius.shop.request_password_reset_token.after_content_header') }}
            </div>
        </div>
        <div class="row justify-content-md-center">
            <div class="col-lg-8 col-xl-6">
                <div class="form-block">
                    {{ form_start(form, {'action': path('sylius_shop_request_password_reset_token'), 'attr': {'class': 'ui large loadable form', 'novalidate': 'novalidate'}}) }}
                    {{ form_row(form.email, sylius_test_form_attribute('reset-email')) }}

                    {{ sylius_template_event('sylius.shop.request_password_reset_token.form', {'form': form}) }}

                    {{ form_row(form._token) }}

                    <div class="form-btn-wrapper">
                        <button type="submit" class="btn btn-primary" {{ sylius_test_html_attribute('request-password-reset-button') }}>
                            {{ 'sylius.ui.reset'|trans }}
                        </button>
                    </div>

                    {{ form_end(form, {'render_rest': false}) }}
                </div>
            </div>
        </div>
    </div>
{% endblock %}
