We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1306e56 commit 7a72dd3Copy full SHA for 7a72dd3
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