{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{$xajax}

{if !$document.closed} {/if} {if !empty($document.attachments)} {/if} {* *} {if (!$document.closed && ($document.docrights & $smarty.const.DOCRIGHT_CONFIRM)) || ConfigHelper::checkPrivilege('full_access')} {/if} {if !empty($document.closed) && ($document.docrights && $smarty.const.DOCRIGHT_ARCHIVE)} {/if}
{trans("Title:")}
{trans("Type:")}
{trans("Number:")}  
{include file="document/documentnumberplans.html" numberplanid=$document.numberplanid cdate=$document.cdate customerid=$document.customerid}
{trans("Period:")} {trans("from:")}   {trans("to:")}
{trans("Wait for customer action till:")} {if $document.confirmdate == -1}  {trans("Warning! Customer submitted signed document scan. Consider to review it and then possibly confirm.")} {elseif $document.confirmdate && $document.confirmdate < $smarty.now}  {trans("Warning! Customer action time limit is expired is expired!")} {/if}
{trans("Description:")}
{trans("New files:")} {fileupload id="attachments" fileupload=$fileupload form="documentedit-form"}
{trans("Attached files:")} {foreach $document.attachments as $docattach}
{$class = ""} {if $document.attachments[$docattach.id].deleted} {$class = "blend"} {/if} {documentview id="{$document.id}-{$docattach.id}" type=$docattach.contenttype name=$docattach.filename url="?m=documentview&id={$document.id}&attachmentid={$docattach.id}" external=true class=$class text="{$docattach.filename} "} {if $docattach.type == -1}">{/if}
{/foreach}
{trans("Template:")}
{trans("Submit")} {trans("Cancel")}

{/block}