Skip to content

Commit

Permalink
[TASK] Move help button of access module to the toolbar
Browse files Browse the repository at this point in the history
The help button belongs to the toolbar and not within the
content area.

Resolves: #93416
Releases: master
Change-Id: Ie28f3f3fcedc53d4addbfcff8bd83576be8a4200
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67634
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Richard Haeser <richard@richardhaeser.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Richard Haeser <richard@richardhaeser.com>
  • Loading branch information
georgringer authored and haassie committed Feb 3, 2021
1 parent 1dc8b12 commit 5bdd303
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -177,6 +177,12 @@ protected function registerDocHeaderButtons()
->setDisplayName($this->getShortcutTitle())
->setArguments(['id' => (int)$this->id]);
$buttonBar->addButton($shortcutButton);

$helpButton = $buttonBar->makeHelpButton()
->setModuleName('xMOD_csh_corebe')
->setFieldName('perm_module');

$buttonBar->addButton($helpButton);
}

/**
Expand Down Expand Up @@ -240,9 +246,6 @@ public function indexAction()
}
$tree->getTree($this->id, $this->depth);
$this->view->assign('viewTree', $tree->tree);

// CSH for permissions setting
$this->view->assign('cshItem', BackendUtility::cshItem('xMOD_csh_corebe', 'perm_module', '', '<span class="btn btn-default btn-sm">|</span>'));
}

/**
Expand Down
Expand Up @@ -138,8 +138,6 @@ <h1><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_pe
</div>
</div>

<f:format.raw>{cshItem}</f:format.raw>

<h3><f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:Legend" />:</h3>
<div class="access-legend">
<table>
Expand Down

0 comments on commit 5bdd303

Please sign in to comment.