]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/recover_mail.html.twig
Add logout success handler that redirect on referer when possible
[airbundle] / Resources / views / form / recover_mail.html.twig
index 081376e2dec61adf6e10a554503c05105c96a3bf..1ee09d773d15684f83574cba15431465aaf9b9a9 100644 (file)
@@ -3,15 +3,12 @@
        <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 %}