src/templates/ReclutaProceso/index_inner.html.twig line 1

Open in your IDE?
  1. {% extends "@crud\\crud\\index_inner.html.twig" %}
  2. {% block jquery %}
  3.     {{ parent() }}
  4.         <script type="text/javascript">
  5.         $(function()
  6.         {
  7.             {% include 'ProcesoReclutamiento\\filtros_jquery.html.twig' with {'routeClassName': routeClassName, 'ctrl_proceso':'procesoReclutamiento', 'ctrl_base':'reclutaBase', 'ctrl_centro':'centroMovilizacion', 'ctrl_unidad':'unidad'}  %}
  8.             /*$("#btnExportarExcel").click(function(e){
  9.              alert('entra');
  10.                 $("#{{ routeClassName }}").table2excel({
  11.                     filename: "listaAspirantes.xls"
  12.                 });
  13.             });*/
  14.             var table = $('#{{ routeClassName }}').DataTable();
  15.             $('#btnExportarExcel').on('click', function(){
  16.                 $('<table>').append($(table.table().header()).clone())
  17.                     .append(table.$('tr').clone()).table2excel({
  18.                     exclude: "" ,             
  19.                     filename: "listaAspirantes.xls",
  20.                     ignoreColumn: [0],
  21.                     exclude: "#noExl",
  22.                 });
  23.             });
  24.             $('#form_procesoReclutamiento').change();
  25.         
  26.         });
  27.         
  28.     </script>
  29. {% endblock jquery %}
  30. {% block show_no_results %}
  31.     {% if filtrosOk is not defined %}
  32.         {{ parent() }}
  33.     {% else %}
  34.         <div class="alert alert-info">
  35.             <strong>
  36.                 <i class="fas fa-info-circle bigger-150"></i>
  37.                 {{ filtrosOk }}    
  38.             </strong>
  39.             <br>
  40.         </div>
  41.     {% endif %}
  42. {% endblock show_no_results %}
  43. {% block main_column_info %}
  44.     {% if routeClassName != 'certificadovacunacion' %}
  45.         <div id="otros_botones" class="menu_int clearfix" >
  46.             <a id='exportar_excel' href='#'>
  47.                 <button id="btnExportarExcel" class='btn btn-white btn-inverse btn-bold btn-round' title='Exportar a excel'><img src='{{ asset('images/icon/icono_excel.png') }}'>
  48.                     <span class='hidden-xs'>{{ 'reporteresultados.botones.exportarExcel'   |trans({},'crud' )}}</span>
  49.                 </button>
  50.             </a>    
  51.             {% if is_granted('ROLE_PSICOLOGO_JEFE') or is_granted('ROLE_PSICOLOGO') %}    
  52.                     <a id='exportar_excel_test' href='{{ path('export_excel_test', {'rol': rol, 'routeClassName': routeClassName}) }}'>
  53.                         <button id="btnExportarExcelTest" class='btn btn-white btn-inverse btn-bold btn-round' title='Exportar Tests a excel'><img src='{{ asset('images/icon/icono_excel.png') }}'>
  54.                             <span class='hidden-xs'>Exportar Tests a excel</span>
  55.                         </button>
  56.                     </a>    
  57.                     <a id='exportar_excel_test_preguntas' href='{{ path('export_excel_test_preguntas', {'rol': rol, 'routeClassName': routeClassName}) }}'>
  58.                         <button id="btnExportarExcelTest" class='btn btn-white btn-inverse btn-bold btn-round' title='Exportar Tests Completos a excel'><img src='{{ asset('images/icon/icono_excel.png') }}'>
  59.                             <span class='hidden-xs'>Exportar Tests Completos a excel</span>
  60.                         </button>
  61.                     </a>    
  62.             {% endif %} 
  63.         </div>
  64.     {% endif %} 
  65. {% endblock main_column_info %}
  66. {% block cellData %}
  67.     {% if field['nombre']=='certificadoVacunacionOk' and not entity.getFieldValue(field['nombre'])%}
  68.         <i class="fa fa-question-circle"></i>
  69.     {#% else %}
  70.         {% if field['nombre']=='valorEncuesta' and filterData['pregunta'])%}
  71.             {{ entity.getValorEncuesta(filterData['pregunta']) }}
  72.         {% endif %#}
  73.     {% endif %}
  74.     {{ parent() }}
  75. {% endblock cellData %}
  76. {% block index_actions %}
  77.     {% if is_granted('ROLE_PSICOLOGO_JEFE') or is_granted('ROLE_PSICOLOGO') %}
  78.         <a href="{{ path('show_respuestas_test', { 'id': entity.id }) }}" itemid="{{ entity.id }}">
  79.             <i class="fas fa-tasks bigger-150 green" title="Resultado test psicológico"></i>
  80.         </a>
  81.     {% else %}
  82.         {{ parent() }}
  83.     {% endif %}
  84.     
  85. {% endblock index_actions %}