{if $tiki_p_attach_trackers ne 'y'}
	{tr}Permission denied{/tr}
{else}
	<input type="file" name="{$field.ins_id}"{if isset($input_err)} value=""{/if}{if $field.isMandatory eq 'y'} class="file_{$field.ins_id}"{/if} />
{/if}
{if $field.value ne '' and is_numeric($field.value)}
	<br />
	<a href="tiki-download_item_attachment.php?attId={$field.value}" title="{tr}Download{/tr}">
		{$field.filename}&nbsp;
		{icon _id='disk' alt="{tr}Download{/tr}"}
	</a>
	{if ($tiki_p_admin_trackers eq 'y' or $field.info.user eq $user) and $field.isMandatory ne 'y'}
		<a href="{$smarty.server.PHP_SELF}?{query removeattach=$field.value}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
	{/if}
	{if $field.isMandatory eq 'y'}<input type="hidden" value="{$field.value}" class="file_{$field.ins_id}" />{/if}
{/if}
