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