MDL-10626 - Change HTML of checkboxes etc., to make it easier to style forms
This commit is contained in:
@@ -102,5 +102,9 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{
|
||||
return 'default';
|
||||
}
|
||||
}
|
||||
function toHtml()
|
||||
{
|
||||
return '<span>' . parent::toHtml() . '</span>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -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.
|
||||
|
||||
@@ -74,5 +74,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{
|
||||
return 'default';
|
||||
}
|
||||
}
|
||||
function toHtml()
|
||||
{
|
||||
return '<span>' . parent::toHtml() . '</span>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user