{% extends 'base.html.twig' %} {% block breadcrumb %} {% endblock %} {% block titulo_body %} today {% set fecha = cronograma.fechaEntrevista %}

Entrevista del {{ fecha|format_datetime(pattern='EEEE', timezone='America/Argentina/Buenos_Aires')|capitalize ~ ' ' ~ fecha|date('d/m/Y') }} {% set color = constant('App\\Entity\\Entrevistas\\CronogramaEntrevistas::VIEW_ESTADO')[cronograma.estado]['color'] %} { {{ constant('App\\Entity\\Entrevistas\\CronogramaEntrevistas::VIEW_ESTADO')[cronograma.estado]['show_name'] }} }

{{ cronograma.cargo }} {% if cronograma.territorialidad is not null %} - {{ cronograma.territorialidad }}
{% endif %}
{# Videos de lecturas #} {% if cronograma.lecturaNotas and cronograma.lecturaNotas.estado == 'Publicado' %}
{% if cronograma.lecturaNotas.video1 %} voice_chat Lectura de Notas - Video 1     {% endif %} {% if cronograma.lecturaNotas.video2 %} voice_chat Lectura de Notas - Video 2     {% endif %} {% if cronograma.lecturaNotas.video3 %} voice_chat Lectura de Notas - Video 3     {% endif %}
{% endif %} {% endblock %} {% block titulo_acciones_body %} {% if is_granted('ROLE_ENTREVISTAS_ADMIN') %} {% if (cronograma.estado == 'ResultadosPublicados') or (cronograma.lecturaNotas and cronograma.lecturaNotas.estado == 'Publicado') %} {% if cronograma.lecturaNotas and cronograma.lecturaNotas.estado == 'Publicado' %} {% else %} add how_to_reg Despublicar y Modificar {% endif %} {% elseif (cronograma.estado != 'WebPublicado') %} edit today Editar Cronograma {% endif %}


{% endif %} {% endblock %} {% block javascripts_base %} function clickEliminar(e) { $url_eliminar=e.currentTarget.dataset.url; var $li = $(e.currentTarget.closest('li')); swal({ title: "Eliminar", text: "¿Está seguro que quiere eliminar este detalle de Entrevista?", icon: "warning", buttons: true, }) .then((aceptar) => { if (aceptar) { $.ajax({ url: $url_eliminar, method: 'POST', success: function (data) { M.toast({html: 'Se eliminó el detalle con éxito'}); $li.remove(); }, error: function (error) { swal({ icon: 'error', title: 'Error', text: error.getResponseHeader('mensaje') ? error.getResponseHeader('mensaje').replaceAll(".", ".\n").replaceAll("ã", "á") : 'Error del servidor, intente más tarde.', }); }, complete: function(html) { } }); } }); } function clickEliminarPrimero(e) { $url_eliminar=e.currentTarget.dataset.url; var $lista = $(e.currentTarget).parents("#listaDetalles").children(); var $texto="¿Está seguro que quiere eliminar este detalle de Entrevista? En consecuencia se eliminarán las demás notas cargadas para el postulante"; {% if cronograma.lecturaNotas %} if ($('ul > li.avatar').length == 1) { $texto="¿Está seguro que quiere eliminar este detalle de Entrevista? En consecuencia se eliminarán las demás notas cargadas para el postulante y también la Lectura de Notas asociada." } {% endif %} swal({ title: "Eliminar", text: $texto, icon: "warning", buttons: true, }) .then((aceptar) => { if (aceptar) { $.ajax({ url: $url_eliminar, method: 'POST', success: function (data) { M.toast({html: 'Se eliminaron las notas con éxito'}); var $div =$(e.target).parents(".collapsible-body").find("i")[0].closest("div"); var $anchor = $(e.target).parents(".collapsible-body").find("i")[0].closest("a"); var cardListado=$lista.parents('.collapsible-body').find('.card.card-default'); if ($anchor != null){ $anchor.remove(); $($div).html('voice_chat Sin cargar'); } else { $div.children[2].remove(); } $(e.target).parents(".collapsible-body").siblings(".collapsible-header").find('button').prop('disabled',false); $lista.remove(); cardListado.hide(); }, error: function (error) { swal({ icon: 'error', title: 'Error', text: error.getResponseHeader('mensaje') ? error.getResponseHeader('mensaje').replaceAll(".", ".\n").replaceAll("ã", "á") : 'Error del servidor, intente más tarde.', }); }, complete: function(html) { } }); } }); } function clickEliminarPostulante(e) { e.stopPropagation(); swal({ title: "Eliminar", text: "¿Está seguro que quiere eliminar este postulante de la Entrevista? En consecuencia se eliminarán las demás notas cargadas para el postulante", icon: "warning", buttons: true, }) .then((aceptar) => { if (aceptar) { $url_eliminar=e.target.parentElement.dataset.url; var data = {}; data['confirmacion'] = true; $.ajax({ url: $url_eliminar, method: 'POST', data: data, success: function (data) { $(e.target).parents('li').remove(); }, error: function (error) { swal({ icon: 'error', title: 'Error', text: error.getResponseHeader('mensaje') ? error.getResponseHeader('mensaje').replaceAll(".", ".\n").replaceAll("ã", "á") : 'Error del servidor, intente más tarde.', }); }, complete: function(html) { } }); } }); } $('#modalResultado').on('keypress', function(e) { // Verifica si la tecla presionada es Enter if (e.which === 13) { // Previene el comportamiento predeterminado (submit) e.preventDefault(); // Devuelve false para detener la propagación del evento return false; } }); function clickModificar(e) { swal({ title: "Despublicar y Modificar", text: "Usted no puede modificar el Resultado ya que tiene asociada una Lectura de Notas publicada.", icon: "warning", buttons: { confirm: { text: "OK", value: true, visible: true, className: "btn btn-success", closeModal: true } }, }); } {% endblock %} {% block js_document_ready %} {% endblock %} {% block javascripts %} {{ parent()}} {% endblock %} {% block body %}
{% for indice, postulante in postulantes %} {% endfor %}
{% if (cronograma.estado == 'Borrador' or cronograma.estado == 'Publicado') %} Publicar Resultado publish {% endif %} Volver undo
{% endblock %} {% block dialogos_modales %} {% endblock %}