mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
improve ux for admin configuration crud interface
This commit is contained in:
@@ -46,7 +46,7 @@ class EventTypeController extends AbstractController
|
||||
$em->persist($entity);
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_eventtype_admin_show',
|
||||
return $this->redirect($this->generateUrl('chill_eventtype_admin',
|
||||
array('id' => $entity->getId())));
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ class EventTypeController extends AbstractController
|
||||
if ($editForm->isValid()) {
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_eventtype_admin_edit',
|
||||
return $this->redirect($this->generateUrl('chill_eventtype_admin',
|
||||
array('id' => $id)));
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ class RoleController extends AbstractController
|
||||
$em->persist($entity);
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_role_show',
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_role',
|
||||
array('id' => $entity->getId())));
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ class RoleController extends AbstractController
|
||||
if ($editForm->isValid()) {
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_role_edit',
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_role',
|
||||
array('id' => $id)));
|
||||
}
|
||||
|
||||
|
@@ -46,7 +46,7 @@ class StatusController extends AbstractController
|
||||
$em->persist($entity);
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_status_show', array('id' => $entity->getId())));
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_status', array('id' => $entity->getId())));
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Status:new.html.twig', array(
|
||||
@@ -174,7 +174,7 @@ class StatusController extends AbstractController
|
||||
if ($editForm->isValid()) {
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_status_edit', array('id' => $id)));
|
||||
return $this->redirect($this->generateUrl('chill_event_admin_status', array('id' => $id)));
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Status:edit.html.twig', array(
|
||||
|
Reference in New Issue
Block a user