{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"}
{trans("Title:")}
{trans("Customer:")} {customerlist form="documentadd" customers=$customers selected=$cid version=2 selectname="customer" inputname="customerid" required=true customOnChange="CustomerChanged();"}
{trans("Period:")} {trans("from:")}   {trans("to:")}
{trans("Wait for customer action till:")}
{trans("Description:")}
{trans("Type:")}
{trans("Template:")}
{trans("Number:")}  
{include file="document/documentnumberplans.html" numberplanid=$document.numberplanid cdate=$document.cdate customerid=$cid}
{button type="submit" icon="save" id="submit-button" label="Submit"} {button type="submit" icon="print" label="Print" onclick="print_document()"} {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}