Commit b7e9858dcfb8bfd008739535c1ea8c5340a2cfb1

Authored by Wilmer Ramones
1 parent de811c463d
Exists in master

mostrar planificacion por temas de las uc inscritas a los estudiantes

app/Resources/views/inscripcion/index.html.twig
@@ -79,7 +79,7 @@ @@ -79,7 +79,7 @@
79 {% if inscritas.getIdSeccion.getPlanificacion | length > 0 %} 79 {% if inscritas.getIdSeccion.getPlanificacion | length > 0 %}
80 <ol> 80 <ol>
81 {% for planificacion in inscritas.getIdSeccion.getPlanificacion %} 81 {% for planificacion in inscritas.getIdSeccion.getPlanificacion %}
82 - <li>{{ planificacion.idTemaUc.nombre }}</li> 82 + <li> <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': planificacion.id }) }}">{{ planificacion.idTemaUc.nombre }}</a></li>
83 {% endfor %} 83 {% endfor %}
84 </ol> 84 </ol>
85 {% else %} 85 {% else %}
app/Resources/views/planificacionseccion/show.html.twig
@@ -27,6 +27,7 @@ @@ -27,6 +27,7 @@
27 <li> 27 <li>
28 <a href="{{ path('ceapp_docente_planificacion_index') }}">Back to the list</a> 28 <a href="{{ path('ceapp_docente_planificacion_index') }}">Back to the list</a>
29 </li> 29 </li>
  30 + {% if is_granted('ROLE_DOCENTE') %}
30 <li> 31 <li>
31 <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': planificacion.id }) }}">Edit</a> 32 <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': planificacion.id }) }}">Edit</a>
32 </li> 33 </li>
@@ -35,6 +36,7 @@ @@ -35,6 +36,7 @@
35 <a href="{{ path('ceapp_docente_calificar_new', { 'planificacion': planificacion.id }) }}">Calificar</a> 36 <a href="{{ path('ceapp_docente_calificar_new', { 'planificacion': planificacion.id }) }}">Calificar</a>
36 </li> 37 </li>
37 {% endif %} 38 {% endif %}
  39 + {% endif %}
38 </ul> 40 </ul>
39 41
40 42