Add tab for update resource

refs #5543
This commit is contained in:
Eric Lippmann 2015-10-01 00:09:33 +02:00
parent 2bc7e4a5ff
commit c2b707697c
2 changed files with 7 additions and 4 deletions

View File

@ -366,8 +366,11 @@ class ConfigController extends Controller
public function editresourceAction()
{
$this->assertPermission('config/application/resources');
$this->getTabs()->add('resources/update', array(
'label' => $this->translate('Update Resource'),
'url' => Url::fromRequest()
))->activate('resources/update');
$form = new ResourceConfigForm();
$form->setTitle($this->translate('Edit Existing Resource'));
$form->setIniConfig(Config::app('resources'));
$form->setRedirectUrl('config/resource');
$form->handleRequest();

View File

@ -1,6 +1,6 @@
<div class="controls">
<?= $this->tabs->showOnlyCloseButton() ?>
<?= $tabs ?>
</div>
<div class="content">
<?= $form; ?>
<?= $form ?>
</div>