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-13 16:10:51 +01:00
|
|
|
<h1 tabindex="-1" id="resource-index">
|
2015-02-12 17:10:38 +01:00
|
|
|
<?= t('Resource Configuration'); ?>
|
|
|
|
</h1>
|
2015-02-13 16:10:51 +01:00
|
|
|
<h2 tabindex="-1" id="resource-new-resource" class="sr-only">
|
2015-02-12 17:10:38 +01:00
|
|
|
<?= 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-16 10:52:42 +01:00
|
|
|
<?= $this->icon('plus'); ?> <?= $this->translate('Create A New Resource'); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</a>
|
|
|
|
</p>
|
2015-02-13 16:10:51 +01:00
|
|
|
<h2 tabindex="-1" id="resource-edit-resource" class="sr-only">
|
2015-02-12 17:10:38 +01:00
|
|
|
<?= 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>
|
2015-02-16 11:02:09 +01:00
|
|
|
<?= $this->qlink(
|
|
|
|
$this->icon('edit') . ' ' . $this->escape($name),
|
|
|
|
'config/editresource',
|
|
|
|
array('resource' => $name),
|
|
|
|
array('title' => sprintf($this->translate('Edit resource %s'), $name)),
|
|
|
|
false
|
|
|
|
); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</td>
|
2015-02-16 11:02:09 +01:00
|
|
|
<td>
|
|
|
|
<center>
|
|
|
|
<?= $this->qlink(
|
|
|
|
$this->icon('cancel'),
|
|
|
|
'config/removeresource',
|
|
|
|
array('resource' => $name),
|
|
|
|
array('title' => sprintf($this->translate('Remove resource %s'), $name)),
|
|
|
|
false
|
|
|
|
); ?>
|
|
|
|
</center>
|
2014-07-23 12:55:43 +02:00
|
|
|
</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>
|