From a2cd1ed6ff1cb0c84a58f7c9abbda2af781e9905 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 27 Jul 2007 11:05:34 +0000 Subject: [PATCH] MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms --- lib/form/advcheckbox.php | 4 ++++ lib/form/checkbox.php | 4 ++++ lib/form/radio.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/lib/form/advcheckbox.php b/lib/form/advcheckbox.php index 43cd2d3a68..63f46357fd 100644 --- a/lib/form/advcheckbox.php +++ b/lib/form/advcheckbox.php @@ -102,5 +102,9 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{ return 'default'; } } + function toHtml() + { + return '' . parent::toHtml() . ''; + } } ?> \ No newline at end of file diff --git a/lib/form/checkbox.php b/lib/form/checkbox.php index 294cd32284..2f4442645b 100644 --- a/lib/form/checkbox.php +++ b/lib/form/checkbox.php @@ -99,6 +99,10 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox{ } return true; } // end func onQuickFormEvent + function toHtml() + { + return '' . parent::toHtml() . ''; + } /** * Slightly different container template when frozen. Don't want to use a label tag * with a for attribute in that case for the element label but instead use a div. diff --git a/lib/form/radio.php b/lib/form/radio.php index 7b2ce8ebf6..cdd3fabbda 100644 --- a/lib/form/radio.php +++ b/lib/form/radio.php @@ -74,5 +74,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{ return 'default'; } } + function toHtml() + { + return '' . parent::toHtml() . ''; + } } ?> \ No newline at end of file -- 2.39.5