浏览代码

Merge branch 'master' of ssh://gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/Webservice into workflow_update

Luciano Andrade 7 年之前
父节点
当前提交
6c5044b0f2
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Resources/views/Type/remote_client_widget.html.twig

+ 9 - 0
Resources/views/Type/remote_client_widget.html.twig

@@ -2,6 +2,12 @@
     {% spaceless %}
 
         {% set locale = app.request.locale %}
+        {# SE AGREGA UNA VERSION DE SELECT2 MAS NUEVA QUE LA DE SONATA ADMIN #}
+        <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
+        <link href="{{ asset('bundles/baseadmin/vendor/select2/select2.css') }}" rel="stylesheet" />
+        <link href="{{ asset('bundles/baseadmin/vendor/select2-bootstrap-css/select2-bootstrap.css') }}" rel="stylesheet" />
+        <script src="{{ asset('bundles/baseadmin/vendor/select2/select2.min.js') }}"></script>
+        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/i18n/{{ locale }}.js"></script>
 
         <script type="text/javascript">
         $(function () {
@@ -20,7 +26,10 @@
             {% set ajax_url = 'ajax_client_list' %}
         {% endif %}
 
+
             $('select[id$="{{ id }}"]').select2({
+                theme: "bootstrap",
+                width: '100%',
                 ajax: {
                     url: '{{ path(ajax_url) }}',
                     dataType: 'json',