{$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'}
    {foreach from=$struct.{$key}.options item=domain}
  • {assign var=flag value=0} {foreach from=$value_{$key} item=selectedDomain} {if $domain == $selectedDomain } {assign var=flag value=$flag+1} {/if} {/foreach} {if $flag == 0 } {/if}
  • {/foreach}
{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}