mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 15:44:59 +00:00
Allow select2 option for entityChoice filterOrderHelper
This commit is contained in:
@@ -68,10 +68,17 @@
|
||||
{{ form_label(form.entity_choices[checkbox_name])}}
|
||||
{% endif %}
|
||||
<div class="col-sm-8 pt-2">
|
||||
{% for c in form['entity_choices'][checkbox_name].children %}
|
||||
{{ form_widget(c) }}
|
||||
{{ form_label(c) }}
|
||||
{% endfor %}
|
||||
{% set field = form['entity_choices'][checkbox_name] %}
|
||||
{% if field.vars.expanded %}
|
||||
{# Render expanded checkboxes/radios #}
|
||||
{% for c in field.children %}
|
||||
{{ form_widget(c) }}
|
||||
{{ form_label(c) }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{# Render select dropdown #}
|
||||
{{ form_widget(field) }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user