From c2b707697c67354b7629b0f2129aa62bf84ecd6c Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 1 Oct 2015 00:09:33 +0200 Subject: [PATCH] Add tab for update resource refs #5543 --- application/controllers/ConfigController.php | 5 ++++- application/views/scripts/config/resource/modify.phtml | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index 6bbb113a9..511bf98e2 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -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(); diff --git a/application/views/scripts/config/resource/modify.phtml b/application/views/scripts/config/resource/modify.phtml index a53f51721..13a8ed9ed 100644 --- a/application/views/scripts/config/resource/modify.phtml +++ b/application/views/scripts/config/resource/modify.phtml @@ -1,6 +1,6 @@
- tabs->showOnlyCloseButton() ?> +
- -
\ No newline at end of file + +