{% extends 'base.html.twig' %}
{% block js_document_ready %}
$('#datatable').dataTable({
filter : false,
language: {
"url": "//cdn.datatables.net/plug-ins/1.10.16/i18n/Spanish.json"
},
aLengthMenu: "",
bAutoWidth: false,
"columns": [
{
"data": "foto",
render: function(data, type, row, meta) {
if (type === 'display') {
imagen = [
'',
].join('');
return imagen;
}
return data;
},
},
{ "data": "nombre_apellido" },
{ "data": "dni" },
{ "data": "convocatoria" },
{ "data": "nombreCargo" },
{ "data": "tipoInscripcion" },
{ "data": "fechaRectificacion" },
{# { "data": "estado" }, #}
{# { "data": "aprobadoPorResolucion" }, #}
{
"data": "acciones" ,
render: function(data, type, row, meta) {
if (type === 'display') {
$botones = [
' ',
'history',
' ',
].join('');
$botones += [
' ',
'edit',
' ',
].join('');
$botones += [
' ',
'print',
' ',
].join('');
return $botones;
}
return data;
},
},
],
order: [[ 1, 'asc' ]],
columnDefs: [
// These are the column name variables that will be sent to the server
{
"name": "imagen",
"searchable": false,
"orderable": false,
"targets": 0
},
{
"name": "nombre_apellido",
"targets": 1
},
{
"name": "dp.dni",
"targets": 2
},
{
"name": "convocatoria",
"targets": 3
},
{
"name": "nombreCargo",
"targets": 4
},
{
"name": "ce.tipoInscripcion",
"targets": 5
},
{
"name": "fechaRectificacion",
"targets": 6
},
{
"searchable": false,
"orderable": false,
"targets": 7
},
],
"displayStart": {{ app.session.get(constant('App\\Controller\\Inscripciones\\InscripcionRectificatoriaController::FORM_CONSULTA_RECTIFICACIONES_STAR')) ?? 0 }},
serverSide: true,
processing: true,
ajax: {
url: '{{ path('rectificaciones_datos') }}',
type: 'POST'
}
});
var $convocatoria = $('#inscripciones_rectificatorias_filtro_convocatorias');
$convocatoria.change(function() {
var $form = $(this).closest('form');
var data = {};
data['convocatoria_id'] = $convocatoria.val();
$.ajax({
url : '{{ path('load_cargos') }}',
type: 'POST',
data : data,
success: function(html) {
$('#inscripciones_rectificatorias_filtro_cargos').empty();
$('#inscripciones_rectificatorias_filtro_cargos').append(
$(html).find('#form_cargos').children()
);
$('#inscripciones_rectificatorias_filtro_cargos').children().first().prop('selected', true);
$("select").formSelect();
}
});
});
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
{# $('.modal1').modal(); #}
$('select').formSelect();
var select = $('select');
$('.limpiar').click(function(){
$("input[type=text]").val("");
select.prop('selectedIndex', 0); //Sets the first option as selected
select.material_select(); //Update material select
form.submit();
});
{% endblock %}
{% block titulo_acciones_body %}
add
list
Nueva Rectificatoria
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% block breadcrumb %}
Nombre y Apellido | DNI | Convocatoria | Cargo | Tipo Inscripción | Fecha Rectificación | {#Inscripción origen | #}Acciones |
---|