templates/security/reset_password/request.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
    
    {% trans_default_domain 'security' %}
    
    {% block title %}{{ 'form.reset_password.title' | trans }}{% endblock %}
    
    {% block bodyClass %}login-page{% endblock %}
    
    {% block body %}
        {% include 'marketing/'~app.request.locale~'/partials/header.html.twig' %}
    
        <section id="intro-xs"></section>
        <main id="main">
            <section id="login" class="section-bg">
                <div id="contact">
                    {{ form_start(form, {attr: {class: 'col-10 offset-1 col-md-6 offset-md-3 pt-5 form'}}) }}
    
                        {% for flashError in app.flashes('reset_password_error') %}
                            <div class="alert alert-danger" role="alert">{{ flashError }}</div>
                        {% endfor %}
    
                        <div class="form-row">
                            <div class="input-group mb-3">
                                    <span class="input-group-prepend">
                                        <span class="input-group-text">
                                            <i class="fa fa-user"></i>
                                        </span>
                                    </span>
                                {{ form_widget(form.email) }}
                                <div class="validation"></div>
                                <small class="w-100 mt-2 mb-2">
                                    {{ 'form.reset_password.info'|trans }}
                                </small>
                            </div>
                        </div>
    
    
                        <div class="actions">
                            <button type="submit" id="_submit" name="_submit" class="btn btn-primary p-x-2">
                                {{ 'form.reset_password.button'|trans }}
                            </button>
                        </div>
                        {{ form_rest(form) }}
    
                        <div class="col-12 text-xs-right mt-5 text-center">
                            <a href="{{ path('sso_login') }}" class="btn btn-link p-x-0">{{ 'actions.login'|trans }}</a>
                            |
                            <a href="{{ path('register') }}" class="btn btn-link p-x-0">{{ 'actions.register'|trans }}</a>
                        </div>
                    {{ form_end(form) }}
                </div>
            </section>
        </main>
        {% include 'marketing/sr/partials/footer.html.twig' %}
    {% endblock %}
    
    {% block stylesheets %}
        <link rel="stylesheet" href="{{ asset('assets/marketing/style.css') }}">
        <script src="{{ asset('assets/runtime.js') }}"></script>
    {% endblock %}
    
    {% block javascripts %}
        <script src="{{ asset('assets/marketing/script/util.js') }}"></script>
        <script src="{{ asset('assets/marketing/script/main.js') }}"></script>
    {% endblock %}