{% 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": "id" }, { "data": "titulo" }, { "data": "fechaApertura" }, { "data": "fechaCierre" }, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ ' ', ' analytics', ' ', ].join(''); return $botones; } return data; }, }, ], order: [[ 0, 'desc' ]], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "id", "targets": 0, "visible" : false }, { "name": "titulo", "orderable": false, "targets": 1 }, { "name": "fechaApertura", "targets": 2 }, { "name": "fechaCierre", "targets": 3 }, { "searchable": false, "orderable": false, "targets": 4 }, ], serverSide: true, processing: true, ajax: { url: '{{ path('convocatorias_datos') }}', type: 'POST' } }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered {# $('.modal1').modal(); #} $('select').formSelect(); {% endblock %} {% block breadcrumb %} {% endblock %} {% block titulo_body %}
campaign

Convocatorias

{% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.titulo) }} {{ form_widget(form.titulo) }}
{{ form_end(form) }}

id Título Fecha Apertura Fecha Cierre Acciones
{% endblock %}