mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-26 17:43:54 +00:00
Create twig templates for admin jobs/scopes histories
This commit is contained in:
@@ -56,6 +56,8 @@ use Chill\MainBundle\Entity\Regroupment;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Chill\MainBundle\Entity\UserJob;
|
||||
use Chill\MainBundle\Form\CenterType;
|
||||
use Chill\MainBundle\Entity\User\UserJobHistory;
|
||||
use Chill\MainBundle\Entity\User\UserScopeHistory;
|
||||
use Chill\MainBundle\Form\CivilityType;
|
||||
use Chill\MainBundle\Form\CountryType;
|
||||
use Chill\MainBundle\Form\LanguageType;
|
||||
@@ -371,6 +373,32 @@ class ChillMainExtension extends Extension implements
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'class' => UserJobHistory::class,
|
||||
//'controller' => UserJobHistoryController::class,
|
||||
'name' => 'admin_user_job_history',
|
||||
'base_path' => '/admin/main/user-job-history',
|
||||
'base_role' => 'ROLE_ADMIN',
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillMain/UserJob/history.html.twig',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'class' => UserScopeHistory::class,
|
||||
//'controller' => UserScopeHistoryController::class,
|
||||
'name' => 'admin_user_scope_history',
|
||||
'base_path' => '/admin/main/user-scope-history',
|
||||
'base_role' => 'ROLE_ADMIN',
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillMain/Scope/history.html.twig',
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'class' => User::class,
|
||||
'controller' => UserController::class,
|
||||
|
Reference in New Issue
Block a user