{strip} {foreach item=element from=$elements name="form_elements"} {if !($element.type eq "hidden") } {php} $this->assign('tr_class', str_replace(array('[',']'), array('_', ''), $this->_tpl_vars['element']['name'])); {/php} {if !$element.label } {if $element.required}*{/if} {else} {if $element.required}*{/if}{$element.label}: {/if} {if $element.error}{$element.error}
{/if} {if $element.type eq "group"} {foreach key=gkey item=gitem from=$element.elements} {$gitem.label} {$gitem.html} {if $element.separator}{cycle values=$element.separator}{/if} {/foreach} {else} {$element.html} {/if} {if $element.label_note}
{$element.label_note}
{/if} {/if} {/foreach} {/strip}