]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/register.html.twig
Inherit message before notice class
[airbundle] / Resources / views / form / register.html.twig
index ca69b5e67c8044ee585f65f0c2c2516661819be3..2275ea9bbe8e57f6db65f75a79906ce17037ce8b 100644 (file)
@@ -1,24 +1,19 @@
-{% extends '@RapsysAir/base.html.twig' %}
+{% extends '@RapsysAir/body.html.twig' %}
 {% block content %}
        <section id="form">
                <h2>{{ title|trans }}</h2>
                {% if sent %}
-                       <p>{% trans %}Your account has been created{% endtrans %}</p>
+                       <p class="message notice">{% trans %}Your account has been created{% endtrans %}</p>
                {% else %}
-                       <div>
+                       <section>
                                {{ form_start(form) }}
-
-                                       <header>{{ form_errors(form) }}</header>
-
                                        <section>
                                                {{ form_row(form.mail) }}
 
                                                {{ form_row(form.password.first) }}
 
                                                {{ form_row(form.password.second) }}
-                                       </section>
 
-                                       <section>
                                                {{ form_row(form.title) }}
 
                                                {{ form_row(form.forename) }}
@@ -26,6 +21,8 @@
                                                {{ form_row(form.surname) }}
 
                                                {{ form_row(form.pseudonym) }}
+
+                                               {{ form_row(form.phone) }}
                                        </section>
 
                                        {{ form_row(form.submit) }}
@@ -34,9 +31,8 @@
                                        <footer style="display:none">
                                                {{ form_rest(form) }}
                                        </footer>
-
                                {{ form_end(form) }}
-                       </div>
+                       </section>
                {% endif %}
        </section>
 {% endblock %}