add (empty) admin section

This commit is contained in:
Julien Fastré 2013-12-07 13:29:37 +01:00
parent fcbe220c6c
commit 0d4c87eb22
3 changed files with 46 additions and 0 deletions

View 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'
)
);
}
}

View File

@ -58,6 +58,25 @@ chill_person_history_open:
pattern: /{id}/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
chill_appointment_list:
pattern: /view/{id}/appointment/list

View File

@ -138,4 +138,7 @@ menu:
person:
history: Historique
general_view: Informations personnelles
admin:
index: Options du composant "Personnes"
helper: Pas de sous-menu actuellement.