]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/edit.html.twig
Use controller inherited doctrine, manager, slugger members
[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="{{ app.request.requesturi }}">{{ 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.slug is defined %}
29 {{ form_row(edit.slug) }}
30 {% endif %}
31
32 {% if edit.phone is defined %}
33 {{ form_row(edit.phone) }}
34 {% endif %}
35
36 {{ form_row(edit.submit) }}
37 </div>
38
39 {# Render CSRF token etc .#}
40 <footer style="display:none">{{ form_rest(edit) }}</footer>
41 {{ form_end(edit) }}
42 </section>
43 {% if reset is defined %}
44 <section id="form">
45 <h2><a href="{{ app.request.requesturi }}">{{ password }}</a></h2>
46 {{ form_start(reset) }}
47 <div>
48 {% if reset.password is defined %}
49 {{ form_row(reset.password.first) }}
50
51 {{ form_row(reset.password.second) }}
52 {% endif %}
53
54 {{ form_row(reset.submit) }}
55 </div>
56
57 {# Render CSRF token etc .#}
58 <footer style="display:none">{{ form_rest(reset) }}</footer>
59 {{ form_end(reset) }}
60 </section>
61 {% endif %}
62 {% endblock %}