mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix some stuff in CRUD
This commit is contained in:
parent
e59f58f461
commit
d87b188c4f
@ -60,6 +60,8 @@ class EntityPersonCRUDController extends CRUDController
|
|||||||
return '@ChillPerson/CRUD/new.html.twig';
|
return '@ChillPerson/CRUD/new.html.twig';
|
||||||
case 'edit':
|
case 'edit':
|
||||||
return '@ChillPerson/CRUD/edit.html.twig';
|
return '@ChillPerson/CRUD/edit.html.twig';
|
||||||
|
case 'view':
|
||||||
|
return '@ChillPerson/CRUD/view.html.twig';
|
||||||
default:
|
default:
|
||||||
return parent::getTemplateFor($action, $entity, $request);
|
return parent::getTemplateFor($action, $entity, $request);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ namespace Chill\PersonBundle\Controller;
|
|||||||
|
|
||||||
use Chill\MainBundle\CRUD\Controller\CRUDController;
|
use Chill\MainBundle\CRUD\Controller\CRUDController;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
use Chill\MainBundle\Pagination\PaginatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller for closing motives
|
* Controller for closing motives
|
||||||
@ -31,4 +32,10 @@ class AdminClosingMotiveController extends CRUDController
|
|||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
||||||
|
{
|
||||||
|
/** @var \Doctrine\ORM\QueryBuilder $query */
|
||||||
|
return $query->orderBy('e.ordering', 'ASC');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user