]> Raphaël G. Git Repositories - airbundle/commitdiff
Add register template
authorRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 15:41:55 +0000 (17:41 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 12 Aug 2021 15:41:55 +0000 (17:41 +0200)
Resources/views/form/_register.html.twig [new file with mode: 0644]

diff --git a/Resources/views/form/_register.html.twig b/Resources/views/form/_register.html.twig
new file mode 100644 (file)
index 0000000..19b03fb
--- /dev/null
@@ -0,0 +1,41 @@
+<section>
+       <h2><a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a></h2>
+       {{ form_start(forms.register) }}
+               <div>
+                       {% if forms.register.mail is defined %}
+                               {{ form_row(forms.register.mail) }}
+                       {% endif %}
+
+                       {% if forms.register.password is defined %}
+                               {{ form_row(forms.register.password.first) }}
+
+                               {{ form_row(forms.register.password.second) }}
+                       {% endif %}
+
+                       {% if forms.register.civility is defined %}
+                               {{ form_row(forms.register.civility) }}
+                       {% endif %}
+
+                       {% if forms.register.forename is defined %}
+                               {{ form_row(forms.register.forename) }}
+                       {% endif %}
+
+                       {% if forms.register.surname is defined %}
+                               {{ form_row(forms.register.surname) }}
+                       {% endif %}
+
+                       {% if forms.register.pseudonym is defined %}
+                               {{ form_row(forms.register.pseudonym) }}
+                       {% endif %}
+
+                       {% if forms.register.phone is defined %}
+                               {{ form_row(forms.register.phone) }}
+                       {% endif %}
+
+                       {{ form_row(forms.register.submit) }}
+               </div>
+
+               {# Render CSRF token etc .#}
+               <footer style="display:none">{{ form_rest(forms.register) }}</footer>
+       {{ form_end(forms.register) }}
+</section>