Added top level operations into the sidemenu
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@768 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -193,25 +193,6 @@ class AppController extends Controller {
|
|||||||
array('controller' => 'transactions', 'action' => 'deposit'), null,
|
array('controller' => 'transactions', 'action' => 'deposit'), null,
|
||||||
'SITE');
|
'SITE');
|
||||||
|
|
||||||
/* $this->addSideMenuLink('Move-In', */
|
|
||||||
/* array('controller' => 'customers', 'action' => 'move_in'), null, */
|
|
||||||
/* 'SITE', $this->op_area); */
|
|
||||||
|
|
||||||
/* $this->addSideMenuLink('Move-Out', */
|
|
||||||
/* array('controller' => 'customers', 'action' => 'move_out'), null, */
|
|
||||||
/* 'SITE', $this->op_area); */
|
|
||||||
|
|
||||||
/* $this->addSideMenuLink('New Receipt', */
|
|
||||||
/* array('controller' => 'customers', 'action' => 'receipt'), null, */
|
|
||||||
/* 'SITE', $this->op_area); */
|
|
||||||
|
|
||||||
/* $this->addSideMenuLink('New Customer', */
|
|
||||||
/* array('controller' => 'customers', 'action' => 'add'), null, */
|
|
||||||
/* 'SITE', $this->op_area); */
|
|
||||||
|
|
||||||
/* $this->addSideMenuLink('New Deposit', */
|
|
||||||
/* array('controller' => 'tenders', 'action' => 'deposit'), null, */
|
|
||||||
/* 'SITE', $this->op_area); */
|
|
||||||
|
|
||||||
$this->addSideMenuLink('Accounts',
|
$this->addSideMenuLink('Accounts',
|
||||||
array('controller' => 'accounts', 'action' => 'index'), null,
|
array('controller' => 'accounts', 'action' => 'index'), null,
|
||||||
@@ -238,6 +219,7 @@ class AppController extends Controller {
|
|||||||
array('controller' => 'leases', 'action' => 'assess_all'), null,
|
array('controller' => 'leases', 'action' => 'assess_all'), null,
|
||||||
'SITE', $this->admin_area);
|
'SITE', $this->admin_area);
|
||||||
|
|
||||||
|
|
||||||
$this->addSideMenuLink('Un-Nuke',
|
$this->addSideMenuLink('Un-Nuke',
|
||||||
'#', array('htmlAttributes' =>
|
'#', array('htmlAttributes' =>
|
||||||
array('onclick' => '$(".pr-section").show(); return false;')),
|
array('onclick' => '$(".pr-section").show(); return false;')),
|
||||||
@@ -247,6 +229,28 @@ class AppController extends Controller {
|
|||||||
'SITE', $this->dev_area);
|
'SITE', $this->dev_area);
|
||||||
//array('name' => 'RESET DATA', array('controller' => 'accounts', 'action' => 'reset_data'));
|
//array('name' => 'RESET DATA', array('controller' => 'accounts', 'action' => 'reset_data'));
|
||||||
|
|
||||||
|
|
||||||
|
$this->addSideMenuLink('New Receipt',
|
||||||
|
array('controller' => 'customers', 'action' => 'receipt'), null,
|
||||||
|
'SITE', $this->op_area);
|
||||||
|
|
||||||
|
$this->addSideMenuLink('New Invoice',
|
||||||
|
array('controller' => 'leases', 'action' => 'invoice'), null,
|
||||||
|
'SITE', $this->op_area);
|
||||||
|
|
||||||
|
$this->addSideMenuLink('Move-In',
|
||||||
|
array('controller' => 'customers', 'action' => 'move_in'), null,
|
||||||
|
'SITE', $this->op_area);
|
||||||
|
|
||||||
|
$this->addSideMenuLink('Move-Out',
|
||||||
|
array('controller' => 'leases', 'action' => 'move_out'), null,
|
||||||
|
'SITE', $this->op_area);
|
||||||
|
|
||||||
|
$this->addSideMenuLink('New Deposit',
|
||||||
|
array('controller' => 'tenders', 'action' => 'deposit'), null,
|
||||||
|
'SITE', $this->op_area);
|
||||||
|
|
||||||
|
|
||||||
$this->sideMenuAreaName('Operations', 'SITE', $this->op_area);
|
$this->sideMenuAreaName('Operations', 'SITE', $this->op_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,7 +272,7 @@ class AppController extends Controller {
|
|||||||
Configure::write('debug', '0');
|
Configure::write('debug', '0');
|
||||||
|
|
||||||
$this->addDefaultSideMenuLinks();
|
$this->addDefaultSideMenuLinks();
|
||||||
$this->sideMenuEnable('SITE', $this->op_area, false);
|
//$this->sideMenuEnable('SITE', $this->op_area, false);
|
||||||
|
|
||||||
foreach ($this->sidemenu['areas'] AS $area_name => $area) {
|
foreach ($this->sidemenu['areas'] AS $area_name => $area) {
|
||||||
if (empty($this->params['dev']))
|
if (empty($this->params['dev']))
|
||||||
|
|||||||
Reference in New Issue
Block a user