src/Crud/templates/crud/index.html.twig line 1

Open in your IDE?
  1. {% extends "@crud\\crud.html.twig" %}
  2. {% block stylesheets %}   
  3.     {{ parent() }}
  4.     <link rel="stylesheet" href="{{ asset('ace/css/chosen.css') }}" />
  5.     
  6.     <link rel="stylesheet" type="text/css" href="{{ asset('ace/css/dataTables/dataTables.colVis.css') }}"/>
  7.     <link rel="stylesheet" type="text/css" href="{{ asset('ace/css/dataTables/dataTables.responsive.css') }}"/>
  8.     <link rel="stylesheet" type="text/css" href="{{ asset('ace/css/dataTables/dataTables.scroller.css') }}" />
  9.     <link rel="stylesheet" href="{{ asset('ace/css/colorbox.css') }}" />
  10.     
  11. {% endblock stylesheets %}   
  12. {% block javascripts %}
  13.     {{ parent() }}
  14.     <script src="{{ asset('ace/js/chosen.jquery.js') }}"></script>
  15.     <script src="{{ asset('ace/js/dataTables/jquery.dataTables.js') }}"></script>
  16.     <script src="{{ asset('ace/js/dataTables/jquery.dataTables.bootstrap.js') }}"></script>
  17.     <script src="{{ asset('ace/js/dataTables/extensions/TableTools/js/dataTables.tableTools.js') }}"></script>
  18.     <script src="{{ asset('ace/js/dataTables/extensions/ColVis/js/dataTables.colVis.js') }}"></script>
  19.     <script src="{{ asset('ace/js/dataTables/extensions/Responsive/js/dataTables.responsive.js') }}"></script>
  20.     <script src="{{ asset('ace/js/jquery.colorbox.js') }}"></script>
  21.     
  22.     <script src="{{ asset('ace/js/jquery.table2excel.js') }}"></script>
  23.     
  24. {% endblock javascripts %}
  25. {% block jquery %}
  26.     {{ parent() }}
  27.     <script type="text/javascript">
  28.         $(function()
  29.         {
  30.             $('.chosen-select').chosen({allow_single_deselect:true}); 
  31.             
  32.             {#% for key,widget in formFilter %}
  33.                 {% if key != '_token' %} 
  34.                     {% if widget.vars.attr.class is defined and isSubString(widget.vars.attr.class,'spinbox-input') %} 
  35.                         {% set min = "" %}
  36.                         {% if widget.vars.attr.min is defined %}
  37.                             {% set min = "min: "~widget.vars.attr.min~", " %}
  38.                         {% endif %} 
  39.                         {% set max = "" %}
  40.                         {% if widget.vars.attr.max is defined %}
  41.                             {% set max = "max: "~widget.vars.attr.max~", " %}
  42.                         {% endif %} 
  43.                         $('#{{widget.vars.id}}').ace_spinner({ {{ min }}{{ max }} step: 1, on_sides: true, icon_up: 'fas fa-plus', icon_down: 'fas fa-minus ', btn_up_class: 'btn-grey', btn_down_class: 'btn-grey', full_width: true});
  44.                     {% else %} 
  45.                         {% if widget.vars.attr.class is defined and isSubString(widget.vars.attr.class,'campo_fecha') %}
  46.                             $('#{{widget.vars.id}}').wrap('<div class="input-group" id="campo_fecha_{{widget.vars.id}}" />');  
  47.                             $('#campo_fecha_{{widget.vars.id}}').append('<span class="input-group-addon"><i class="fas fa-calendar bigger-110"></i></span>');  
  48.                             $('#{{widget.vars.id}}').datepicker({
  49.                                         autoclose: true,
  50.                                         todayHighlight: true
  51.                             })
  52.                             .next().on(ace.click_event, function(){
  53.                                         $(this).prev().focus();
  54.                             });;
  55.                             //$('#{{widget.vars.id}}').wrap('<div class="input-group date" id="campo_fecha_{{widget.vars.id}}" />');  
  56.                             //$('#campo_fecha_{{widget.vars.id}}').append('<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>');  
  57.                             //$('#campo_fecha_{{widget.vars.id}}').datetimepicker({ format: 'DD/MM/YYYY H:mm' });
  58.                         {% endif %} 
  59.                     {% endif %} 
  60.                 {% endif %} 
  61.             {% endfor %#}                            
  62.         });
  63.     </script>    
  64. {% endblock jquery %}
  65. {% block crud %}
  66.     <div id="contenedor_{{ routeClassName }}">
  67.         {% include index_view %}
  68.     </div>                   
  69. {% endblock %}
  70.