69 lines
3.1 KiB
PHTML
69 lines
3.1 KiB
PHTML
<div class="controls">
|
|
<?= $this->tabs ?>
|
|
</div>
|
|
<div class="content">
|
|
<h1><?= t('Dashboard Settings'); ?></h1>
|
|
|
|
<table class="avp action" data-base-target="_next">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 18em;">
|
|
<strong><?= t('Dashlet Name') ?></strong>
|
|
</th>
|
|
<th>
|
|
<strong><?= t('Url') ?></strong>
|
|
</th>
|
|
<th style="width: 1.4em;"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($this->dashboard->getPanes() as $pane): ?>
|
|
<tr style="background-color: #f1f1f1;">
|
|
<th colspan="2" style="text-align: left; padding: 0.5em;">
|
|
<?= $pane->getName(); ?>
|
|
</th>
|
|
<th>
|
|
<?= $this->qlink(
|
|
$this->icon('cancel'),
|
|
'dashboard/remove-pane',
|
|
array('pane' => $pane->getName()),
|
|
array('title' => sprintf($this->translate('Remove pane %s'), $pane->getName())),
|
|
false
|
|
); ?>
|
|
</th>
|
|
</tr>
|
|
<?php $dashlets = $pane->getDashlets(); ?>
|
|
<?php if(empty($dashlets)): ?>
|
|
<tr>
|
|
<td colspan="3">
|
|
<?= $this->translate('No dashlets added to dashboard') ?>.
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<?php foreach ($dashlets as $dashlet): ?>
|
|
<?php if ($dashlet->getDisabled() === true) continue; ?>
|
|
<tr>
|
|
<td>
|
|
<a href="<?= $this->href('dashboard/update-dashlet', array('pane' => $pane->getName(), 'dashlet' => $dashlet->getTitle())); ?>">
|
|
<?= $dashlet->getTitle(); ?>
|
|
</a>
|
|
</td>
|
|
<td style="table-layout: fixed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
|
|
<a href="<?= $this->href($dashlet->getUrl()); ?>"><?= $dashlet->getUrl(); ?></a>
|
|
</td>
|
|
<td>
|
|
<?= $this->qlink(
|
|
$this->icon('cancel'),
|
|
'dashboard/remove-dashlet',
|
|
array('pane' => $pane->getName(), 'dashlet' => $dashlet->getTitle()),
|
|
array('title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getName())),
|
|
false
|
|
); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|