Change HTML tag Form Error Messages
Notice: This thread is very old.
- jary
- Member | 5
Hi!
I need to change Error Form Messages html tag. Now its:
<ul class="error">
<li>Error Message</li>
</ul>
I want to make something like this:
<div class="message-box">
<p class="error">Error Message</p>
</div>
I have this code in my latte file:
{control $form errors}
Help me pls!
Sorry for my bad english :)
Last edited by jary (2012-05-07 12:35)
- Vojtěch Dobeš
- Gold Partner | 1316
If you manually render the form, you are pretty free of choice (replace your
{control $form errors}
by following code):
{foreach $form->errors as $error}
<div class="flash error inner">{$error}</div>
{/foreach}
You may change anything as you wish.
Last edited by vojtech.dobes (2012-05-07 12:38)