2014-11-18 03:50:10 -05:00
|
|
|
<div class="controls">
|
|
|
|
|
<?= $this->tabs ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<h1><?= t('Dashboard Settings'); ?></h1>
|
|
|
|
|
|
2014-11-20 06:45:23 -05:00
|
|
|
<table class="avp action" data-base-target="_next">
|
2014-11-18 03:50:10 -05:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2023-07-18 04:24:39 -04:00
|
|
|
<th>
|
2014-11-20 05:36:04 -05:00
|
|
|
<strong><?= t('Dashlet Name') ?></strong>
|
2014-11-18 03:50:10 -05:00
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<strong><?= t('Url') ?></strong>
|
|
|
|
|
</th>
|
2023-07-18 04:24:39 -04:00
|
|
|
<th class="icon-col"> </th>
|
2014-11-18 03:50:10 -05:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php foreach ($this->dashboard->getPanes() as $pane): ?>
|
2016-04-13 06:27:25 -04:00
|
|
|
<?php if ($pane->getDisabled()) continue; ?>
|
2019-08-12 05:17:12 -04:00
|
|
|
<tr>
|
2023-07-18 04:24:39 -04:00
|
|
|
<th colspan="2">
|
2018-04-06 05:10:42 -04:00
|
|
|
<?php if ($pane->isUserWidget()): ?>
|
|
|
|
|
<?= $this->qlink(
|
|
|
|
|
$pane->getName(),
|
|
|
|
|
'dashboard/rename-pane',
|
|
|
|
|
array('pane' => $pane->getName()),
|
|
|
|
|
array('title' => sprintf($this->translate('Edit pane %s'), $pane->getName()))
|
|
|
|
|
) ?>
|
|
|
|
|
<?php else: ?>
|
2016-02-23 08:00:07 -05:00
|
|
|
<?= $this->escape($pane->getName()) ?>
|
2018-04-06 05:10:42 -04:00
|
|
|
<?php endif ?>
|
2014-11-18 03:50:10 -05:00
|
|
|
</th>
|
2014-11-18 10:28:04 -05:00
|
|
|
<th>
|
2015-02-16 05:02:09 -05:00
|
|
|
<?= $this->qlink(
|
2015-02-24 05:35:25 -05:00
|
|
|
'',
|
2015-02-16 05:02:09 -05:00
|
|
|
'dashboard/remove-pane',
|
|
|
|
|
array('pane' => $pane->getName()),
|
2015-02-24 05:35:25 -05:00
|
|
|
array(
|
2026-03-26 11:08:34 -04:00
|
|
|
'icon' => 'cancel',
|
|
|
|
|
'class' => 'action-link',
|
2015-02-24 05:35:25 -05:00
|
|
|
'title' => sprintf($this->translate('Remove pane %s'), $pane->getName())
|
|
|
|
|
)
|
2015-02-16 05:02:09 -05:00
|
|
|
); ?>
|
2014-11-18 10:28:04 -05:00
|
|
|
</th>
|
2014-11-18 03:50:10 -05:00
|
|
|
</tr>
|
2014-11-20 06:08:50 -05:00
|
|
|
<?php $dashlets = $pane->getDashlets(); ?>
|
|
|
|
|
<?php if(empty($dashlets)): ?>
|
2014-11-18 03:50:10 -05:00
|
|
|
<tr>
|
2014-11-18 06:51:28 -05:00
|
|
|
<td colspan="3">
|
2014-11-20 05:36:04 -05:00
|
|
|
<?= $this->translate('No dashlets added to dashboard') ?>.
|
2014-11-18 03:50:10 -05:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
2014-11-18 06:51:28 -05:00
|
|
|
<?php else: ?>
|
2014-11-20 06:08:50 -05:00
|
|
|
<?php foreach ($dashlets as $dashlet): ?>
|
2016-04-13 06:27:25 -04:00
|
|
|
<?php if ($dashlet->getDisabled()) continue; ?>
|
2014-11-18 06:51:28 -05:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
2015-02-23 11:20:26 -05:00
|
|
|
<?= $this->qlink(
|
|
|
|
|
$dashlet->getTitle(),
|
|
|
|
|
'dashboard/update-dashlet',
|
2019-06-26 09:46:06 -04:00
|
|
|
array('pane' => $pane->getName(), 'dashlet' => $dashlet->getName()),
|
2015-02-23 11:20:26 -05:00
|
|
|
array('title' => sprintf($this->translate('Edit dashlet %s'), $dashlet->getTitle()))
|
|
|
|
|
); ?>
|
2014-11-18 06:51:28 -05:00
|
|
|
</td>
|
2023-07-18 04:24:39 -04:00
|
|
|
<td>
|
2015-02-23 11:20:26 -05:00
|
|
|
<?= $this->qlink(
|
2015-04-07 07:05:12 -04:00
|
|
|
$dashlet->getUrl()->getRelativeUrl(),
|
|
|
|
|
$dashlet->getUrl()->getRelativeUrl(),
|
2015-02-23 11:20:26 -05:00
|
|
|
null,
|
|
|
|
|
array('title' => sprintf($this->translate('Show dashlet %s'), $dashlet->getTitle()))
|
|
|
|
|
); ?>
|
2014-11-18 06:51:28 -05:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2015-02-16 05:02:09 -05:00
|
|
|
<?= $this->qlink(
|
2015-02-24 05:35:25 -05:00
|
|
|
'',
|
2015-02-16 05:02:09 -05:00
|
|
|
'dashboard/remove-dashlet',
|
2019-06-26 09:46:06 -04:00
|
|
|
array('pane' => $pane->getName(), 'dashlet' => $dashlet->getName()),
|
2015-02-24 05:35:25 -05:00
|
|
|
array(
|
2026-03-26 11:08:34 -04:00
|
|
|
'icon' => 'cancel',
|
|
|
|
|
'class' => 'action-link',
|
2019-06-26 09:46:06 -04:00
|
|
|
'title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getTitle())
|
2015-02-24 05:35:25 -05:00
|
|
|
)
|
2015-02-16 05:02:09 -05:00
|
|
|
); ?>
|
2014-11-18 06:51:28 -05:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php endif; ?>
|
2014-11-18 03:50:10 -05:00
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2015-04-07 07:05:12 -04:00
|
|
|
</div>
|