From 78087d3cc05826e773b8018649a1c1a2461e2297 Mon Sep 17 00:00:00 2001 From: wilmer Date: Tue, 7 Feb 2017 10:58:12 -0400 Subject: [PATCH] arreglado la cantidad de jurado a la hora de agregar los faltantes si es que les falto al docente al solicitar ascenso --- app/Resources/views/cea/ascenso_mostar.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Resources/views/cea/ascenso_mostar.html.twig b/app/Resources/views/cea/ascenso_mostar.html.twig index 6d0273a..ff709b7 100644 --- a/app/Resources/views/cea/ascenso_mostar.html.twig +++ b/app/Resources/views/cea/ascenso_mostar.html.twig @@ -66,10 +66,11 @@ {% set aƱadirJurado = true %} {% set cantidadJurado = 6 %} {% for tutor in ascenso.tutoresAscenso %} - {% if loop.length >= 5 %} + {{ loop.length }} + {% if loop.length == 6 %} {% set aƱadirJurado = false %} {% else %} - {% set cantidadJurado = cantidadJurado - loop.index %} + {% set cantidadJurado = cantidadJurado - 1 %} {% endif %}

-- 2.0.0