templates/reset_password/request.html.twig line 1

Open in your IDE?
  1. {% extends 'layout_web.html.twig' %}
  2. {% block title %}{{ 'login.resetpassword'|trans }} | {{parent()}}{% endblock %}
  3. {% block body %}
  4. <div class="page">
  5.     <div class="page-single">
  6.         <div class="container">              
  7.             <div class="row">
  8.                 <div class="col col-md-5 mx-auto">
  9.                     <div class="text-center mb-6">
  10.                         <img src="{{ asset('/images/logo-pbn-200x100.png')}}" alt="{{appname}}">  
  11.                     </div>
  12.                     {% for flashError in app.flashes('reset_password_error') %}
  13.                         <div class="alert alert-danger" role="alert">{{ flashError }}</div>
  14.                     {% endfor %}
  15.                     {{ form_start(requestForm,{ 'attr': {'class': 'card'} }) }}
  16.                     <div class="card-body p-6">
  17.                         <div class="float-right">
  18.                             <a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': ''})) }}"><span class="flag flag-fr mr-3"></span></a>
  19.                             <a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}"><span class="flag flag-gb"></span></a>
  20.                         </div>
  21.                         <div class="card-title">{{ 'resetpswd.title'|trans }}</div>    
  22.                         <div class="form-group">
  23.                         {{ form_label(requestForm.email, 'resetpswd.label', { 'label_attr': {'class': 'form-label'} }) }}
  24.                         {{ form_widget(requestForm.email,{ 'attr': {'class': form_errors(requestForm.email) == null ? 'form-control' : 'form-control is-invalid'} }) }}
  25.                             <div class="form-error invalid-feedback">
  26.                             {{ form_errors(requestForm.email) }}
  27.                             </div>
  28.                         </div>
  29.                         <p><small>{{ 'resetpswd.txt'|trans }}</small></p>
  30.                         <button class="btn btn-primary btn-block">{{ 'resetpswd.sendbtn'|trans }}</button>
  31.                     </div>
  32.                     {{ form_end(requestForm) }}
  33.                 </div>
  34.             </div>
  35.         </div>
  36.     </div>
  37. </div>
  38. {% endblock %}