]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/edit.html.twig
Use full entity name instead of undefined short version
[airbundle] / Resources / views / form / edit.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block title %}{{ site.title }} - {{ title }}{% endblock %}
3 {% block content %}
4 <article>
5 <header>
6 <h2><a href="{{ app.request.requesturi }}">{{ title }}</a></h2>
7 </header>
8 {{ form_start(edit) }}
9 <div>
10 {% if edit.mail is defined %}
11 {{ form_row(edit.mail) }}
12 {% endif %}
13
14 {% if edit.civility is defined %}
15 {{ form_row(edit.civility) }}
16 {% endif %}
17
18 {% if edit.forename is defined %}
19 {{ form_row(edit.forename) }}
20 {% endif %}
21
22 {% if edit.surname is defined %}
23 {{ form_row(edit.surname) }}
24 {% endif %}
25
26 {% if edit.pseudonym is defined %}
27 {{ form_row(edit.pseudonym) }}
28 {% endif %}
29
30 {% if edit.zipcode is defined %}
31 {{ form_row(edit.zipcode) }}
32 {% endif %}
33
34 {% if edit.city is defined %}
35 {{ form_row(edit.city) }}
36 {% endif %}
37
38 {% if edit.country is defined %}
39 {{ form_row(edit.country) }}
40 {% endif %}
41
42 {% if edit.phone is defined %}
43 {{ form_row(edit.phone) }}
44 {% endif %}
45
46 {% if edit.dances is defined %}
47 {{ form_row(edit.dances) }}
48 {% endif %}
49
50 {% if edit.subscriptions is defined %}
51 {{ form_row(edit.subscriptions) }}
52 {% endif %}
53
54 {{ form_row(edit.submit) }}
55 </div>
56
57 {# Render CSRF token etc .#}
58 <footer style="display:none">{{ form_rest(edit) }}</footer>
59 {{ form_end(edit) }}
60 </article>
61 {% if reset is defined %}
62 <article>
63 <header>
64 <h2><a href="{{ app.request.requesturi }}">{{ password }}</a></h2>
65 </header>
66 {{ form_start(reset) }}
67 <div>
68 {% if reset.password is defined %}
69 {{ form_row(reset.password.first) }}
70
71 {{ form_row(reset.password.second) }}
72 {% endif %}
73
74 {{ form_row(reset.submit) }}
75 </div>
76
77 {# Render CSRF token etc .#}
78 <footer style="display:none">{{ form_rest(reset) }}</footer>
79 {{ form_end(reset) }}
80 </article>
81 {% endif %}
82 {% if calendar is defined %}
83 <article>
84 <header>
85 <h2><a href="{{ app.request.requesturi }}">{% trans %}Calendar{% endtrans %}</a></h2>
86 </header>
87 {% if calendar.link is defined %}
88 <section>
89 <header>
90 <h3>{% trans %}Add{% endtrans %}</h3>
91 </header>
92 <div>
93 <a class="center" href="{{ calendar.link }}"><img src="{{ asset(calendar.logo.svg) }}?20221024100144" srcset="{{ asset(calendar.logo.png) }}?20221024100144 200w, {{ asset(calendar.logo.svg) }}?20221024100144 400w" sizes="(min-width:400px) 400px, 200px" alt="{% trans %}Google Calendar logo{% endtrans %}" width="50" height="50" /><span>{% trans %}Link a Google Calendar account{% endtrans %}</span></a>
94 </div>
95 </section>
96 {% endif %}
97 {% if calendar.form is defined %}
98 {% for mail, form in calendar.form %}
99 <section>
100 <header>
101 <h3>{{ mail|ucfirst }}</h3>
102 </header>
103 {{ form_start(form) }}
104 <div>
105 {{ form_widget(form.calendar) }}
106
107 <div class="row">
108 {{ form_widget(form.submit) }}
109
110 {% if form.refresh is defined %}
111 {{ form_widget(form.refresh) }}
112 {% endif %}
113
114 {% if form.add is defined %}
115 {{ form_widget(form.add) }}
116 {% endif %}
117
118 {% if form.delete is defined %}
119 {{ form_widget(form.delete) }}
120 {% endif %}
121
122 {% if form.unlink is defined %}
123 {{ form_widget(form.unlink) }}
124 {% endif %}
125 </div>
126 </div>
127
128 {# Render CSRF token etc .#}
129 <footer style="display:none">{{ form_rest(form) }}</footer>
130 {{ form_end(form) }}
131 </section>
132 {% endfor %}
133 {% endif %}
134 </article>
135 {% endif %}
136 <article>
137 <header>
138 <h2><a href="{{ app.request.requesturi }}">{% trans %}Newsletter{% endtrans %}</a></h2>
139 </header>
140 <p class="center"><span>TODO: add newsletter stuff here ?</span></p>
141 </article>
142 {% endblock %}