diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 0390fd29af1a99e8d4690a0e1275af9a7495824b..71ae438acc0ffe8a980d92eb701e1d7667657a78 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -2,6 +2,7 @@ + {% block title %}AskIng{% endblock %} {% block stylesheets %} diff --git a/app/Resources/views/question/event.html.twig b/app/Resources/views/question/event.html.twig index 2f66a93b21fc723c02fe7cd8176f9a8d3cca8f3a..4d5a78d658b56006e6457c1801d87307a5e4b352 100644 --- a/app/Resources/views/question/event.html.twig +++ b/app/Resources/views/question/event.html.twig @@ -2,24 +2,30 @@ {% block body %}

Evento {{ event.name }}

- -
- -
- -
-
- - -
La pregunta debe tener al menos 10 caracteres
+ {% if event.open or is_granted(['ROLE_PROFESSOR']) %} +
+
- - + + {% if event.open %} +
+
+ + +
La pregunta debe tener al menos 10 caracteres
+
+ +
+ {% endif %} + {% else %} +

Este evento está cerrado.

+ {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}