From d576fee103bc48468835b661acfa0e9d31de1790 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 20 Dec 2020 10:51:09 +0100 Subject: [PATCH] Add field CSS class support for `CheckboxFormField` --- com.woltlab.wcf/templates/__checkboxFormField.tpl | 10 +++++++++- .../files/acp/templates/__checkboxFormField.tpl | 10 +++++++++- .../form/builder/field/CheckboxFormField.class.php | 4 +++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/com.woltlab.wcf/templates/__checkboxFormField.tpl b/com.woltlab.wcf/templates/__checkboxFormField.tpl index af2e22d073..c9348455f5 100644 --- a/com.woltlab.wcf/templates/__checkboxFormField.tpl +++ b/com.woltlab.wcf/templates/__checkboxFormField.tpl @@ -2,7 +2,15 @@
diff --git a/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl b/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl index af2e22d073..c9348455f5 100644 --- a/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__checkboxFormField.tpl @@ -2,7 +2,15 @@
diff --git a/wcfsetup/install/files/lib/system/form/builder/field/CheckboxFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/CheckboxFormField.class.php index 7df2a5b09e..6e541b716b 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/CheckboxFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/CheckboxFormField.class.php @@ -11,7 +11,9 @@ use wcf\system\WCF; * @package WoltLabSuite\Core\System\Form\Builder\Field * @since 5.3 */ -class CheckboxFormField extends BooleanFormField { +class CheckboxFormField extends BooleanFormField implements ICssClassFormField { + use TCssClassFormField; + /** * @inheritDoc */ -- 2.20.1