MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms

This commit is contained in:
tjhunt
2007-07-27 11:05:34 +00:00
parent a4bcb27f0e
commit a2cd1ed6ff
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -102,5 +102,9 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{
return 'default';
}
}
function toHtml()
{
return '<span>' . parent::toHtml() . '</span>';
}
}
?>
+4
View 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.
+4
View File
@@ -74,5 +74,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{
return 'default';
}
}
function toHtml()
{
return '<span>' . parent::toHtml() . '</span>';
}
}
?>