We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdcbf12 + 7a72dd3 commit d37c09aCopy full SHA for d37c09a
1 file changed
Resources/views/Form/select2.html.twig
@@ -1,6 +1,6 @@
1
{% block ecommit_javascript_select2entityajax_widget %}
2
{% spaceless %}
3
- <span class="select2-ajax">{{ form_widget(form) }}</span>
+ <span class="select2-ajax">{{ form_widget(form, {'attr': {'class': (attr.class|default('') ~ ' form-control')|trim}}) }}</span>
4
<script type="text/javascript">
5
$(function () {
6
$("#{{ id }}").select2({
0 commit comments