]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/register.html.twig
New layout
[airbundle] / Resources / views / form / register.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block title %}{{ site.title }} - {{ title }}{% endblock %}
3 {% block content %}
4 <section id="form">
5 <h2><a href="{{ path('rapsys_user_register') }}">{{ title }}</a></h2>
6 {% if disabled is defined and disabled %}
7 <p class="message error">{% trans %}Your account has been disabled{% endtrans %}</p>
8 {% elseif sent is defined and sent %}
9 <p class="message notice">{% trans %}Your verification mail has been sent, to activate your account you must follow the confirmation link inside{% endtrans %}</p>
10 <p class="message warning">{% trans %}If you did not receive a verification mail, check your Spam or Junk mail folders{% endtrans %}</p>
11 {% else %}
12 {{ form_start(form) }}
13 <div>
14 {% if form.mail is defined %}
15 {{ form_row(form.mail) }}
16 {% endif %}
17
18 {% if form.password is defined %}
19 {{ form_row(form.password.first) }}
20
21 {{ form_row(form.password.second) }}
22 {% endif %}
23
24 {% if form.civility is defined %}
25 {{ form_row(form.civility) }}
26 {% endif %}
27
28 {% if form.forename is defined %}
29 {{ form_row(form.forename) }}
30 {% endif %}
31
32 {% if form.surname is defined %}
33 {{ form_row(form.surname) }}
34 {% endif %}
35
36 {% if form.pseudonym is defined %}
37 {{ form_row(form.pseudonym) }}
38 {% endif %}
39
40 {% if form.slug is defined %}
41 {{ form_row(form.slug) }}
42 {% endif %}
43
44 {% if form.phone is defined %}
45 {{ form_row(form.phone) }}
46 {% endif %}
47
48 {{ form_row(form.submit) }}
49 </div>
50
51 {# Render CSRF token etc .#}
52 <footer style="display:none">{{ form_rest(form) }}</footer>
53 {{ form_end(form) }}
54 {% endif %}
55 </section>
56 {% endblock %}