]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms
authortjhunt <tjhunt>
Fri, 27 Jul 2007 11:05:34 +0000 (11:05 +0000)
committertjhunt <tjhunt>
Fri, 27 Jul 2007 11:05:34 +0000 (11:05 +0000)
lib/form/advcheckbox.php
lib/form/checkbox.php
lib/form/radio.php

index 43cd2d3a6839d0fa6808783e08358da5616d857e..63f46357fd4917ee9a88c0d3ecba9a68e0c856eb 100644 (file)
@@ -102,5 +102,9 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{
             return 'default';
         }
     }
+    function toHtml()
+    {
+        return '<span>' . parent::toHtml() . '</span>';
+    }
 }
 ?>
\ No newline at end of file
index 294cd32284645fbd8d5e8a9f11791afa0afde7d2..2f4442645b1c6e8c51dd5e93100781d6e99babf7 100644 (file)
@@ -99,6 +99,10 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox{
         }
         return true;
     } // end func onQuickFormEvent
+    function toHtml()
+    {
+        return '<span>' . parent::toHtml() . '</span>';
+    }
     /**
      * 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.
index 7b2ce8ebf6b3413ce33f87f901da1a8dc472cfa7..cdd3fabbdaffb2413e5fece9d263c9bacd6a128c 100644 (file)
@@ -74,5 +74,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{
             return 'default';
         }
     }
+    function toHtml()
+    {
+        return '<span>' . parent::toHtml() . '</span>';
+    }
 }
 ?>
\ No newline at end of file