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