56 lines
1.6 KiB
PHTML
56 lines
1.6 KiB
PHTML
<div class="controls" data-base-target="_main">
|
|
<?= $tabs; ?>
|
|
</div>
|
|
<div class="content" data-base-target="_next">
|
|
<h1 tabindex="-1" id="resource-index">
|
|
<?= t('Resource Configuration'); ?>
|
|
</h1>
|
|
<h2 tabindex="-1" id="resource-new-resource" class="sr-only">
|
|
<?= t('Create New Resource'); ?>
|
|
</h2>
|
|
<p>
|
|
<a href="<?= $this->href('/config/createresource'); ?>">
|
|
<?= $this->icon('plus'); ?> <?= $this->translate('Create A New Resource'); ?>
|
|
</a>
|
|
</p>
|
|
<h2 tabindex="-1" id="resource-edit-resource" class="sr-only">
|
|
<?= t('Edit Existing Resources'); ?>
|
|
</h2>
|
|
<table class="action" id="resource-edit-table">
|
|
<thead>
|
|
<th><?= $this->translate('Resource'); ?></th>
|
|
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($this->resources as $name): ?>
|
|
<tr>
|
|
<td>
|
|
<?= $this->qlink(
|
|
$name,
|
|
'config/editresource',
|
|
array('resource' => $name),
|
|
array(
|
|
'icon' => 'edit',
|
|
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
|
)
|
|
); ?>
|
|
</td>
|
|
<td>
|
|
<center>
|
|
<?= $this->qlink(
|
|
'',
|
|
'config/removeresource',
|
|
array('resource' => $name),
|
|
array(
|
|
'icon' => 'trash',
|
|
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
|
)
|
|
); ?>
|
|
</center>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|