{% 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": "observaciones" }, { "data": "fechaApertura" }, { "data": "fechaCierre" }, { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { {# $botones = [ ' ', 'group_add', ' ', ].join(''); #} $botones = [ '', ' group', ' ', ].join(''); $botones += [ '', ' edit', ' ', ].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": "observaciones", "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('ternas_listado_datos') }}', 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 {# $('.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 breadcrumb %} {% endblock %} {% block titulo_body %}
contacts

Listado de Ternas

Nueva Ternaaddgroup
{% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.observaciones) }} {{ form_widget(form.observaciones) }}
{# {{ form_label(form.estado) }} {{ form_widget(form.estado) }} #}
{{ form_end(form) }}

id Observaciones Fecha Apertura Fecha Cierre Acciones
{% endblock %}