]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/recover.html.twig
Add logout success handler that redirect on referer when possible
[airbundle] / Resources / views / form / recover.html.twig
index 63f948df9dde52e41f3a412dd51949b8abfbd606..90694beb8e318fe85442e14cd869a155fee7f56f 100644 (file)
@@ -1,15 +1,12 @@
-{% extends '@RapsysAir/base.html.twig' %}
+{% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
        <section id="form">
                <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
                {% if sent %}
 {% block content %}
        <section id="form">
                <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
                {% if sent %}
-                       <p>{% trans %}Your recover account message has been sent{% endtrans %}</p>
+                       <p class="notice">{% trans %}Your recover account message has been sent{% endtrans %}</p>
                {% else %}
                {% else %}
-                       <div>
+                       <section>
                                {{ form_start(form) }}
                                {{ form_start(form) }}
-
-                                       <header>{{ form_errors(form) }}</header>
-
                                        <section>
                                                {{ form_row(form.mail) }}
                                        </section>
                                        <section>
                                                {{ form_row(form.mail) }}
                                        </section>
@@ -20,9 +17,8 @@
                                        <footer style="display:none">
                                                {{ form_rest(form) }}
                                        </footer>
                                        <footer style="display:none">
                                                {{ form_rest(form) }}
                                        </footer>
-
                                {{ form_end(form) }}
                                {{ form_end(form) }}
-                       </div>
+                       </section>
                {% endif %}
        </section>
 {% endblock %}
                {% endif %}
        </section>
 {% endblock %}