]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/edit.html.twig
New page title schema
[airbundle] / Resources / views / form / edit.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_edit', {'mail': app.user.mail|short, 'hash': app.user.mail|short|hash}) }}">{{ title }}</a></h2>
6 {{ form_start(edit) }}
7 <div>
8 {% if edit.mail is defined %}
9 {{ form_row(edit.mail) }}
10 {% endif %}
11
12 {% if edit.civility is defined %}
13 {{ form_row(edit.civility) }}
14 {% endif %}
15
16 {% if edit.forename is defined %}
17 {{ form_row(edit.forename) }}
18 {% endif %}
19
20 {% if edit.surname is defined %}
21 {{ form_row(edit.surname) }}
22 {% endif %}
23
24 {% if edit.pseudonym is defined %}
25 {{ form_row(edit.pseudonym) }}
26 {% endif %}
27
28 {% if edit.phone is defined %}
29 {{ form_row(edit.phone) }}
30 {% endif %}
31
32 {{ form_row(edit.submit) }}
33 </div>
34
35 {# Render CSRF token etc .#}
36 <footer style="display:none">{{ form_rest(edit) }}</footer>
37 {{ form_end(edit) }}
38 </section>
39 {% if reset is defined %}
40 <section id="form">
41 <h2><a href="{{ path('rapsys_user_register') }}">{{ password }}</a></h2>
42 {{ form_start(reset) }}
43 <div>
44 {% if reset.password is defined %}
45 {{ form_row(reset.password.first) }}
46
47 {{ form_row(reset.password.second) }}
48 {% endif %}
49
50 {{ form_row(reset.submit) }}
51 </div>
52
53 {# Render CSRF token etc .#}
54 <footer style="display:none">{{ form_rest(reset) }}</footer>
55 {{ form_end(reset) }}
56 </section>
57 {% endif %}
58 {% endblock %}