[`Delete contacts`] ({$all})

[`Contact deletion cannot be undone.`]

{if $contacts}

[`IMPORTANT NOTE:`] {if $all == count($contacts)} [`All selected contacts have links to other applications.`] {else} {sprintf(_w('%d of %d selected contacts shown below have links to other applications.'), count($contacts), $all)} {/if} {if !$superadmin} [`Deletion of these contacts is allowed to Administrator only.`] {else} [`After deletion of these contacts other applications will refer to not existing contacts.`] {/if}

{foreach from=$contacts item=name key=id} {if $superadmin} {foreach from=$links[$id] item=app_links key=app_id} {foreach from=$app_links item=l} {/foreach} {/foreach} {else} {/if} {/foreach}
{$name|escape} {$apps[$app_id].name}/{$l.role|truncate:50|escape} {_w("%d link", "%d links", $l.links_number)}
{$name|escape}
{/if}