{$formtitle}

{foreach key=key item=field from=$struct} {if $field.display_in_form == 1} {if $table == 'foo' && $key == 'bar'}
Special handling (complete table row) for {$table} / {$key}
{else}
{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} {if $table == 'foo' && $key == 'bar'} Special handling (td content) for {$table} / {$key} {else} {if $fielderror.{$key}} {$fielderror.{$key}} {else} {$field.desc} {/if} {/if}
{/if} {/if} {/foreach}