2015-01-28 14:15:16 +01:00
|
|
|
<div class="controls" data-base-target="_main">
|
2014-07-23 12:55:43 +02:00
|
|
|
<?= $tabs; ?>
|
2014-02-25 11:26:11 +01:00
|
|
|
</div>
|
2014-03-08 15:00:23 +01:00
|
|
|
<div class="content" data-base-target="_next">
|
2015-02-12 17:10:38 +01:00
|
|
|
<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>
|
2014-07-23 12:55:43 +02:00
|
|
|
<p>
|
2014-09-02 15:39:21 +02:00
|
|
|
<a href="<?= $this->href('/config/createresource'); ?>">
|
2015-02-12 13:47:00 +01:00
|
|
|
<?= $this->icon('plus', null, array('aria-hidden' => 'true')); ?> <?= $this->translate('Create A New Resource'); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</a>
|
|
|
|
</p>
|
2015-02-12 17:10:38 +01:00
|
|
|
<h2 tabindex="0" id="resource-edit-resource" class="sr-only">
|
|
|
|
<?= t('Edit Existing Resources'); ?>
|
|
|
|
</h2>
|
|
|
|
<table class="action" id="resource-edit-table">
|
2014-07-23 12:55:43 +02:00
|
|
|
<thead>
|
|
|
|
<th><?= $this->translate('Resource'); ?></th>
|
|
|
|
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-02-12 17:10:38 +01:00
|
|
|
<?php foreach ($this->resources as $name): ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
2014-09-02 15:39:21 +02:00
|
|
|
<a href="<?= $this->href('config/editresource', array('resource' => $name)); ?>">
|
2014-11-13 20:08:58 +01:00
|
|
|
<?= $this->icon('edit'); ?> <?= $this->escape($name); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td style="text-align: center">
|
2014-09-02 15:39:21 +02:00
|
|
|
<a href="<?= $this->href('config/removeresource', array('resource' => $name)); ?>">
|
2014-11-17 17:06:27 +01:00
|
|
|
<?= $this->icon('cancel'); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-02-12 17:10:38 +01:00
|
|
|
<?php endforeach; ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-11-13 20:08:58 +01:00
|
|
|
</div>
|