{% trans_default_domain 'FOSUserBundle' %}

<h3>{{ 'word.custom.resetting.request.title'|trans({}, 'word') }}</h3>

<form action="{{ path('fos_user_resetting_send_email') }}" class="form form-user-resetting" method="post">
    <div class="form-group">
        <label for="username">{{ 'resetting.request.username'|trans }}</label>
        <input type="text" id="username" class="form-control with-border{% if invalid_username is defined %} is-invalid{% endif %}" name="username" required="required" />
        {% if invalid_username is defined %}
            <div class="invalid-feedback">{{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}) }}</div>
        {% endif %}
    </div>

    {{ include('Front/_component/button.html.twig', {
        type: 'button',
        class: 'btn-sm btn-theme',
        text: 'resetting.request.submit'|trans,
    }) }}
</form>