{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content} {$document_confirm_date_required = intval(ConfigHelper::getConfig('phpui.document_confirm_date_required'))}

{$layout.pagetitle}

{$xajax}
{if $customer.id}{$cid=$customer.id}{elseif $document.customerid}{$cid=$document.customerid}{else}{$cid=""}{/if} {include file="document/documentreference.html"}
{icon name="type"} {trans("Type:")}
{icon name="template"} {trans("Template:")}
{icon name="document"} {trans("Title:")}
{icon name="customer"} {trans("Customer:")} {customerlist customers=$customers selected=$cid version=2 selectname="customer" input_id="customerid_input" inputname="customerid" required=true customOnChange="CustomerChanged();"}
{icon name="id"} {trans("Number:")} {numberplan_selection customer_selector = "#customerid_input" 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 = $cid planDocumentType = $planDocumentType }
{icon name="period"} {trans("Period:")} {trans("from:")}   {trans("to:")}
{icon name="period"} {trans("Wait for customer action till:")}
{icon name="description"} {trans("Description:")}
{icon name="confirm"}
{button icon="save" class="operation-button" id="submit-button" label="Submit"} {button icon="print" class="operation-button" id="print-button" label="Print"} {button icon="cancel" label="Cancel" onclick="location.href = '?m=documentlist';"}
{if !empty($promotions)} {block name="documentpromotions"} {include file="document/documentpromotions.html"} {/block} {/if}
{$plugin_result}
{$script_result}
{/block}