Well, I'm trying to make the following using decorators, but until now i didn't get it working. Also i can't find very usefull examples explaining the usage of decorators and the documentation also get me troubles. I hope some can help me here.
Well her is the code i'm trying to generate.
HTML Code:
<dt>
<label for="username">Username:</label>
<br>
<span>Length must be between 3 and 20 characters.</span>
</dt>
<dd>
<input id="username" type="text" value="" name="username"/>
<ul class="errors">
<li>Value is empty, but a non-empty value is required</li>
</ul>
</dd>
I hope this is possible and someone can help me with it.