{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} {if $field.type == 'enma'} {$struct.{$key}.options.{$value_{$key}}} {else} {$value_{$key}} {/if} {else} {if $table == 'foo' && $key == 'bar'} Special handling (td content) for {$table} / {$key} {elseif $field.type == 'bool'} {elseif $field.type == 'enum'} {elseif $field.type == 'enma'} {elseif $field.type == 'list'} {elseif $field.type == 'pass' || $field.type == 'b64p'} {elseif $field.type == 'txtl'} {else} {/if} {/if} {$field.desc} {$fielderror.{$key}}