{if $wa->request('standalone')} {* this js and css are dependencies and this action could be used by other apps *} {wa_js file="js/compiled/contact-info-standalone.js"} {$static_url}js/fieldTypes.js {$static_url}js/wa.contactEditor.js {/wa_js} {$wa->js(false)} {* @event backend_assets.%plugin_id% *} {foreach $backend_assets as $item} {$item} {/foreach} {/if}
{if $exists}
{* This block is used to confirm deletion *}
{* Photo and a link to change it. *}
{if $contact.photo}[`Photo`]{else}[`No photo`]{/if} {if empty($readonly) && !$wa->request('readonly')} {/if} {* @event backend_customer.%plugin_id%.photo *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.photo)}{/foreach} {/if}
{* @event backend_customer.%plugin_id%.before_header *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.before_header)}{/foreach} {/if}

{$contact.title|escape} {$contact.firstname|escape} {$contact.middlename|escape} {$contact.lastname|escape}

{if !$contact.is_company}

{if $contact.jobtitle} {$contact.jobtitle|escape} {/if} {if $contact.jobtitle && $contact.company} [`@`] {/if} {if $contact.company} {$contact.company|escape} {/if}

{/if} {* @event backend_customer.%plugin_id%.header *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.header)}{/foreach} {/if}
{* @event backend_customer.%plugin_id%.after_header *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.after_header)}{/foreach} {/if}

{* @event backend_customer.%plugin_id%.before_top *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.before_top)}{/foreach} {/if} {* @event backend_customer.%plugin_id%.after_top *} {if !empty($backend_contact_info)} {foreach $backend_contact_info as $_}{ifset($_.after_top)}{/foreach} {/if}
{* Tab controls *} {* Contact tab content *}
{if ($own_profile || empty($readonly)) && !$wa->request('readonly')} [`Edit`] {/if}
{* Not editable info block *} {if empty($limited_own_profile)}
  • [`ID`]: {$contact.id}
  • [`Added`]: {if !empty($author)}{$author.name|escape} {/if}{$contact_create_time}
  • [`Method`]: {if $contact.create_method}{$contact.create_method} ({$contact.create_app_id}){else}{$contact.create_app_id}{/if}
{/if}
{if empty($readonly) && !$wa->request('readonly') && empty($own_profile) && !$wa->request('no_delete')} {/if}
{* User tab content *} {if !$contact['is_company'] && ($superadmin || !empty($own_profile))} {/if} {* Tabs from other applications *} {if !empty($links) && $wa_view->templateExists("templates/actions/contacts/ContactsInfoTabs.html")} {include file="templates/actions/contacts/ContactsInfoTabs.html"} {/if}
{* div.block.not-padded.c-core-content *} {else}

[`Contact not found`] (Contact ID={$contact.id})

{/if}
{* div.contacts-background *} {if $exists} {/if}