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

{$layout.pagetitle}

{$xajax}
{icon name="type"} {trans("Type")}
{icon name="template"} {trans("Template")}
{icon name="document"} {trans("Title")}
{icon name="document"} {trans("First 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 planDocumentType = $planDocumentType }
{icon name="period"} {trans("Period")}
{$allow_past_date = ConfigHelper::checkConfig('documents.allow_past_date', true)}
{date_period_preset from="#fromdate" to="#todate" periods="previous-year,previous-month,current-year,current-month,next-month,next-year"}
{icon name="description"} {trans("Description")}
{icon name="confirm"}
{icon name="legal-personality"} {trans("Legal personality")}
{icon name="customer"} {trans("Customers")}
{foreach $_CSTATUSES as $statusidx => $status}
{/foreach}


{icon name="ipnetwork"} {trans("Network")}
{icon name="customergroup"} {trans("Group")}
{button type="submit" icon="save" id="submit-button" label="Submit"} {button type="submit" icon="print" label="Print" onclick="printdoc()" external=true} {button icon="cancel" label="Cancel" href="?m=documentlist"}

{$plugin_result}
{$script_result}
{/block}