diff --git a/Controller/ActivityReasonController.php b/Controller/ActivityReasonController.php index a76221704..6afeceac7 100644 --- a/Controller/ActivityReasonController.php +++ b/Controller/ActivityReasonController.php @@ -45,7 +45,7 @@ class ActivityReasonController extends AbstractController $em->persist($entity); $em->flush(); - return $this->redirect($this->generateUrl('chill_activity_activityreason_show', array('id' => $entity->getId()))); + return $this->redirect($this->generateUrl('chill_activity_activityreason', array('id' => $entity->getId()))); } return $this->render('ChillActivityBundle:ActivityReason:new.html.twig', array( @@ -167,7 +167,7 @@ class ActivityReasonController extends AbstractController if ($editForm->isValid()) { $em->flush(); - return $this->redirect($this->generateUrl('chill_activity_activityreason_edit', array('id' => $id))); + return $this->redirect($this->generateUrl('chill_activity_activityreason', array('id' => $id))); } return $this->render('ChillActivityBundle:ActivityReason:edit.html.twig', array( diff --git a/Resources/views/ActivityReason/edit.html.twig b/Resources/views/ActivityReason/edit.html.twig index 11d9ef074..e8baab4bd 100644 --- a/Resources/views/ActivityReason/edit.html.twig +++ b/Resources/views/ActivityReason/edit.html.twig @@ -23,14 +23,15 @@ {{ form_row(edit_form.name) }} {{ form_row(edit_form.active) }} {{ form_row(edit_form.category) }} - {{ form_row(edit_form.submit, { 'attr': { 'class' : 'sc-button orange' } } ) }} - {{ form_end(edit_form) }} - + + + {{ form_end(edit_form) }} {% endblock %} diff --git a/Resources/views/ActivityReason/index.html.twig b/Resources/views/ActivityReason/index.html.twig index 588c4b45b..99aa1bfa7 100644 --- a/Resources/views/ActivityReason/index.html.twig +++ b/Resources/views/ActivityReason/index.html.twig @@ -31,12 +31,12 @@ {{ entity.name|localize_translatable_string }} -