mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
parent
97ff1f649b
commit
1262bad59e
@ -1,59 +1,78 @@
|
|||||||
<?php if (! $this->compact): ?>
|
<?php if (! $this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs; ?>
|
<?= $this->tabs ?>
|
||||||
<?= $this->sortBox; ?>
|
<?= $this->sortBox ?>
|
||||||
<?= $this->limiter; ?>
|
<?= $this->limiter ?>
|
||||||
<?= $this->paginator; ?>
|
<?= $this->paginator ?>
|
||||||
<?= $this->filterEditor; ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content">
|
||||||
<a href="<?= $this->href('navigation/add'); ?>">
|
<?= $this->qlink(
|
||||||
<?= $this->icon('plus'); ?> <?= $this->translate('Create A New Navigation Item'); ?>
|
$this->translate('Create A New Navigation Item') ,
|
||||||
</a>
|
'navigation/add',
|
||||||
|
null,
|
||||||
|
array(
|
||||||
|
'class' => 'button-link',
|
||||||
|
'data-base-target' => '_next',
|
||||||
|
'icon' => 'plus',
|
||||||
|
'title' => $this->translate('Create a new navigation item')
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
<?php if (count($items) === 0): ?>
|
<?php if (count($items) === 0): ?>
|
||||||
<p><?= $this->translate('You did not create any navigation item yet'); ?></p>
|
<p><?= $this->translate('You did not create any navigation item yet.') ?></p>
|
||||||
<?php else: ?>
|
</div>
|
||||||
<table class="action alternating">
|
<?php return; endif ?>
|
||||||
<thead>
|
<table class="action-table listing-table" data-base-target="_next">
|
||||||
<th><?= $this->translate('Navigation'); ?></th>
|
<thead>
|
||||||
<th style="width: 10em"><?= $this->translate('Type'); ?></th>
|
<tr>
|
||||||
<th style="width: 5em"><?= $this->translate('Shared'); ?></th>
|
<th><?= $this->translate('Navigation') ?></th>
|
||||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
<th><?= $this->translate('Type') ?></th>
|
||||||
</thead>
|
<th><?= $this->translate('Shared') ?></th>
|
||||||
<tbody>
|
<th></th>
|
||||||
<?php foreach ($items as $item): ?>
|
</tr>
|
||||||
<tr>
|
</thead>
|
||||||
<td><?= $this->qlink(
|
<tbody>
|
||||||
$item->name,
|
<?php foreach ($items as $item): ?>
|
||||||
'navigation/edit',
|
<tr>
|
||||||
array(
|
<td>
|
||||||
'name' => $item->name,
|
<?= $this->qlink(
|
||||||
'type' => $item->type
|
$item->name,
|
||||||
),
|
'navigation/edit',
|
||||||
array(
|
array(
|
||||||
'title' => sprintf($this->translate('Edit navigation item %s'), $item->name)
|
'name' => $item->name,
|
||||||
)
|
'type' => $item->type
|
||||||
); ?></td>
|
),
|
||||||
<td><?= $item->type && isset($types[$item->type])
|
array(
|
||||||
? $this->escape($types[$item->type])
|
'title' => sprintf($this->translate('Edit navigation item %s'), $item->name)
|
||||||
: $this->escape($this->translate('Unknown')); ?></td>
|
)
|
||||||
<td><?= $item->owner ? $this->translate('Yes') : $this->translate('No'); ?></td>
|
) ?>
|
||||||
<td><?= $this->qlink(
|
</td>
|
||||||
'',
|
<td>
|
||||||
'navigation/remove',
|
<?= $item->type && isset($types[$item->type])
|
||||||
array(
|
? $this->escape($types[$item->type])
|
||||||
'name' => $item->name,
|
: $this->escape($this->translate('Unknown')) ?>
|
||||||
'type' => $item->type
|
</td>
|
||||||
),
|
<td class="icon-col">
|
||||||
array(
|
<?= $item->owner ? $this->translate('Yes') : $this->translate('No') ?>
|
||||||
'icon' => 'trash',
|
</td>
|
||||||
'title' => sprintf($this->translate('Remove navigation item %s'), $item->name)
|
<td class="icon-col text-right">
|
||||||
)
|
<?= $this->qlink(
|
||||||
); ?></td>
|
'',
|
||||||
</tr>
|
'navigation/remove',
|
||||||
<?php endforeach ?>
|
array(
|
||||||
</tbody>
|
'name' => $item->name,
|
||||||
|
'type' => $item->type
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'class' => 'action-link',
|
||||||
|
'icon' => 'cancel',
|
||||||
|
'title' => sprintf($this->translate('Remove navigation item %s'), $item->name)
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php endif ?>
|
</div>
|
||||||
</div>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user