]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/recover_mail.html.twig
Add session controller with view function
[airbundle] / Resources / views / form / recover_mail.html.twig
index 74b2dd714d0933f52d19f2e7d11defeea35bfeeb..1ee09d773d15684f83574cba15431465aaf9b9a9 100644 (file)
@@ -1,17 +1,14 @@
-{% 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 %}
-                       <p>{% trans %}Your password is updated and an account recover message has been sent{% endtrans %}</p>
-               {% elseif notfound %}
-                       <p>{% trans %}Unable to find account{% endtrans %}</p>
+                       <p class="notice">{% trans %}Your password is updated and an account recover message has been sent{% endtrans %}</p>
+               {% elseif not found %}
+                       <p class="error">{% trans %}Unable to find account{% endtrans %}</p>
                {% else %}
-                       <div>
+                       <section>
                                {{ form_start(form) }}
-
-                                       <header>{{ form_errors(form) }}</header>
-
                                        <section>
                                                {{ form_row(form.password) }}
                                        </section>
@@ -22,9 +19,8 @@
                                        <footer style="display:none">
                                                {{ form_rest(form) }}
                                        </footer>
-
                                {{ form_end(form) }}
-                       </div>
+                       </section>
                {% endif %}
        </section>
 {% endblock %}