{# Widgets #}
{#
This file doesn't seem to be used anymore ; commenting it for now in order not to mess with user's configurations.
TODO: Remove it and all of its references
#}
{#
{% block choice_widget %}
{% spaceless %}
{% if expanded %}
{% else %}
{% endif %}
{% endspaceless %}
{% endblock choice_widget %}
{% block form_widget_simple %}
{% spaceless %}
{% set type = type|default('text') %}
{% endspaceless %}
{% endblock form_widget_simple %}
{# Labels #}
{% block form_label %}
{% spaceless %}
{% if not compound %}
{% set attr = attr|merge({'for': id}) %}
{% endif %}
{% if required %}
{% set attr = attr|merge({'class': attr.class|default('') ~ ' required'}) %}
{% endif %}
{% if in_list_checkbox is defined and in_list_checkbox and widget is defined %}
{% else %}
{% endif %}
{% endspaceless %}
{% endblock %}
{# Rows #}
{% block form_row %}
{% spaceless %}
{{ form_label(form, label|default(null)) }}
{{ form_widget(form) }}
{{ form_errors(form) }}
{% endspaceless %}
{% endblock form_row %}
{# Misc #}
{% block form_errors %}
{% spaceless %}
{% if errors|length > 0 %}
{% if not form.parent or 'repeated' in form.vars['block_prefixes'] %}
{% endif %}
{% for error in errors %}
{% if loop.first %}
{{ error.messageTemplate|trans(error.messageParameters, 'validators') }}
{% endif %}
{% endfor %}
{% if not form.parent or 'repeated' in form.vars['block_prefixes'] %}