Add billing section to main menu

This commit is contained in:
drigato 2014-06-20 17:25:05 -04:00
parent 497841225b
commit 5d0ea2d015
3 changed files with 30 additions and 2 deletions

View File

@ -59,7 +59,7 @@ $ccAcl->allow('G', 'index')
->allow('A', 'user')
->allow('A', 'systemstatus')
->allow('A', 'preference')
->allow('A', 'billing');
->allow('S', 'billing');
$aclPlugin = new Zend_Controller_Plugin_Acl($ccAcl);

View File

@ -134,6 +134,34 @@ $pages = array(
'resource' => 'dashboard'
)
)
),
array(
'label' => _('Billing'),
'uri' => '#',
'resource' => 'billing',
'pages' => array(
array(
'label' => _('Account Details'),
'module' => 'default',
'controller' => 'billing',
'action' => 'client',
'resource' => 'billing'
),
array(
'label' => _('Account Plans'),
'module' => 'default',
'controller' => 'billing',
'action' => 'upgrade',
'resource' => 'billing'
),
array(
'label' => _('View Invocices'),
'module' => 'default',
'controller' => 'billing',
'action' => 'invoices',
'resource' => 'billing'
)
)
)
);

View File

@ -24,7 +24,7 @@
<div class="personal-block solo">
<ul>
<li>
<span class="trial-box-button"><a title="Billing" href=<?php echo $baseUrl . 'billing/upgrade'?>>Upgrade</a></span>&nbsp;
<!-- <span class="trial-box-button"><a title="Billing" href=<?php echo $baseUrl . 'billing/upgrade'?>>Upgrade</a></span>&nbsp;-->
<a id="current-user" href=<?php echo $baseUrl . "User/edit-user"?>><span class="name"><?php echo $this->escape($this->loggedInAs()); ?></span></a>
| <a href=<?php echo $baseUrl . "Login/logout"?>><?php echo _("Logout")?></a>
</li>