{% extends 'base.html.twig' %} {% block breadcrumb %} {% endblock %} {% block titulo_body %}
person

Tomas de posesión

{% endblock %} {% block titulo_acciones_body %}
Nueva toma de posesiónaddperson
{% endblock %} {% block js_document_ready %} $('#datatable').dataTable({ createdRow: function(row, data, dataIndex) { $(row).css({"background-color":"transparent"}); }, 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') { if(data){ foto = [ '', ].join(''); } else { foto = [ '', ].join(''); } return foto; } return data; }, }, {"data": "apellidos_nombres"}, {"data": "tomaPosesion.dni"}, {"data": "tomaPosesion.cargo" }, {"data": "tomaPosesion.posesion", "render": function(data, type, row) { if (type === 'display') { return "
"+ data+ "
"; } return data; } }, {# {"data": "tomaPosesion.estado", "render": function(data, type, row) { if (type === 'display') { return "
"+ data+ "
"; } return data; } }, #} { "data": "acciones" , render: function(data, type, row, meta) { if (type === 'display') { $botones = [ "", "visibility", "", ].join(''); {# $botones += [ '", "edit", "", ].join(''); #} $botones += [ "", "edit", "", ].join(''); return $botones; } return data; }, }, ], order: [[ 1, 'asc' ]], columnDefs: [ // These are the column name variables that will be sent to the server { "name": "foto", "searchable": false, "orderable": false, "targets": 0, }, { "name": "apellidos_nombres", "searchable": true, "orderable": true, "targets": 1 }, { "name": "tp.dni", "searchable": true, "orderable": true, "targets": 2 }, { "name": "tp.cargo", "searchable": true, "orderable": true, "targets": 3 }, { "name": "tp.posesion", "searchable": true, "orderable": true, "targets": 4 }, {# { "name": "tp.estado", "searchable": true, "orderable": false, "targets": 5 }, #} { "searchable": false, "orderable": false, "targets": 5 }, ], serverSide: true, processing: true, ajax: { url: '{{ path('toma_posesion_datos') }}', type: 'POST' }, {# fnDrawCallback: function( oSettings ) { $(".alertBorrador").on("click", function (event) { event.stopPropagation(); event.preventDefault(); $url_modificar=event.currentTarget.href; swal({ title: "Despublicar", text: "¿Está seguro que quiere modificar esta Toma de Posesión? En consecuencia quedará en Borrador.", icon: "warning", buttons: true, }) .then((aceptar) => { if (aceptar) { window.location.href = $url_modificar; } }); }); } #} }); // the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered $('select').formSelect(); $('.limpiar').click(function(){ window.location.href="{{ path('toma_posesion_index_limpiar') }}" }); {% endblock %} {% block javascripts %} {{ parent()}} {% endblock %} {% block body %}
{{ form_start(form) }}
{{ form_label(form.cargo) }} {{ form_widget(form.cargo) }}
{{ form_label(form.dni) }} {{ form_widget(form.dni) }}
{#
{{ form_widget(form.estado) }} {{ form_label(form.estado) }}
#}
{% if form.children | filter(v => (v.vars.name != "_token" and not (v.vars.value == "" or v.vars.value == []))) | length > 0 %}
{% endif %}
{{ form_end(form) }}
{# #}
Apellidos y Nombres DNI Cargo Fecha de PosesiónEstadoAcciones
{% endblock %} {% block dialogos_modales %} {% endblock %}