CMSMain - Added HTML class attribute for styling

+ Added an `action-parameters` class to the BatchActionParameters field so we can style it without using ID selectors
This commit is contained in:
Benjamin Blake 2022-07-06 22:45:50 -06:00
parent 6bd3618f09
commit 35d12228d0

View File

@ -2141,7 +2141,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
foreach ($forms as $urlSegment => $html) { foreach ($forms as $urlSegment => $html) {
$pageHtml .= '<div class="params" id="BatchActionParameters_' . $urlSegment . '" style="display:none">' . $html . '</div>'; $pageHtml .= '<div class="params" id="BatchActionParameters_' . $urlSegment . '" style="display:none">' . $html . '</div>';
} }
return new LiteralField('BatchActionParameters', '<div id="BatchActionParameters" style="display:none">' . $pageHtml . '</div>'); return new LiteralField('BatchActionParameters', '<div id="BatchActionParameters" class="action-parameters" style="display:none">' . $pageHtml . '</div>');
} }
/** /**