From: urs_hunkler Date: Fri, 3 Aug 2007 13:28:03 +0000 (+0000) Subject: added spaces before the divs too for req and adv icon alignment. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c02345e39898c6bd632120bc346e8620c6316b41;p=moodle.git added spaces before the divs too for req and adv icon alignment. added ftoggler class to the labels and fcontainer div within the fieldset to be able to toggle the fieldsets open and collapsed with a JS framework. --- diff --git a/lib/formslib.php b/lib/formslib.php index d4563aa3e9..c91ea29d7b 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1442,14 +1442,14 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{ * @var string * @access private */ - var $_openHiddenFieldsetTemplate = "\n\t
"; + var $_openHiddenFieldsetTemplate = "\n\t
"; /** * Header Template string * @var string * @access private */ var $_headerTemplate = - "\n\t\t{header}\n\t\t
{advancedimg}{button}
\n\t\t"; + "\n\t\t{header}\n\t\t
{advancedimg}{button}
\n\t\t"; /** * Template used when opening a fieldset @@ -1463,7 +1463,7 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{ * @var string * @access private */ - var $_closeFieldsetTemplate = "\n\t\t
"; + var $_closeFieldsetTemplate = "\n\t\t
"; /** * Required Note template string @@ -1488,9 +1488,9 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{ $this->_elementTemplates = array( 'default'=>"\n\t\t".'
{help}
{error}
{element}
', - 'fieldset'=>"\n\t\t".'
{label}{req}{advancedimg}
{help}
{error}
{element}
', + 'fieldset'=>"\n\t\t".'
{label}{req}{advancedimg}
{help}
{error}
{element}
', - 'static'=>"\n\t\t".'
{label}{req}{advancedimg}
{help}
{error}
{element} 
', + 'static'=>"\n\t\t".'
{label}{req}{advancedimg}
{help}
{error}
{element} 
', 'nodisplay'=>'');