Commit e9f85573039fd2ebff64308f6b6ed48b13efef0b

Authored by Wilmer Ramones
1 parent 4ac2a60bfc
Exists in master

corregido error de incongruencia entre el mostrar y el editar de la planificacion seccion

app/Resources/views/planificacionseccion/index.html.twig
@@ -32,14 +32,10 @@ @@ -32,14 +32,10 @@
32 <li> 32 <li>
33 <a href="{{ path('ceapp_docente_planificacion_new', { 'seccion': seccion.id }) }}">Planificar</a> 33 <a href="{{ path('ceapp_docente_planificacion_new', { 'seccion': seccion.id }) }}">Planificar</a>
34 </li> 34 </li>
  35 +
35 <li> 36 <li>
36 - <a href="{{ path('ceapp_docente_planificacion_edit', { 'id': seccion.id }) }}">edit</a>  
37 - </li>  
38 - {% if porcentaje == 100 %}  
39 - <li>  
40 - <a href="{{ path('ceapp_docente_planificacion_show', { 'id': seccion.id, 'porcentaje' : porcentaje }) }}">Calificar</a>  
41 - </li>  
42 - {% endif %} 37 + <a href="{{ path('ceapp_docente_planificacion_show', { 'id': seccion.id, 'porcentaje' : porcentaje }) }}">Editar</a>
  38 + </li>
43 </ul> 39 </ul>
44 </td> 40 </td>
45 </tr> 41 </tr>
src/AppBundle/Controller/PlanificacionSeccionController.php
@@ -94,7 +94,7 @@ class PlanificacionSeccionController extends Controller @@ -94,7 +94,7 @@ class PlanificacionSeccionController extends Controller
94 /** 94 /**
95 * Finds and displays a PlanificacionSeccion entity. 95 * Finds and displays a PlanificacionSeccion entity.
96 * 96 *
97 - * @Route("/{id}/{porcentaje}", name="ceapp_docente_planificacion_show") 97 + * @Route("/show/{id}/{porcentaje}", name="ceapp_docente_planificacion_show")
98 * @Method("GET") 98 * @Method("GET")
99 */ 99 */
100 public function showAction(Seccion $seccion, $porcentaje = null) 100 public function showAction(Seccion $seccion, $porcentaje = null)