mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3564 Use CollapsibleSectionState for help
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
use Combodo\iTop\Application\UI\Base\Component\Alert\AlertFactory;
|
use Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection;
|
||||||
|
use Combodo\iTop\Application\UI\Base\Component\Html\Html;
|
||||||
use Combodo\iTop\Application\UI\Base\Layout\PageContent\PageContentFactory;
|
use Combodo\iTop\Application\UI\Base\Layout\PageContent\PageContentFactory;
|
||||||
|
|
||||||
require_once('../approot.inc.php');
|
require_once('../approot.inc.php');
|
||||||
@@ -32,14 +33,19 @@ ApplicationMenu::CheckMenuIdEnabled("NotificationsMenu");
|
|||||||
// Main program
|
// Main program
|
||||||
//
|
//
|
||||||
$oP = new iTopWebPage(Dict::S('Menu:NotificationsMenu+'));
|
$oP = new iTopWebPage(Dict::S('Menu:NotificationsMenu+'));
|
||||||
$oP->SetBreadCrumbEntry('ui-tool-notifications', Dict::S('Menu:NotificationsMenu'), Dict::S('Menu:NotificationsMenu+'), '', 'fas fa-bell', iTopWebPage::ENUM_BREADCRUMB_ENTRY_ICON_TYPE_CSS_CLASSES);
|
$oP->SetBreadCrumbEntry('ui-tool-notifications', Dict::S('Menu:NotificationsMenu'), Dict::S('Menu:NotificationsMenu+'), '', 'fas fa-bell',
|
||||||
|
iTopWebPage::ENUM_BREADCRUMB_ENTRY_ICON_TYPE_CSS_CLASSES);
|
||||||
|
|
||||||
$oPageContentLayout = PageContentFactory::MakeStandardEmpty();
|
$oPageContentLayout = PageContentFactory::MakeStandardEmpty();
|
||||||
$oP->SetContentLayout($oPageContentLayout);
|
$oP->SetContentLayout($oPageContentLayout);
|
||||||
|
|
||||||
$sAlertTitle = Dict::S('UI:NotificationsMenu:Title');
|
$sAlertTitle = Dict::S('UI:NotificationsMenu:Title');
|
||||||
$sAlertContent = Dict::S('UI:NotificationsMenu:HelpContent');
|
$sAlertContent = Dict::S('UI:NotificationsMenu:HelpContent');
|
||||||
$oPageContentLayout->AddMainBlock(AlertFactory::MakeForInformation($sAlertTitle, $sAlertContent));
|
$oConfigurationHelp = new CollapsibleSection($sAlertTitle, [new Html($sAlertContent)]);
|
||||||
|
$oConfigurationHelp
|
||||||
|
->SetOpenedByDefault(true)
|
||||||
|
->EnableSaveCollapsibleState('notifications-home');
|
||||||
|
$oPageContentLayout->AddMainBlock($oConfigurationHelp);
|
||||||
|
|
||||||
$oP->AddTabContainer('Tabs_0');
|
$oP->AddTabContainer('Tabs_0');
|
||||||
$oP->SetCurrentTabContainer('Tabs_0');
|
$oP->SetCurrentTabContainer('Tabs_0');
|
||||||
|
|||||||
Reference in New Issue
Block a user