mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add (empty) admin section
This commit is contained in:
parent
fcbe220c6c
commit
0d4c87eb22
24
Controller/AdminController.php
Normal file
24
Controller/AdminController.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace CL\Chill\PersonBundle\Controller;
|
||||||
|
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author julien.fastre@champs-libres.coop
|
||||||
|
*/
|
||||||
|
class AdminController extends Controller {
|
||||||
|
|
||||||
|
public function indexAction() {
|
||||||
|
return $this->forward('CLChillMainBundle:Admin:index',
|
||||||
|
array(
|
||||||
|
'menu' => 'admin_person',
|
||||||
|
'page_title' => 'menu.person.admin.index',
|
||||||
|
'header_title' => 'menu.person.header_index'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -58,6 +58,25 @@ chill_person_history_open:
|
|||||||
pattern: /{id}/history/open
|
pattern: /{id}/history/open
|
||||||
defaults: { _controller: CLChillPersonBundle:History:open }
|
defaults: { _controller: CLChillPersonBundle:History:open }
|
||||||
|
|
||||||
|
chill_person_admin:
|
||||||
|
pattern: /admin
|
||||||
|
defaults: { _controller: CLChillPersonBundle:Admin:index }
|
||||||
|
options:
|
||||||
|
menu: admin
|
||||||
|
order: 100
|
||||||
|
label: menu.person.admin.index
|
||||||
|
helper: menu.person.admin.helper
|
||||||
|
|
||||||
|
#sample admin_person menu:
|
||||||
|
chill_person_admin_test_one:
|
||||||
|
pattern: /admin/test_one
|
||||||
|
defaults: { _controller: CLChillPersonBundle:Admin:test }
|
||||||
|
options:
|
||||||
|
menu: admin_person
|
||||||
|
order: 100
|
||||||
|
label: menu.person.admin.test_one
|
||||||
|
helper: menu.person.admin.helper_one
|
||||||
|
|
||||||
#sample
|
#sample
|
||||||
chill_appointment_list:
|
chill_appointment_list:
|
||||||
pattern: /view/{id}/appointment/list
|
pattern: /view/{id}/appointment/list
|
||||||
|
@ -138,4 +138,7 @@ menu:
|
|||||||
person:
|
person:
|
||||||
history: Historique
|
history: Historique
|
||||||
general_view: Informations personnelles
|
general_view: Informations personnelles
|
||||||
|
admin:
|
||||||
|
index: Options du composant "Personnes"
|
||||||
|
helper: Pas de sous-menu actuellement.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user