Skip to content

Commit

Permalink
Add tab for update resource
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 30, 2015
1 parent 2bc7e4a commit c2b7076
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion application/controllers/ConfigController.php
Expand Up @@ -366,8 +366,11 @@ public function createresourceAction()
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();
Expand Down
6 changes: 3 additions & 3 deletions application/views/scripts/config/resource/modify.phtml
@@ -1,6 +1,6 @@
<div class="controls">
<?= $this->tabs->showOnlyCloseButton() ?>
<?= $tabs ?>
</div>
<div class="content">
<?= $form; ?>
</div>
<?= $form ?>
</div>

0 comments on commit c2b7076

Please sign in to comment.