Re: QuickForm_Renderer_Tableless - template help

From: Date: Tue, 21 Nov 2006 03:03:19 +0000
Subject: Re: QuickForm_Renderer_Tableless - template help
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25888@lists.php.net to get a copy of this message
You could give this a try: $renderer->setElementTemplate("\n\t\t\t<label class=\"element\"><!-- BEGIN required --><span class=\"required\">*</span><!-- END required -->{label}</label><div class=\"element<!-- BEGIN error --> error<!-- END error -->\"><!-- BEGIN error --><span class=\"error\">{error}</span><br /><!-- END error -->{element}</div>"); (simply removing the <li> and </li>) Chuck Reynolds wrote:
I don't understand how to rebuild the template so I don't have ordered lists for each fieldset when using HTML_QuickForm_Renderer_Tableless. outputted source code looks like this: <form action="/estimate.php" method="post" name="frmEstimate" id="frmEstimate">
    <div
style= "display: none;"></div> <fieldset>
    <
legend>Your Information</legend>
         <ol>
              <
li><label for="txtFullName" class="element">< span class="required"
*</span>Full Name:</label><
div class="element"><input id= "txtFullName" name="txtFullName" type="text"/> </div></li> I'd like to know how to change that and I simply can't get the renderer to work. Thanks


« previous php.pear.general (#25888) next »