{$wrapper_id = uniqid('t-confirm-deletion-dialog')}

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

[`Contact deletion cannot be undone.`]

{if $contacts}

[`IMPORTANT NOTE:`] {if $total_count_requested == 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), $total_count_requested)} {/if} {if !$is_superadmin} [`Deletion of these contacts is allowed to an Administrator only.`] {else} [`After deletion of these contacts, other applications will refer to non-existent contacts.`] {/if}

{foreach $contacts as $id => $c} {$name = $c.name} {if $is_superadmin} {foreach $c.links as $app_id => $app_links} {foreach $app_links as $l} {/foreach} {/foreach} {/if} {/foreach}
{strip} {$c.name|escape} {if $c.not_allowed_reason} :  {$c.not_allowed_reason|escape} {/if} {/strip}
{$apps[$app_id].name}/{$l.role|truncate:50|escape} {_w("%d link", "%d links", $l.links_number)}
{/if}