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