|
@@ -106,7 +106,9 @@ file that was distributed with this source code.
|
|
|
{% endfor %}
|
|
|
</ul>
|
|
|
{% else %}
|
|
|
- {% set attr = attr|merge({'class': attr.class|default('') ~ ' form-control'}) %}
|
|
|
+ {% if sonata_admin.admin and not sonata_admin.admin.getConfigurationPool().getOption('use_select2') %}
|
|
|
+ {% set attr = attr|merge({'class': attr.class|default('') ~ ' form-control'}) %}
|
|
|
+ {% endif %}
|
|
|
<select {{ block('widget_attributes') }}{% if multiple %} multiple="multiple"{% endif %}>
|
|
|
{% if empty_value is not none %}
|
|
|
<option value="">
|