Bladeren bron

Merge branch 'master' of ssh://200.50.168.30:222/VendorSoftwareFlowdat3/Webservice

Luciano Andrade 7 jaren geleden
bovenliggende
commit
a9c6e4f6e2
1 gewijzigde bestanden met toevoegingen van 9 en 24 verwijderingen
  1. 9 24
      Resources/views/Type/remote_client_widget.html.twig

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

@@ -1,21 +1,8 @@
 {% block remote_client_widget %}
     {% 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="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
-        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>
-        <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/i18n/{{ locale }}.js"></script>
-        <style type="text/css">
-            .select2-selection.select2-selection--single {
-                height: 34px;
-                border-radius: 0px;
-            }
-            
-            .select2-container .select2-selection--single .select2-selection__rendered {
-                padding: 0px;
-            }
-        </style>
+
         <script type="text/javascript">
         $(function () {
             var getAjaxListData = function (params) {
@@ -24,15 +11,15 @@
                     p: params.page
                 };
             };
-            
+
         {% if id is not defined %}
             {% set id = 'clientId' %}
         {% endif %}
-            
+
         {% if ajax_url is not defined %}
             {% set ajax_url = 'ajax_client_list' %}
         {% endif %}
-            
+
             $('select[id$="{{ id }}"]').select2({
                 ajax: {
                     url: '{{ path(ajax_url) }}',
@@ -42,22 +29,20 @@
                     cache: true
                 },
                 language: "{{ locale }}",
-                debug: true,        
+                debug: true,
                 minimumInputLength: 3
             });
         });
         </script>
         <div class="clearfix">
-            <div style="width: 50%; float: left;">
-                {{ block('choice_widget') }}
-            </div>
+            {{ block('choice_widget') }}
             {% if create is not defined %}
-                {% set create = true %}
+            {% set create = true %}
             {% endif %}
             {% if create %}
             {% set url = remote_client_url() %}
             {% if url != '#' %}
-            <div style="width: 50%; float: left;">
+            <div class="pull-right">
                 <a href="{{ url }}" class="btn btn-link" target="_blank" title="{{ 'link.create_client'|trans({}, 'WebserviceBundle') }}">
                     <i class="fa fa-plus-circle" aria-hidden="true"></i>
                 </a>