47 lines
1.8 KiB
PHTML
47 lines
1.8 KiB
PHTML
|
<?php
|
||
|
?>
|
||
|
<div class="controls">
|
||
|
<?= $this->tabs ?>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<h1><?= t('Dashboard Settings'); ?></h1>
|
||
|
|
||
|
<table class="avp" data-base-target="_next">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<strong><?= t('Component Name') ?></strong>
|
||
|
</th>
|
||
|
<th>
|
||
|
<strong><?= t('Url') ?></strong>
|
||
|
</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>
|
||
|
</tr>
|
||
|
<?php foreach ($pane->getComponents() as $component): ?>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="<?= $this->href('dashboard/update-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
|
||
|
<?= $component->getTitle(); ?>
|
||
|
</a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a href="<?= $this->href($component->getUrl()); ?>"><?= $component->getUrl(); ?></a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<a href="<?= $this->href('dashboard/remove', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
|
||
|
<?= $this->icon('remove.png'); ?>
|
||
|
</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
<?php endforeach; ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|