{# * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {# CustomFields Title #} {% block custom_field_title_widget %} {{ form.vars.attr.title }} {% endblock custom_field_title_widget %} {# CustomFields Choice #} {# render an alement in a choice list #} {% block cf_choices_list_widget %} {{ form_row(form.name) }} {{ form_row(form.active) }} {{ form_row(form.slug) }} {% endblock cf_choices_list_widget %} {# CFChoice : render the different elements in a choice list #} {% block cf_choices_row %}

{{ 'Choices'|trans }}

{% 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) #} {% endblock cf_choices_row %} {# The choice_with_other_widget widget is defined in the main bundle #}