{$context->oPage->requireJSResource('resources/js/taillog.js')} {$context->oPage->requireJSResource('resources/js/conditional_usage.js')} {$context->oPage->requireCSSResource('resources/css/kt-treewidget.css')} {capture assign=sJavascript} {literal} function swapInItem(elementId, req) { var cp = getElement(elementId); cp.innerHTML = req.responseText; initialiseConditionalFieldsets(); } function xmlFailure(err) { ; // bad me - fail silently. } function handleErrorsInResponse(req) { ; // bad me - fail silently. } function swapElementFromRequest(elementId, url) { var deff = doSimpleXMLHttpRequest(url); var cp = getElement(elementId); cp.innerHTML="loading..."; deff.addCallback(partial(swapInItem, elementId)); deff.addErrback(handleErrorsInResponse); } function getMetadataForType(id) { swapElementFromRequest('type_metadata_fields', '{/literal}{$rootUrl}{literal}/presentation/lookAndFeel/knowledgeTree/documentmanagement/getTypeMetadataFields.php?fDocumentTypeID=' + id); } function document_type_changed() { typeselect = getElement('add-document-type'); getMetadataForType(typeselect.value); } function startupMetadata() { typeselect = getElement('add-document-type'); addToCallStack(typeselect, "onchange", document_type_changed, false); document_type_changed(); } function progressIndicator(){ var indicator = document.getElementById(); indicator.style.display = "block"; } addLoadEvent(startupMetadata); {/literal} {/capture} {$context->oPage->requireJSStandalone($sJavascript)}

{i18n}Add a document{/i18n}

oFolder->getId()}" enctype="multipart/form-data">
{i18n}Add a document{/i18n} {foreach from=$add_fields item=oWidget } {$oWidget->render()} {/foreach}

{i18n}If you do not need to modify any the metadata for this document (see below), then you can simply click "Add" here to finish the process and add the document.{/i18n}


{i18n}Additional Information about this Document{/i18n}

{i18n}Document Metadata allows you to provide additional, important information about this document that can be used to classify and report on its contents. The exact information required depends on the Document Type you selected above. Some of this information may be required, so please review the list of requested information carefully before finishing the process.{/i18n}

{foreach item=oFieldset from=$generic_fieldsets} {$oFieldset->renderEdit($document_data)} {/foreach}
{$type_metadata_fields}