From: Raphaƫl Gertz Date: Wed, 21 Feb 2024 11:41:03 +0000 (+0100) Subject: Add dances and subscriptions form rows X-Git-Tag: 0.3.0~74 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/128ed92a055ffab5fb46f6b1a468a383a9175cad Add dances and subscriptions form rows Add google calendar forms Add newsletter todo mention --- diff --git a/Resources/views/form/edit.html.twig b/Resources/views/form/edit.html.twig index 8c6aab9..390ba1f 100644 --- a/Resources/views/form/edit.html.twig +++ b/Resources/views/form/edit.html.twig @@ -43,6 +43,14 @@ {{ form_row(edit.phone) }} {% endif %} + {% if edit.dances is defined %} + {{ form_row(edit.dances) }} + {% endif %} + + {% if edit.subscriptions is defined %} + {{ form_row(edit.subscriptions) }} + {% endif %} + {{ form_row(edit.submit) }} @@ -71,4 +79,64 @@ {{ form_end(reset) }} {% endif %} + {% if calendar is defined %} +
+
+

{% trans %}Calendar{% endtrans %}

+
+ {% if calendar.link is defined %} +
+
+

{% trans %}Add{% endtrans %}

+
+
+ {% trans %}Google Calendar logo{% endtrans %}{% trans %}Link a Google Calendar account{% endtrans %} +
+
+ {% endif %} + {% if calendar.form is defined %} + {% for mail, form in calendar.form %} +
+
+

{{ mail|ucfirst }}

+
+ {{ form_start(form) }} +
+ {{ form_widget(form.calendar) }} + +
+ {{ form_widget(form.submit) }} + + {% if form.refresh is defined %} + {{ form_widget(form.refresh) }} + {% endif %} + + {% if form.add is defined %} + {{ form_widget(form.add) }} + {% endif %} + + {% if form.delete is defined %} + {{ form_widget(form.delete) }} + {% endif %} + + {% if form.unlink is defined %} + {{ form_widget(form.unlink) }} + {% endif %} +
+
+ + {# Render CSRF token etc .#} +
{{ form_rest(form) }}
+ {{ form_end(form) }} +
+ {% endfor %} + {% endif %} +
+ {% endif %} +
+
+

{% trans %}Newsletter{% endtrans %}

+
+

TODO: add newsletter stuff here ?

+
{% endblock %}