{$dialog_id = uniqid('f-delete-dialog-')} {function form_begin} {if $allowed_files}
{/if} {/function} {function form_end} {if $allowed_files}
{/if} {/function}
{form_begin}

[`Delete`]

{if $allowed_files} {if $unallowed_files}

[`No permissions to delete these files`]: {foreach $unallowed_files as $file} {$file.name|escape}  {/foreach}

{/if} {$allowed_files_count = count($allowed_files)}

{if $is_permanently} [`Files will be deleted PERMANENTLY without the ability to restore. Are you sure?`] {else} [`Files will be moved to trash. Are you sure?`] {/if}
{_w('%d file will be deleted', '%d files will be deleted', $allowed_files_count)}

{else}

[`You don’t have permissions to delete these files.`]

{/if}
{form_end}