Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Commit

Permalink
Menu Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
rossaddison committed Apr 25, 2020
1 parent 99a2d63 commit bd98139
Show file tree
Hide file tree
Showing 65 changed files with 432 additions and 617 deletions.
13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea3054f98366.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30551e5ff9.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea305521c532.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea305fd04a75.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea305fe0ac99.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea305ff95103.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea305ffbb0e9.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30602798c8.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea30602c582f.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30604ef25c.data

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/runtime/debug/5ea306051e5be.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea3060564f5b.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30607dd77a.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea306083b344.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30934d3191.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea3093501ce3.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea30970a9cee.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea30970e22a1.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea309764eed9.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea30976a2ef8.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea3097903200.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea30979497de.data

This file was deleted.

212 changes: 0 additions & 212 deletions frontend/runtime/debug/5ea3273b8389b.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea3273be086e.data

This file was deleted.

89 changes: 0 additions & 89 deletions frontend/runtime/debug/5ea32bd2947bf.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea32f362fefb.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea32f3664cde.data

This file was deleted.

72 changes: 0 additions & 72 deletions frontend/runtime/debug/5ea32f52f23f9.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea32f5339809.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea32f54de406.data

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/runtime/debug/5ea32f5531ea8.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea32f6d699bf.data

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/runtime/debug/5ea32f76a7b18.data

This file was deleted.

72 changes: 72 additions & 0 deletions frontend/runtime/debug/5ea4818d09596.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea4818f32cba.data

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions frontend/runtime/debug/5ea4870002dc4.data

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions frontend/runtime/debug/5ea487245c29f.data

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions frontend/runtime/debug/5ea48781d6969.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea487a5218bd.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea487a56c791.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea487af7dda5.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea487b00a94d.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea487bb78048.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea487bc02827.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea487cb15025.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea487cb5a1df.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48b1ee196d.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48b1f381e4.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48b89bb503.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48b89e16cc.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48d172a4ba.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48d1775a27.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48ef0704b3.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48ef09ffa9.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48f3a42113.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48f3a847b3.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea48f6cc7bc0.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea48f6d35f3f.data

Large diffs are not rendered by default.

72 changes: 72 additions & 0 deletions frontend/runtime/debug/5ea49f4f2925a.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea49f4f5ceaa.data

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions frontend/runtime/debug/5ea49f979f882.data

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions frontend/runtime/debug/5ea49f97cd83e.data

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/runtime/debug/index.data

Large diffs are not rendered by default.

28 changes: 24 additions & 4 deletions frontend/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if ((Yii::$app->session['sub'] === 1) || (Yii::$app->user->can('Subscription Free Privilege')))
{
$menuItems = [
['label' => Html::button(Yii::t('app','Secure'),['class'=>'btn btn-success btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
['label' => Html::button(Yii::t('app','Settings'),['class'=>'btn btn-info btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
['label' => Html::button(Yii::t('app','Company'),['class'=>'btn btn-info btn-lg']), 'url' => ['/company/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Texting - Messages'),['class'=>'btn btn-info btn-lg']), 'url' => ['/messaging/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
Expand All @@ -73,23 +73,40 @@
['label' => Html::button(Yii::t('app','Tax Codes'),['class'=>'btn btn-info btn-lg','title'=>Yii::t('app','Used to categorize revenue and expenses. These codes are NOT used in any VAT calculations. In fact there are no vat calculations therefore figures that you enter eg. under Daily Cleans or House must be inclusive of vat.'),'data-toggle'=>'tooltip']), 'url' => ['/tax/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Images / Files Upload'),['class'=>'btn btn-info btn-lg','datatoggle'=>'tooltip', 'title'=> $tooltipcarousal]), 'url' => ['/carousal/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Instruction'),['class'=>'btn btn-info btn-lg']), 'url' => ['/instruction/index'],'visible'=>Yii::$app->user->can('Manage Admin')],

],
],
['label' => Html::button(Yii::t('app','Revenue'),['class'=>'btn btn-success btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [

['label' => Html::button(Yii::t('app','Postcode'),['class'=>'btn btn-success btn-lg']), 'url' => ['/productcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' '.Html::button(Yii::t('app','Street'),['class'=>'btn btn-success btn-lg']), 'url' => ['/productsubcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' ' .' '.Html::button(Yii::t('app','Quick Build'),['class'=>'btn btn-danger btn-lg']), 'url' => ['/easy/initialize'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' ' .' '.' ' .' '.Html::button(Yii::t('app','House'),['class'=>'btn btn-success btn-lg']), 'url' => ['/product/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Acknowledge Mandates (').$check_howmany_mandates.')',['class'=>'btn btn-danger btn-lg']), 'url' => ['/product/acknowledge_mandates'],'visible'=>($check_howmany_mandates > 0)],
['label' => ' ' .' '.' ' .' '.' ' .' '.Html::button(Yii::t('app','Daily Cleans'),['class'=>'btn btn-success btn-lg']), 'url' => ['/salesorderheader/index'],'visible'=>Yii::$app->user->can('Manage Basic')],

],
],
['label' => Html::button(Yii::t('app','Expenses'),['class'=>'btn btn-warning btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [

['label' => Html::button(Yii::t('app','Costcode'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' '.Html::button(Yii::t('app','Costsubcode'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costsubcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' '.' ' .' '.Html::button(Yii::t('app','Cost'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/cost/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => ' ' .' '.' ' .' '.' ' .' '.Html::button(Yii::t('app','Daily Costs'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costheader/index'],'visible'=>Yii::$app->user->can('Manage Admin')],

],
],
['label' => Html::button(Yii::t('app','Database'),['class'=>'btn btn-danger btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
['label' => Html::button(Yii::t('app','Import Houses'),['class'=>'btn btn-danger btn-lg']), 'url' => ['/importhouses/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
//the admin role does not inherit the support role. The installer controller under rules rejects those that do not hava the support role so admin is rejected. Only managers db1 upwards will get this ability.
['label' => Html::button(Yii::t('app','Install database'),['class'=>'btn btn-danger btn-lg','title'=>Yii::t('app','Non-administrators ie. managers can install their own database once they have logged in.'),'data-toggle'=>'tooltip']), 'url' => ['/installer/installer/'],'visible'=>Yii::$app->user->can('Manage Admin') && Yii::$app->user->can('Migrate Works Database')],
['label' => Html::button(Yii::t('app','Backup database'),['class'=>'btn btn-danger btn-lg','title'=>Yii::t('app','Users with the Backup database permission can backup their own database.'),'data-toggle'=>'tooltip']), 'url' => ['/backuper/backuper/'],'visible'=>Yii::$app->user->can('Manage Admin') && Yii::$app->user->can('Backup Database') ],
],
],
['label' => Html::button(Yii::t('app','Admin'),['class'=>'btn btn-success btn-lg']),'url'=> '', 'visible'=>Yii::$app->user->can('manageRoles'),
['label' => Html::button(Yii::t('app','Admin'),['class'=>'btn btn-info btn-lg']),'url'=> '', 'visible'=>Yii::$app->user->can('manageRoles'),
'items' => [
['label' => ' ' .' '.Html::button(Yii::t('app','Role Management (Admin)'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/role'],'visible'=>Yii::$app->user->can('manageRoles')],
['label' => ' ' .' '.' '.' '.Html::button(Yii::t('app','Update Admin'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/role/update/admin'],'visible'=>Yii::$app->user->can('manageRoles')],
Expand All @@ -103,7 +120,7 @@
['label' => ' ' .' '.Html::button(Yii::t('app','Signup a User'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/signup'],'visible'=>Yii::$app->user->can('manageRoles')],
],
],
['label' => Html::button(Yii::t('app','Quick Note'),['class'=>'btn btn-danger btn-lg']),'url'=> '/quicknote/create', 'visible'=>Yii::$app->user->can('Manage Basic'),
['label' => Html::button(Yii::t('app','Quick Note'),['class'=>'btn btn-primary btn-lg']),'url'=> '/quicknote/create', 'visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
],
],
Expand Down Expand Up @@ -154,7 +171,7 @@
. Html::beginForm(['/libra/logout'], 'post')
. Html::submitButton(
Yii::t('app','Logout (') . Yii::$app->user->identity->attributes['name'].')',
['class' => 'btn btn-success logout btn-lg']
['class' => 'btn btn-secondary logout btn-lg']
)
. Html::endForm()
. '</li>';
Expand All @@ -165,7 +182,10 @@
//'options' => ['class' => 'navpills'],
'items' => $menuItems,
]);


NavBar::end();

?>
<div class="container-fluid" >

Expand Down
27 changes: 22 additions & 5 deletions frontend/views/layouts/no_subscription_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,49 @@
} // Yii::$app->user->can('Manage Admin'))

$menuItems = [
['label' => Html::button(Yii::t('app','Secure'),['class'=>'btn btn-success btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
['label' => Html::button(Yii::t('app','Settings'),['class'=>'btn btn-info btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
['label' => Html::button(Yii::t('app','Company'),['class'=>'btn btn-info btn-lg']), 'url' => ['/company/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Texting - Messages'),['class'=>'btn btn-info']), 'url' => ['/messaging/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Message Log'), ['class'=>'btn btn-info']),'url' => ['/messagelog/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Texting - Messages'),['class'=>'btn btn-info btn-lg']), 'url' => ['/messaging/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Message Log'), ['class'=>'btn btn-info btn-lg']),'url' => ['/messagelog/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Employee'),['class'=>'btn btn-info btn-lg']), 'url' => ['/employee/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Tax Codes'),['class'=>'btn btn-info btn-lg','title'=>Yii::t('app','Used to categorize revenue and expenses. These codes are NOT used in any VAT calculations. In fact there are no vat calculations therefore figures that you enter eg. under Daily Cleans or House must be inclusive of vat.'),'data-toggle'=>'tooltip']), 'url' => ['/tax/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Images / Files Upload'),['class'=>'btn btn-info btn-lg','datatoggle'=>'tooltip', 'title'=> $tooltipcarousal]), 'url' => ['/carousal/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Instruction'),['class'=>'btn btn-info btn-lg']), 'url' => ['/instruction/index'],'visible'=>Yii::$app->user->can('Manage Admin')],

],
],
['label' => Html::button(Yii::t('app','Revenue'),['class'=>'btn btn-success btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [

['label' => Html::button(Yii::t('app','Postcode'),['class'=>'btn btn-success btn-lg']), 'url' => ['/productcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Street'),['class'=>'btn btn-success btn-lg']), 'url' => ['/productsubcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Quick Build'),['class'=>'btn btn-danger btn-lg']), 'url' => ['/easy/initialize'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','House'),['class'=>'btn btn-success btn-lg']), 'url' => ['/product/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => Html::button(Yii::t('app','Acknowledge Mandates (').$check_howmany_mandates.')',['class'=>'btn btn-danger btn-lg']), 'url' => ['/product/acknowledge_mandates'],'visible'=>($check_howmany_mandates > 0)],
['label' => '&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Daily Cleans'),['class'=>'btn btn-success btn-lg']), 'url' => ['/salesorderheader/index'],'visible'=>Yii::$app->user->can('Manage Basic')],

],
],
['label' => Html::button(Yii::t('app','Expenses'),['class'=>'btn btn-warning btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [

['label' => Html::button(Yii::t('app','Costcode'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Costsubcode'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costsubcategory/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Cost'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/cost/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
['label' => '&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.'&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Daily Costs'),['class'=>'btn btn-warning btn-lg']), 'url' => ['/costheader/index'],'visible'=>Yii::$app->user->can('Manage Admin')],

],
],
['label' => Html::button(Yii::t('app','Database'),['class'=>'btn btn-danger btn-lg']),'url'=> '','visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
['label' => Html::button(Yii::t('app','Import Houses'),['class'=>'btn btn-danger btn-lg']), 'url' => ['/importhouses/index'],'visible'=>Yii::$app->user->can('Manage Admin')],
//the admin role does not inherit the support role. The installer controller under rules rejects those that do not hava the support role so admin is rejected. Only managers db1 upwards will get this ability.
['label' => Html::button(Yii::t('app','Install database'),['class'=>'btn btn-danger btn-lg','title'=>Yii::t('app','Non-administrators ie. managers can install their own database once they have logged in.'),'data-toggle'=>'tooltip']), 'url' => ['/installer/installer/'],'visible'=>Yii::$app->user->can('Manage Admin') && Yii::$app->user->can('Migrate Works Database')],
['label' => Html::button(Yii::t('app','Backup database'),['class'=>'btn btn-danger btn-lg','title'=>Yii::t('app','Users with the Backup database permission can backup their own database.'),'data-toggle'=>'tooltip']), 'url' => ['/backuper/backuper/'],'visible'=>Yii::$app->user->can('Manage Admin') && Yii::$app->user->can('Backup Database') ],
],
],
['label' => Html::button(Yii::t('app','Admin'),['class'=>'btn btn-success btn-lg']),'url'=> '', 'visible'=>Yii::$app->user->can('manageRoles'),
['label' => Html::button(Yii::t('app','Admin'),['class'=>'btn btn-info btn-lg']),'url'=> '', 'visible'=>Yii::$app->user->can('manageRoles'),
'items' => [
['label' => '&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Role Management (Admin)'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/role'],'visible'=>Yii::$app->user->can('manageRoles')],
['label' => '&nbsp;' .'&nbsp;'.'&nbsp;'.'&nbsp;'.Html::button(Yii::t('app','Update Admin'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/role/update/admin'],'visible'=>Yii::$app->user->can('manageRoles')],
Expand All @@ -103,7 +120,7 @@
['label' => '&nbsp;' .'&nbsp;'.Html::button(Yii::t('app','Signup a User'),['class'=>'btn btn-info btn-lg']), 'url' => ['/libra/signup'],'visible'=>Yii::$app->user->can('manageRoles')],
],
],
['label' => Html::button(Yii::t('app','Quick Note'),['class'=>'btn btn-danger btn-lg']),'url'=> '/quicknote/create', 'visible'=>Yii::$app->user->can('Manage Basic'),
['label' => Html::button(Yii::t('app','Quick Note'),['class'=>'btn btn-primary btn-lg']),'url'=> '/quicknote/create', 'visible'=>Yii::$app->user->can('Manage Basic'),
'items' => [
],
],
Expand Down

0 comments on commit bd98139

Please sign in to comment.