{# * Copyright (C) 2014-2015, 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 . #} {% block form_row %} {% spaceless %}
{% if attr.class is not defined or ('cf-title' not in attr.class and 'cf-fields' not in attr.class ) %} {{ form_label(form) }} {% endif %}
{{ form_widget(form) }} {{ form_errors(form) }}
{% endspaceless %} {% endblock form_row %} {% block choice_widget_expanded %} {% spaceless %}
{% for child in form %} {{ form_widget(child) }} {{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
{% endfor %}
{% endspaceless %} {% endblock choice_widget_expanded %} {% block choice_with_other_widget %} {% spaceless %} {% for child in form._choices %} {%- if child.vars.value != '_other' -%}
{{ form_widget(child) }} {{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
{%- else -%}
{{ form_widget(child) }} {{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }}
{{ form_widget(form._other, {'attr': {'class': 'input-text-other-value'} }) }}
{%- endif -%} {% endfor %} {% endspaceless %} {% endblock choice_with_other_widget %} {% block money_widget %}
{{ block('form_widget_simple') }} {{ money_pattern|form_encode_currency }}
{% endblock money_widget %} {% block date_widget %} {% spaceless %} {% if widget == 'single_text' %} {% set attr = {'class' : 'input datepicker'} %} {{ block('form_widget_simple') }} {% else %}
{{ date_pattern|replace({ '{{ year }}': form_widget(form.year ), '{{ month }}': form_widget(form.month ), '{{ day }}': form_widget(form.day ), })|raw }}
{% endif %} {% endspaceless %} {% endblock date_widget %} {%- block time_widget -%} {%- if widget == 'single_text' -%} {{ block('form_widget_simple') }} {%- else -%} {%- set vars = widget == 'text' ? { 'attr': { 'size': 1 }} : {} -%} {% set attr = {'class' : 'time_compound ' ~ attr.class|default('') } %}
{{ form_widget(form.hour, vars) }}{% if with_minutes %}:{{ form_widget(form.minute, vars) }}{% endif %}{% if with_seconds %}:{{ form_widget(form.second, vars) }}{% endif %}
{%- endif -%} {%- endblock time_widget -%} {% block form_errors %} {% spaceless %} {% if errors|length > 0 %}
    {% for error in errors %}
  • {{ error.message }}
  • {% endfor %}
{% endif %} {% endspaceless %} {% endblock form_errors %} {% block _formatter__aggregator_placement_csv_formatter_row %}

{{ form_label(form) }}

{{ form_row(form.order) }} {{ form_row(form.position) }} {% endblock %} {% block _formatter__aggregator_placement_spreadsheet_formatter_row %}

{{ form_label(form) }}

{{ form_row(form.order) }} {% endblock %} {% block chill_collection_widget %}
    {% for entry in form %}
  • {{ form_widget(entry) }}
  • {% endfor %}
{% if form.vars.allow_add == 1 %}
{% endif %} {% endblock %}