From 917ffbbb345bd3484e65a474234a355eb4fb65ab Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 27 Jan 2025 11:36:45 +1300 Subject: [PATCH] FIX Update HTML markup for bootstrap 5 (#11560) --- src/Forms/GridField/GridFieldDetailForm_ItemRequest.php | 4 ++-- src/Security/PermissionCheckboxSetField.php | 4 ++-- templates/RightLabelledFieldHolder.ss | 2 +- templates/SilverStripe/Forms/CheckboxField_holder.ss | 2 +- templates/SilverStripe/Forms/CheckboxField_holder_small.ss | 2 +- templates/SilverStripe/Forms/CheckboxSetField.ss | 2 +- templates/SilverStripe/Forms/FieldGroup_holder.ss | 4 ++-- templates/SilverStripe/Forms/FormField_holder.ss | 4 ++-- templates/SilverStripe/Forms/FormField_holder_small.ss | 4 ++-- templates/SilverStripe/Forms/GridField/GridFieldEditButton.ss | 2 +- .../Forms/GridField/GridFieldImportButton_Modal.ss | 4 +--- templates/SilverStripe/Forms/GridField/GridFieldViewButton.ss | 2 +- .../Forms/HTMLEditor/HTMLEditorField_Toolbar_viewfile.ss | 2 +- templates/SilverStripe/Forms/LabelField.ss | 2 +- templates/SilverStripe/Forms/OptionsetField.ss | 2 +- templates/SilverStripe/Forms/OptionsetField_holder.ss | 4 ++-- templates/SilverStripe/Forms/SelectionGroup.ss | 2 +- templates/forms/HtmlEditorField_holder_small.ss | 4 ++-- tests/php/ORM/LabelFieldTest.php | 2 +- 19 files changed, 26 insertions(+), 28 deletions(-) diff --git a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php index 34e060412f4..1ff678b2074 100644 --- a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php +++ b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php @@ -352,11 +352,11 @@ protected function getCreateContext() protected function getRightGroupField() { $rightGroup = CompositeField::create()->setName('RightGroup'); - $rightGroup->addExtraClass('ml-auto'); + $rightGroup->addExtraClass('ms-auto'); $rightGroup->setFieldHolderTemplate(get_class($rightGroup) . '_holder_buttongroup'); $previousAndNextGroup = CompositeField::create()->setName('PreviousAndNextGroup'); - $previousAndNextGroup->addExtraClass('btn-group--circular mr-2'); + $previousAndNextGroup->addExtraClass('btn-group--circular me-2'); $previousAndNextGroup->setFieldHolderTemplate(CompositeField::class . '_holder_buttongroup'); $component = $this->gridField->getConfig()->getComponentByType(GridFieldDetailForm::class); diff --git a/src/Security/PermissionCheckboxSetField.php b/src/Security/PermissionCheckboxSetField.php index 7592dc68170..e0dddecd142 100644 --- a/src/Security/PermissionCheckboxSetField.php +++ b/src/Security/PermissionCheckboxSetField.php @@ -253,7 +253,7 @@ public function Field($properties = []) $options .= "
$Field
-