shared navigation overview: Display the type of a navigation item
refs #5600
This commit is contained in:
parent
54d08f99e8
commit
99502a77e0
|
@ -89,6 +89,7 @@ class NavigationController extends Controller
|
|||
{
|
||||
$this->assertPermission('config/application/navigation');
|
||||
$this->view->items = Config::app('navigation');
|
||||
$this->view->types = $this->listItemTypes();
|
||||
|
||||
$removeForm = new Form();
|
||||
$removeForm->setUidDisabled();
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<table class="action alternating">
|
||||
<thead>
|
||||
<th><?= $this->translate('Shared Navigation'); ?></th>
|
||||
<th style="width: 10em"><?= $this->translate('Type'); ?></th>
|
||||
<th style="width: 10em"><?= $this->translate('Owner'); ?></th>
|
||||
<th style="width: 5em"><?= $this->translate('Unshare'); ?></th>
|
||||
</thead>
|
||||
|
@ -24,6 +25,9 @@
|
|||
'title' => sprintf($this->translate('Edit shared navigation item %s'), $name)
|
||||
)
|
||||
); ?></td>
|
||||
<td><?= $item->type && isset($types[$item->type])
|
||||
? $this->escape($types[$item->type])
|
||||
: $this->escape($this->translate('Unknown')); ?></td>
|
||||
<td><?= $this->escape($item->owner); ?></td>
|
||||
<td data-base-target="_self"><?= $removeForm->setDefault('name', $name); ?></td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue