improve ux in admin configuration interface

This commit is contained in:
2021-02-06 13:51:46 +01:00
parent 7ef534438e
commit 6f80bd0d37
11 changed files with 190 additions and 32 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Chill\DocStoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
/**
* Class AdminController
*
* @package Chill\DocStoreBundle\Controller
*/
class AdminController extends AbstractController
{
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction()
{
return $this->render('ChillDocStoreBundle:Admin:layout.html.twig');
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function redirectToAdminIndexAction()
{
return $this->redirectToRoute('chill_main_admin_central');
}
}

View File

@@ -100,7 +100,7 @@ class DocumentCategoryController extends AbstractController
if ($form->isSubmitted() && $form->isValid()) {
$this->getDoctrine()->getManager()->flush();
return $this->redirectToRoute('document_category_edit', [
return $this->redirectToRoute('document_category_index', [
'bundleId' => $documentCategory->getBundleId(),
'idInsideBundle' => $documentCategory->getIdInsideBundle(),]);
}