{foreach key=key item=field from=$struct} {if $field.display_in_form == 1} {if $table == 'foo' && $key == 'bar'} {else} {/if} {/if} {/foreach}
{$formtitle}
Special handling (complete table row) for {$table} / {$key}
{$field.label} {if $field.editable == 0} {$value_{$key}} {else} {if $table == 'foo' && $key == 'bar'} Special handling (td content) for {$table} / {$key} {elseif $field.type == 'bool'} {elseif $field.type == 'enum'} {else} {/if} {/if} {$field.desc} {$fielderror.{$key}}