X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/84addc7e57221e36f8b41662bbbd3ef50aeaa0db..68342664f34aed91f7cbd42842b9fbfa09359723:/Resources/views/form/edit.html.twig?ds=inline diff --git a/Resources/views/form/edit.html.twig b/Resources/views/form/edit.html.twig index 8c6aab9..608dbdb 100644 --- a/Resources/views/form/edit.html.twig +++ b/Resources/views/form/edit.html.twig @@ -1,9 +1,8 @@ -{% extends '@RapsysAir/body.html.twig' %} -{% block title %}{{ site.title }} - {{ title }}{% endblock %} +{% extends '@RapsysAir/base.html.twig' %} {% block content %}
-

{{ title }}

+

{{ title.page }}

{{ form_start(edit) }}
@@ -43,6 +42,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 +78,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_end(form) }} +
+ {% endfor %} + {% endif %} +
+ {% endif %} +
+
+

{% trans %}Newsletter{% endtrans %}

+
+

TODO: add newsletter stuff here ?

+
{% endblock %}