]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/recover.html.twig
New page title schema
[airbundle] / Resources / views / form / recover.html.twig
index 68399a03b46de024e7fea175eaaf510ae97b79bc..ac5eee45b8a126f2bd8d5e6f19cef4b1c958b02d 100644 (file)
@@ -1,4 +1,5 @@
 {% extends '@RapsysAir/body.html.twig' %}
+{% block title %}{{ site.title }} - {{ title }}{% endblock %}
 {% block content %}
        <section id="form">
                <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
@@ -7,7 +8,13 @@
                {% else %}
                        {{ form_start(form) }}
                                <div>
-                                       {{ form_row(form.mail) }}
+                                       {% if form.mail is defined %}
+                                               {{ form_row(form.mail) }}
+                                       {% endif %}
+
+                                       {% if form.password is defined %}
+                                               {{ form_row(form.password) }}
+                                       {% endif %}
 
                                        {{ form_row(form.submit) }}
                                </div>