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

Commit

Permalink
Give statuses a link in the nav
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbedard committed May 1, 2017
1 parent 9723e66 commit 9faf440
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 6 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ public function registerNavigation()
'permissions' => ['bedard.shop.carts.*'],
'url' => Backend::url('bedard/shop/carts'),
],
'statuses' => [
'icon' => 'icon-tags',
'label' => 'bedard.shop::lang.statuses.plural',
'permissions' => ['bedard.shop.statuses.*'],
'url' => Backend::url('bedard/shop/statuses'),
],
'products' => [
'icon' => 'icon-cubes',
'label' => 'bedard.shop::lang.products.plural',
Expand Down
12 changes: 3 additions & 9 deletions controllers/statuses/_list_toolbar.htm
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
<a
href="<?= Backend::url('bedard/shop/statuses/create') ?>"
class="btn btn-primary oc-icon-plus">
New Status
<?= e(trans('backend::lang.form.create_title', [
'name' => trans('bedard.shop::lang.statuses.singular'),
])); ?>
</a>

<?php if ($this->user->hasAccess('bedard.shop.carts.*')): ?>
<a
href="<?= Backend::url('bedard/shop/carts') ?>"
class="btn btn-default oc-icon-angle-left">
<?= e(trans('bedard.shop::lang.statuses.list.return_to_carts')); ?>
</a>
<?php endif ?>

<button
class="btn btn-default oc-icon-trash-o"
disabled="disabled"
Expand Down

0 comments on commit 9faf440

Please sign in to comment.