shared navigation overview: Do not allow to unshare childs individually

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-18 11:34:00 +02:00
parent 5eb7267b43
commit 37c7952ec7

View File

@ -33,7 +33,20 @@
? $this->escape($types[$item->type])
: $this->escape($this->translate('Unknown')); ?></td>
<td><?= $this->escape($item->owner); ?></td>
<?php if ($item->parent): ?>
<td><?= $this->icon(
'block',
sprintf(
$this->translate(
'This is a child of the navigation item %s. You can'
. ' only unshare this item by unsharing its parent'
),
$item->parent
)
); ?></td>
<?php else: ?>
<td data-base-target="_self"><?= $removeForm->setDefault('name', $name); ?></td>
<?php endif ?>
</tr>
<?php endforeach ?>
</tbody>