From f24a088a0d26f2b1d9f94e659e6e397cd2abe230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 25 Nov 2015 21:26:30 +0100 Subject: [PATCH] [wip] re-introduce 'add element' functionality --- Resources/views/Form/fields.html.twig | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig index 3a23a5adf..8f611e6de 100644 --- a/Resources/views/Form/fields.html.twig +++ b/Resources/views/Form/fields.html.twig @@ -35,15 +35,20 @@ {# CFChoice : render the different elements in a choice list #} {% block cf_choices_row %}

{{ 'Choices'|trans }}

- + {{ dump(form.vars.prototype.children) }} +
{% for choice in form %} {% endfor %}
{{ form_row(choice.name) }} + {{ form_row(choice.active) }} + {{ form_row(choice.slug) }}
- +
{# we use javascrit to add an additional element. All functions are personnalized with the id ( = form.vars.id) #}