63 lines
1.8 KiB
PHTML
63 lines
1.8 KiB
PHTML
<div class="controls" data-base-target="_main">
|
|
<?= $tabs; ?>
|
|
</div>
|
|
<div class="content" data-base-target="_next">
|
|
<h1 tabindex="0" id="resource-index">
|
|
<?= t('Resource Configuration'); ?>
|
|
</h1>
|
|
<div class="skip-links skip-links-inline">
|
|
<nav>
|
|
<ul>
|
|
<li>
|
|
<a tabindex="0" href="#resource-edit-table">
|
|
<?= t('Skip To Existing Resources'); ?>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<h2 tabindex="0" 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="0" 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(
|
|
$this->icon('edit') . ' ' . $this->escape($name),
|
|
'config/editresource',
|
|
array('resource' => $name),
|
|
array('title' => sprintf($this->translate('Edit resource %s'), $name)),
|
|
false
|
|
); ?>
|
|
</td>
|
|
<td>
|
|
<center>
|
|
<?= $this->qlink(
|
|
$this->icon('cancel'),
|
|
'config/removeresource',
|
|
array('resource' => $name),
|
|
array('title' => sprintf($this->translate('Remove resource %s'), $name)),
|
|
false
|
|
); ?>
|
|
</center>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|