improve ux for admin configuration crud interface

This commit is contained in:
2021-02-05 22:30:23 +01:00
parent 8029b9b8ff
commit 31176f8bc8
17 changed files with 184 additions and 150 deletions

View File

@@ -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)));
}

View File

@@ -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)));
}

View File

@@ -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(