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

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-01-05 09:45:50 +01:00
parent 7502c19ddd
commit c75fbf8a83
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 1 deletions

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);

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>