From 128ed92a055ffab5fb46f6b1a468a383a9175cad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 21 Feb 2024 12:41:03 +0100 Subject: [PATCH] Add dances and subscriptions form rows Add google calendar forms Add newsletter todo mention --- Resources/views/form/edit.html.twig | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) 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 %} -- 2.41.1