{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}
{icon name="type"} {trans("Type:")}
{icon name="document"} {trans("Title:")}
{icon name="customer"} {trans("Customer:")} {$document.customer_name}
{icon name="id"} {trans("Number:")} {numberplan_selection doctype_selector = "#doctype" numberplanlist = $numberplans input_name = "document[number]" input_value = $document.number select_name = "document[numberplanid]" selected = $document.numberplanid number_trigger = "number" plan_trigger = "numberplanid" time = $document.cdate customer_id = $document.customerid planDocumentType = $planDocumentType }
{icon name="period"} {trans("Period:")} {trans("from:")}   {trans("to:")}
{icon name="period"} {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}
{icon name="description"} {trans("Description:")}
{icon name="import"} {trans("New files:")} {fileupload id="attachments" fileupload=$fileupload form="documentedit-form"}
{icon name="import"} {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}
{icon name="template"} {trans("Template:")}
{icon name="confirm"}
{icon name="archive"}
{button icon="save" label="Submit" onclick="document.documentedit.submit();"} {button icon="cancel" label="Cancel" href="?m=customerinfo&id={$document.customerid}"}
{/block}