{literal}
{/literal}

## {$form.currentRecordId}{t}Contact Profile{/t}

{assign var=item value=$dataPanel.fld_display_name}

{if $form.icon !='' } {/if} | # {$item.element}
{assign var=item value=$dataPanel.fld_type_id}
{$item.element}

{assign var=item value=$dataPanel.fld_photo}

{if $dataPanel.fld_photo_uploaded.element !=""} {else} {/if}

{assign var=item value=$dataPanel.fld_first_name}

{$item.label} | {$item.element}

{assign var=item value=$dataPanel.fld_last_name}

{$item.label} | {$item.element}

{assign var=item value=$dataPanel.fld_company}

{$item.label} | {$item.element}

{assign var=item value=$dataPanel.fld_department}

{$item.label} | {$item.element}

{assign var=item value=$dataPanel.fld_position}

{$item.label} | {$item.element}

## {t}Phone{/t}

{foreach name=phone item=item key=itemName from=$dataPanel} {if $item.elementsetcode eq "Phone"} {if $smarty.foreach.phone.index is odd} {else}

{/if}
{$item.label} | {$item.element}

{/if} {/foreach}

## {t}Address{/t}

{foreach name=address item=item key=itemName from=$dataPanel} {if $item.elementsetcode eq "Address"} {if $smarty.foreach.address.index is odd} {else}

{/if}
{$item.label} | {$item.element}

{/if} {/foreach}

## {t}Online Contact{/t}

{foreach name=contact item=item key=itemName from=$dataPanel} {if $item.elementsetcode eq "Online Contact"} {if $smarty.foreach.contact.index is odd} {else}

{/if}
{$item.label} | {$item.element}

{/if} {/foreach}

{if $dataPanel.fld_extend_fields.element}

## {$dataPanel.fld_extend_fields.elementset}

{$dataPanel.fld_extend_fields.element}
{/if} {assign var=ts_counter value=1} {foreach item=tabsetdata key=tabsetname name=tabs from=$form.tabSets} {if $smarty.foreach.tabs.first}
{else}
{/if}

## {$tabsetdata.SetName}

{assign var=es_counter value=0} {foreach item=setname name=elemsets from=$tabsetdata.Elems}
- {$setname}
{assign var=es_counter value=$es_counter+1} {/foreach}

{assign var=es_counter value=0} {foreach item=setname name=elemsets from=$tabsetdata.Elems} {if true }
{assign var=es_elem_counter value=0} {foreach item=item key=itemName from=$dataPanel} {if $item.elementset eq $setname AND $item.tabsetcode eq $tabsetname} {if $item.type eq 'CKEditor' or $item.type eq 'RichText' or $item.type eq 'Textarea' or $item.type eq 'LabelTextarea' or $item.type eq 'HTMLPreview' or $item.type eq 'LabelTextarea' or $item.type eq 'LabelImage' or $item.type eq 'RawData' or $item.type eq 'IDCardReader' or $item.type eq 'FormElement' }

{if $item.label}
{$item.label} | {if $errors.$itemName} {$errors.$itemName} {elseif $item.description} {$item.description} {/if}
{/if}
{$item.element}

{else} {if $item.type eq 'Hidden' }

{else} {if $es_elem_counter is odd}

{else}

{/if} {/if}
{if $item.label} {$item.label} {/if} | {if $item.type eq 'Checkbox' } {$item.element} {$item.description} {else} {$item.element} {if $errors.$itemName} {$errors.$itemName} {elseif $item.description} {$item.description} {/if} {/if}

{/if} {assign var=es_elem_counter value=$es_elem_counter+1} {/if} {/foreach}

{/if} {assign var=es_counter value=$es_counter+1} {/foreach}
{assign var=ts_counter value=$ts_counter+1} {/foreach}

{foreach item=elem from=$actionPanel} {$elem.element} {/foreach}