templates/security/request.html.twig line 1

Open in your IDE?
  1. {% extends 'security/layout.html.twig' %}
  2. {% block bodyclass %}security{% endblock %}
  3. {% block content %}
  4.     {% set pageData = false %}
  5.     {% if  platform_front('security.request') %}
  6.         {% set pageData = platform_front('security.request') %}
  7.     {% endif %}
  8.     {{ form_start(requestForm) }}
  9.     <div class="{% if pageData and pageData.wrapper is defined %} {{ pageData.wrapper}}{% endif %}">
  10.         <div class="col-md-6 col-lg-4 {% if pageData and pageData.container is defined %} {{ pageData.container}}{% endif %}">
  11.             {% if pageData.title is defined %}
  12.                 {% include '@component/atom/title.html.twig' with {'title': pageData.title} %}
  13.             {% else %}
  14.                 <h1>{{ 'mot de passe oublié ?'|trans|capitalize }}</h1>
  15.             {%endif%}
  16.             <div class="{% if pageData and pageData.form is defined and pageData.form.row is defined  %}{{ pageData.form.row}}{%else%}col-12{% endif %}">
  17.                 <div class="{% if pageData and pageData.form is defined and pageData.form.label is defined %}{{ pageData.form.label }}{% else %}col-12{% endif %}">
  18.                     {{ form_label(requestForm.email) }}
  19.                 </div>
  20.                 <div class="{% if pageData and pageData.form is defined and pageData.form.input is defined %}{{ pageData.form.input }}{% else %}col-12{% endif %}">
  21.                     {{ form_widget(requestForm.email) }}
  22.                 </div>
  23.             </div>
  24.             <div class="{% if pageData and pageData.button is defined and pageData.button.wrapper is defined %}{{ pageData.button.wrapper }}{% else %}col-12{% endif %}">
  25.                 <input type="submit"
  26.                        class="{% if pageData.button.class is defined %}{{ pageData.button.class }}{% else %}btn btn-secondary text-uppercase{% endif %}"
  27.                        value="{% if pageData.button.content is defined %}{{ pageData.button.content|trans }}{% else %}Réinitialiser le mot de passe{% endif %}">
  28.             </div>
  29.             <div class="{% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper }}{% else %}col-12{% endif %}">
  30.                 <a href="{{ path('app_login') }}"
  31.                    class="btn-security-back {% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}">
  32.                     <i class="fa fa-arrow-left"></i>
  33.                     {% if pageData.back.content is defined %}{{ pageData.back.content|trans }}{% else %}{{ 'retour'|trans|capitalize }}{% endif %}
  34.                 </a>
  35.             </div>
  36.         </div>
  37.     </div>
  38.     {{ form_end(requestForm) }}
  39. {% endblock content %}