Skip to content

Commit 7a72dd3

Browse files
committed
Add "form-control" CSS class to Select2EntityAjaxType (Boostrapp CSS class)
1 parent 1306e56 commit 7a72dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Form/select2.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% block ecommit_javascript_select2entityajax_widget %}
22
{% spaceless %}
3-
<span class="select2-ajax">{{ form_widget(form) }}</span>
3+
<span class="select2-ajax">{{ form_widget(form, {'attr': {'class': (attr.class|default('') ~ ' form-control')|trim}}) }}</span>
44
<script type="text/javascript">
55
$(function () {
66
$("#{{ id }}").select2({

0 commit comments

Comments
 (0)