Browse Source

Add data-active-section-type attribute to app-content settings section

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
tags/v29.0.0beta1
Thomas Citharel 5 months ago
parent
commit
c75fbf8a83
No account linked to committer's email address

+ 1
- 0
apps/settings/lib/Controller/CommonSettingsTrait.php View File

@@ -151,6 +151,7 @@ trait CommonSettingsTrait {
if ($activeSection) {
$templateParams['pageTitle'] = $activeSection->getName();
$templateParams['activeSectionId'] = $activeSection->getID();
$templateParams['activeSectionType'] = $type;
}

return new TemplateResponse('settings', 'settings/frame', $templateParams);

+ 1
- 1
apps/settings/templates/settings/frame.php View File

@@ -84,6 +84,6 @@ script('files', 'jquery.fileupload');
</ul>
</nav>
</div>
<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>">
<div id="app-content" data-active-section-id="<?php print_unescaped($_['activeSectionId']) ?>" data-active-section-type="<?php print_unescaped($_['activeSectionType']) ?>">
<?php print_unescaped($_['content']); ?>
</div>

Loading…
Cancel
Save