{# * 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 %} {% apply spaceless %}
{% if form.vars.fullWidth is not defined or form.vars.fullWidth == false %}
{% 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) }}
{% else %}
{{ form_label(form) }}
{{ form_widget(form) }}
{% endif %}
{% endapply %} {% endblock form_row %} {# The block 'form_row' above may be removed ! Read this note: https://gitlab.com/Chill-Projet/chill-bundles/-/merge_requests/502#note_1311993084 #} {% block choice_widget_expanded %} {% apply spaceless %}
{% for child in form %} {{ form_widget(child) }} {{ form_label(child, '', {'label_attr': { 'class' : 'inline'} }) }} {% endfor %}
{% endapply %} {% endblock choice_widget_expanded %} {% block choice_with_other_widget %} {% apply 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 %} {% endapply %} {% endblock choice_with_other_widget %} {% block money_widget %}
{{ block('form_widget_simple') }} {{ money_pattern|form_encode_currency }}
{% endblock money_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 %} {% apply spaceless %} {% if errors|length > 0 %}
    {% for error in errors %}
  • {{ error.message }}
  • {% endfor %}
{% endif %} {% endapply %} {% 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) }} {{ form_errors(entry) }}
  • {% else %}
  • {{ form.vars.empty_collection_explain|default('No entities')|trans }}
  • {% endfor %}
{% if form.vars.allow_add == 1 %} {% endif %}
{% endblock %} {% block address_widget %} {% for entry in form %} {% if entry.vars.name != 'customs' %} {{ form_row(entry) }} {% else %} {{ form_widget(entry) }} {% endif %} {% endfor %} {% endblock %} {% block private_comment_row %} {{ form_row(form) }} {% endblock %} {% block private_comment_widget %} {% for entry in form %} {{ form_widget(entry) }} {% endfor %} {% endblock %} {% block comment_row %} {{ form_row(form) }} {% endblock %} {% block comment_widget %} {% for entry in form %} {{ form_widget(entry) }} {% endfor %} {% endblock comment_widget %} {% block pick_center_widget %} {{ form_widget(form.center) }} {% endblock pick_center_widget %} {% block pick_center_row %} {% if (not form.vars.is_hidden) %} {{ block('form_row') }} {% else %} {{ form_widget(form.center) }} {% endif %} {% endblock %} {% block pick_entity_dynamic_row %}
{{ form_label(form) }} {{ form_help(form) }}
{{ form_widget(form) }}
{% endblock %} {% block pick_entity_dynamic_widget %}
{% endblock %} {% block pick_postal_code_widget %} {{ form_help(form)}}
{% endblock %} {% block pick_rolling_date_widget %}
{{ form_widget(form.roll, { 'attr': { 'data-roll-picker': 'data-roll-picker'}}) }} {{ form_errors(form.roll) }}
{{ form_widget(form.fixedDate) }} {{ form_errors(form.fixedDate) }}
{% endblock %}