{% 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": "nombre_apellido" }, { "data": "dni" }, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ ' ', 'delete_forever', ' ', ].join(''); return $botones; } return data; }, }, ], order: [[ 1, 'asc' ]], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "nombre_apellido", "targets": 0 }, { "name": "dp.dni", "targets": 1 }, { "searchable": false, "orderable": false, "targets": 2 }, ], serverSide: true, processing: true, ajax: { url: '{{ path('ver_rias_por_terna_datos', {'idView': ternasConf.idView}) }}', type: 'POST', {# success: function(response) { console.log(response); // Realiza un dump de la respuesta en la consola } #} } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered $('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(); }); $('#datatable').on('click', '.show2', function () { var urlShow = $(this).data('url-show'); $.ajax({ url : urlShow, type: 'GET', dataType: 'html', success : function(data) { $(".muestroShow").html(data); $('#modal1').modal('open'); }, error: function(data) { alert('error'); } }); }); {% endblock %} {% block breadcrumb %} {% endblock %} {% block titulo_body %}
group

Postulantes de la Terna

Cargar Riasgroup_add
{% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.textoBusqueda) }} {{ form_widget(form.textoBusqueda) }}
{{ form_label(form.dni) }} {{ form_widget(form.dni) }}
{{ form_end(form) }}

Nombre y Apellido DNI Acción
{% endblock %}