X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/b3aa0544ec8eb2c1bfd31b940df5dc4f3947a20b..5bdc01337b213b789f58b3a02596688082cfc129:/Resources/views/form/edit.html.twig diff --git a/Resources/views/form/edit.html.twig b/Resources/views/form/edit.html.twig index 2f7286a..608dbdb 100644 --- a/Resources/views/form/edit.html.twig +++ b/Resources/views/form/edit.html.twig @@ -1,8 +1,9 @@ -{% extends '@RapsysAir/body.html.twig' %} -{% block title %}{{ site.title }} - {{ title }}{% endblock %} +{% extends '@RapsysAir/base.html.twig' %} {% block content %} -
-

{{ title }}

+
+
+

{{ title.page }}

+
{{ form_start(edit) }}
{% if edit.mail is defined %} @@ -25,24 +26,42 @@ {{ form_row(edit.pseudonym) }} {% endif %} - {% if edit.slug is defined %} - {{ form_row(edit.slug) }} + {% if edit.zipcode is defined %} + {{ form_row(edit.zipcode) }} + {% endif %} + + {% if edit.city is defined %} + {{ form_row(edit.city) }} + {% endif %} + + {% if edit.country is defined %} + {{ form_row(edit.country) }} {% endif %} {% if edit.phone is defined %} {{ 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) }}
{# Render CSRF token etc .#} {{ form_end(edit) }} -
+ {% if reset is defined %} -
-

{{ password }}

+
+
+

{{ password }}

+
{{ form_start(reset) }}
{% if reset.password is defined %} @@ -57,6 +76,66 @@ {# Render CSRF token etc .#} {{ 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 %}