applications/content/widget/compdoc/CompDocForms.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<!-- CompDoc forms -->
<form name="FindCompDoc" default-entity-name="Content" target="FindCompDoc" title="" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId" map-name="empty"><text-find/></field>
<field name="contentName"><text-find/></field>
<field name="contentTypeId">
<drop-down no-current-selected-key="COMPDOC_TEMPLATE">
<option key="COMPDOC_TEMPLATE" description="${uiLabelMap.ContentTemplateRoot}"/>
<option key="COMPDOC_INSTANCE" description="${uiLabelMap.ContentTemplateRootInstance}"/>
<option key="TEMPLATE" description="${uiLabelMap.ContentTemplateChild}"/>
<option key="DOCUMENT" description="${uiLabelMap.ContentTemplateInstanceChild}"/>
</drop-down>
</field>
<!-- <field name="rootonly" map-name="dummy" title="Root CompDocs Only"><check/></field> -->
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="submitAction" title="${uiLabelMap.CommonFind}" widget-style="${styles.link_run_sys} ${styles.action_find}"><submit button-type="button"/></field>
</form>
<form name="ListCompDoc" type="list" list-name="listIt" target="" paginate-target="FindCompDoc"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<actions>
<service service-name="performFind" result-map="results" result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="Content"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="contentId"><display/></field>
<field name="contentTypeId"><display/></field>
<field name="contentName"><display/></field>
<field name="editAction" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc">
<parameter param-name="contentId"/>
<parameter param-name="rootContentId" from-field="caContentIdTo"/>
<parameter param-name="caContentAssocTypeId"/>
<parameter param-name="caFromDate"/>
</hyperlink>
</field>
<field name="editAction" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc">
<parameter param-name="contentId"/>
<parameter param-name="rootContentId" from-field="caContentIdTo"/>
<parameter param-name="caContentAssocTypeId"/>
<parameter param-name="caFromDate"/>
</hyperlink>
</field>
<field name="editAction" use-when=""TEMPLATE".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc">
<parameter param-name="contentId"/>
<parameter param-name="rootContentId" from-field="caContentIdTo"/>
<parameter param-name="caContentAssocTypeId"/>
<parameter param-name="caFromDate"/>
</hyperlink>
</field>
<field name="editAction" use-when=""DOCUMENT".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc">
<parameter param-name="contentId"/>
<parameter param-name="rootContentId" from-field="caContentIdTo"/>
<parameter param-name="caContentAssocTypeId"/>
<parameter param-name="caFromDate"/>
</hyperlink>
</field>
<field name="tree" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_view}">
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree">
<parameter param-name="rootContentId" from-field="contentId"/>
</hyperlink>
</field>
<field name="tree" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="${styles.link_nav} ${styles.action_view}">
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree">
<parameter param-name="rootContentId" from-field="contentId"/>
</hyperlink>
</field>
</form>
<form name="ListCompDocInstances" target="" type="list" list-name="compDocFindList" paginate-target="ListCompDocInstances"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="contentId"><display/></field>
<field name="contentName"><display/></field>
<field name="rootContentId" title="${uiLabelMap.FormFieldTitle_contentIdTo}"><display/></field>
<field name="caContentAssocTypeId" title="${uiLabelMap.FormFieldTitle_contentAssocTypeId}"><display/></field>
<field name="caFromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
<field name="caThruDate"><hidden/></field>
<field name="editTemplate" title="${uiLabelMap.CommonEdit}" widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc">
<parameter param-name="rootContentId" from-field="contentId"/>
</hyperlink>
</field>
<field name="templateTree" widget-style="${styles.link_nav} ${styles.action_view}">
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree">
<parameter param-name="rootContentId" from-field="contentId"/>
</hyperlink>
</field>
</form>
<!-- ContentRevision forms -->
<form name="EditContentRevision" default-map-name="contentRevision" target="updateContentRevision" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target target="createContentRevision" use-when="contentRevision==null"/>
<auto-fields-entity entity-name="ContentRevision"/>
<field name="rootContentId" map-name="empty"><hidden/></field>
<field name="rootContentRevisionSeqId" map-name="empty"><hidden/></field>
<field name="contentId" widget-style="${styles.link_nav} ${styles.action_find}"><lookup target-form-name="LookupContent"/></field>
<field name="contentRevisionSeqId" widget-style="inputBox"><text/></field>
<!-- <field name="contentRevisionSeqId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="" key-field-name="contentRevisionSeqId"/>
</drop-down>
</field>
-->
<field name="committedByPartyId" widget-style="inputBox"><text/></field>
<field name="comments" widget-style="inputBox"><text/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
</form>
<form name="ListContentRevisions" list-name="contentRevisionList" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="contentId"><display/></field>
<field name="contentRevisionSeqId"><display/></field>
<field name="committedByPartyId"><display/></field>
<field name="comments"><display/></field>
<field name="editAction" title=" " widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevision">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
<field name="itemAction" title=" " widget-style="${styles.link_nav} ${styles.action_view}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonItems}" target="ListContentRevisionItem">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
<field name="create" title=" " widget-style="${styles.link_nav} ${styles.action_add}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonCreate}" target="EditContentRevision">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
<field name="tree" title=" " widget-style="${styles.link_nav} ${styles.action_view}" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)">
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree">
<parameter param-name="rootContentId" from-field="contentId"/>
<parameter param-name="rootContentRevisionSeqId" from-field="contentRevisionSeqId"/>
</hyperlink>
</field>
<field name="tree" title=" " widget-style="${styles.link_nav} ${styles.action_view}" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)">
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree">
<parameter param-name="rootContentId" from-field="contentId"/>
<parameter param-name="rootContentRevisionSeqId" from-field="contentRevisionSeqId"/>
</hyperlink>
</field>
</form>
<!-- ContentRevisionItem forms -->
<form name="EditContentRevisionItem" default-map-name="contentRevisionItem" target="updateContentRevisionItem" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<alt-target target="createContentRevisionItem" use-when="contentRevisionItem==null"/>
<auto-fields-entity entity-name="ContentRevisionItem"/>
<field name="rootContentId" map-name="empty"><hidden/></field>
<field name="rootContentRevisionSeqId" map-name="empty"><hidden/></field>
<field name="contentId" widget-style="${styles.link_nav} ${styles.action_find}"><lookup target-form-name="LookupContent"/></field>
<field name="contentRevisionSeqId" widget-style="inputBox"><text/></field>
<field name="itemContentId" widget-style="inputBox"><text/></field>
<field name="oldDataResourceId" widget-style="inputBox"><text/></field>
<field name="newDataResourceId" widget-style="inputBox"><text/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
</form>
<form name="ListContentRevisionItem" list-name="contentRevisionItemList" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="contentId"><display/></field>
<field name="contentRevisionSeqId"><display/></field>
<field name="itemContentId"><display/></field>
<field name="oldDataResourceId"><display/></field>
<field name="newDataResourceId"><display/></field>
<field name="editAction" title=" " widget-style="${styles.link_nav} ${styles.action_update}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevisionItem">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="itemContentId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
<field name="create" title=" " widget-style="${styles.link_nav} ${styles.action_add}">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonCreate}" target="EditContentRevisionItem">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
</form>
<!-- ContentApproval forms -->
<form name="EditContentApproval" default-map-name="contentApproval" target="updateContentApproval" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentApprovalId"><display/></field>
<field name="contentId" widget-style="inputBox"><hidden/></field>
<field name="contentRevisionSeqId" widget-style="inputBox"><text></text></field>
<field name="partyId" widget-style="inputBox"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
<!-- <entity-constraint name="parentTypeId" value=""/> -->
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="approvalStatusId" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)">
<drop-down allow-empty="true">
<option key="SOFT_REJ" description="${uiLabelMap.ContentSoftRejected}"/>
<option key="REJECTED" description="${uiLabelMap.ContentRejected}"/>
<option key="APPROVED" description="${uiLabelMap.CommonApproved}"/>
</drop-down>
</field>
<field name="approvalDate" widget-style="inputBox"><date-time/></field>
<field name="sequenceNum" widget-style="inputBox"><text/></field>
<field name="comments" widget-style="inputBox"><textarea cols="30" rows="3"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
</form>
<form name="AddContentApproval" default-map-name="contentApproval" target="createContentApproval" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId" widget-style="inputBox"><hidden/></field>
<field name="contentRevisionSeqId" map-name="empty" widget-style="inputBox"><text/></field>
<field name="partyId" map-name="empty" widget-style="inputBox"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
<!-- <entity-constraint name="parentTypeId" value=""/> -->
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="approvalDate" map-name="empty" widget-style="inputBox"><date-time/></field>
<field name="sequenceNum" map-name="empty" widget-style="inputBox"><text/></field>
<field name="comments" map-name="empty" widget-style="inputBox"><text size="40"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit/></field>
</form>
<form name="ListContentApproval" target="updateContentApproval" list-name="contentApprovalList" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="contentApprovalId"><display/></field>
<field name="contentId"><hidden/></field>
<field name="rootContentId" map-name="empty"><hidden/></field>
<field name="contentRevisionSeqId"><hidden/></field>
<field name="partyId" widget-style="inputBox"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
<!-- <entity-constraint name="parentTypeId" value=""/> -->
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="approvalStatusId" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)">
<drop-down allow-empty="true">
<option key="SOFT_REJ" description="${uiLabelMap.ContentSoftRejected}"/>
<option key="REJECTED" description="${uiLabelMap.ContentRejected}"/>
<option key="APPROVED" description="${uiLabelMap.CommonApproved}"/>
</drop-down>
</field>
<field name="approvalDate" widget-style="inputBox" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)"><date-time/></field>
<field name="sequenceNum" widget-style="inputBox" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)"><text/></field>
<field name="comments" widget-style="inputBox"><textarea cols="30" rows="3"/></field>
<field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
<field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
<hyperlink target="removeContentApproval" description="${uiLabelMap.CommonDelete}">
<parameter param-name="contentApprovalId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId"/>
</hyperlink>
</field>
</form>
<form name="ListWaitingContentApproval" target="updateWaitingContentApproval" list-name="contentApprovalList" type="list"
odd-row-style="alternate-row"> <!-- orig: default-table-style=-style="basic-table hover-bar" -->
<field name="contentApprovalId"><display/></field>
<field name="contentId"><hidden/></field>
<field name="rootContentId" map-name="empty"><hidden/></field>
<field name="contentRevisionSeqId"><display/></field>
<field name="partyId" widget-style="inputBox"><lookup target-form-name="LookupPartyName"/></field>
<field name="roleTypeId">
<drop-down allow-empty="true">
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="approvalStatusId" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)">
<drop-down allow-empty="true">
<option key="SOFT_REJ" description="${uiLabelMap.ContentSoftRejected}"/>
<option key="REJECTED" description="${uiLabelMap.ContentRejected}"/>
<option key="APPROVED" description="${uiLabelMap.CommonApproved}"/>
</drop-down>
</field>
<field name="approvalDate" widget-style="inputBox"><date-time/></field>
<field name="sequenceNum" widget-style="inputBox"><text/></field>
<field name="comments" widget-style="inputBox"><text size="40"/></field>
<field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)"><submit/></field>
</form>
<form name="AddRootCompDocInstance" default-map-name="" type="single" target="genCompDocInstance"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentName"><text/></field>
<field name="instanceOfContentId" entry-name="rootContentId" map-name="parameters"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="contentTypeId"><hidden value="COMPDOC_INSTANCE"/></field>
<!--
<field name="rootContentId"><hidden/></field>
<field name="rootContentRevisionId"><hidden/></field>
-->
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="EditRootCompDocInstance" default-map-name="content" type="single" target="updateRootCompDocTemplate"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId"><display/></field>
<field name="contentName"><text/></field>
<field name="instanceOfContentId"><display/></field>
<field name="contentTypeId"><hidden value="COMPDOC_INSTANCE"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
</form>
<form name="AddRootCompDocTemplate" default-map-name="" type="single" target="createRootCompDocTemplate"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentName" title="${uiLabelMap.ContentCompDocTemplateName}"><text/></field>
<field name="contentTypeId" map-name="dummy"><hidden value="COMPDOC_TEMPLATE"/></field>
<field name="rootTemplateContentId"><hidden/></field>
<field name="rootTemplateRevSeqId"><hidden/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="EditRootCompDocTemplate" default-map-name="content" type="single" target="updateRootCompDocTemplate"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId"><display/></field>
<field name="contentName"><text/></field>
<field name="contentTypeId" map-name="dummy"><hidden value="COMPDOC_TEMPLATE"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
</form>
<form name="AddChildCompDoc" default-map-name="" type="single" target="${childCompDocTarget}"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="rootContentId"><hidden/></field>
<field name="contentId"><ignored/></field>
<field name="contentName"><text/></field>
<field name="contentTypeId"><hidden/></field>
<field name="instanceOfContentId" use-when=""DOCUMENT".equals(contentTypeId)"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="caContentIdTo" entry-name="rootContentId" map-name="parameters" title="${uiLabelMap.ContentCompDocParentContentId}">
<display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/>
</field>
<field name="contentAssocTypeId"><display-entity entity-name="ContentAssocType"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><date-time default-value="${nowTimestamp}"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><date-time/></field>
<field name="sequenceNum"><text/></field>
<field name="mimeTypeId" title="${uiLabelMap.ContentDocumentType}" use-when=""DOCUMENT".equals(contentTypeId) && "SURVEY".equals(templateDataResourceTypeId)">
<hidden value="application/vnd.ofbiz.survey.response"/>
</field>
<field name="displayMimeTypeId" map-name="empty" title="${uiLabelMap.ContentDocumentType}" use-when=""DOCUMENT".equals(contentTypeId) && "SURVEY".equals(templateDataResourceTypeId)">
<display description="Survey Response"/>
</field>
<field name="mimeTypeId" title="${uiLabelMap.ContentDocumentType}" use-when=""DOCUMENT".equals(contentTypeId) && !"SURVEY".equals(templateDataResourceTypeId)">
<display-entity entity-name="MimeType" description="${description}"/>
</field>
<field name="mimeTypeId" title="${uiLabelMap.ContentDocumentType}" use-when=""TEMPLATE".equals(contentTypeId)" widget-style="+smallSelect">
<drop-down allow-empty="false">
<option key="application/msword" description="${uiLabelMap.ContentMSWord}"/>
<option key="application/pdf" description="${uiLabelMap.ContentPDFFile}"/>
<option key="application/vnd.ofbiz.survey" description="${uiLabelMap.ContentSurvey}"/>
<option key="text/html" description="${uiLabelMap.ContentHtmlText}"/>
<option key="text/plain" description="${uiLabelMap.ContentPlainText}"/>
<option key="image/jpeg" description="${uiLabelMap.ContentJPEG}"/>
<option key="image/gif" description="${uiLabelMap.ContentGIF}"/>
<option key="image/tiff" description="${uiLabelMap.ContentTIFF}"/>
<option key="image/png" description="${uiLabelMap.ContentPNG}"/>
<option key="application/octet-stream" description="${uiLabelMap.ContentResourceOther}"/>
</drop-down>
</field>
<field name="rootContentId"><hidden/></field>
<field name="rootContentRevisionSeqId"><hidden/></field>
<field name="submitAction" title="${uiLabelMap.CommonAdd}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit button-type="button"/></field>
</form>
<form name="EditChildCompDoc" default-map-name="contentAssoc" type="single" target="${childCompDocTarget}"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId"><display/></field>
<field name="contentName" map-name="itemContent"><text/></field>
<field name="contentTypeId" map-name="itemContent"><hidden/></field>
<field name="instanceOfContentId" map-name="itemContent" use-when=""DOCUMENT".equals(contentTypeId)"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="contentIdTo"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="contentAssocTypeId"><display-entity entity-name="ContentAssocType" also-hidden="false"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}" ><display/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><date-time/></field>
<field name="sequenceNum"><text/></field>
<field name="mimeTypeId" map-name="dataResource"
use-when=""TEMPLATE".equals(contentTypeId)">
<drop-down allow-empty="false">
<option key="application/msword" description="${uiLabelMap.ContentMSWord}"/>
<option key="application/pdf" description="${uiLabelMap.ContentPDFFile}"/>
<option key="application/vnd.ofbiz.survey" description="${uiLabelMap.ContentSurvey}"/>
<option key="text/html" description="${uiLabelMap.ContentHtmlText}"/>
<option key="text/plain" description="${uiLabelMap.ContentPlainText}"/>
<option key="image/jpeg" description="${uiLabelMap.ContentJPEG}"/>
<option key="image/gif" description="${uiLabelMap.ContentGIF}"/>
<option key="image/tiff" description="${uiLabelMap.ContentTIFF}"/>
<option key="image/png" description="${uiLabelMap.ContentPNG}"/>
<option key="application/octet-stream" description="${uiLabelMap.ContentResourceOther}"/>
</drop-down>
</field>
<field name="mimeTypeId" map-name="dataResource"
use-when=""DOCUMENT".equals(contentTypeId) && mimeTypeId!=null && !"application/vnd.ofbiz.survey".equals(mimeTypeId)">
<display-entity entity-name="MimeType" key-field-name="mimeTypeId" description="${description}"/>
</field>
<field name="mimeTypeId" map-name="dataResource"
use-when=""DOCUMENT".equals(contentTypeId) && mimeTypeId!=null && "application/vnd.ofbiz.survey".equals(mimeTypeId)">
<display description="Survey Response"/>
</field>
<!-- <field name="mimeTypeId" map-name="dataResource" title="Document Type" ><display/></field> -->
<!-- <field name="contentTypeId" map-name="content" title="Content Type" ><display/></field> -->
<field name="relatedDetailId" map-name="dataResource" title="${uiLabelMap.ContentSurvey}"
use-when="dataResource!=null && "SURVEY".equals(dataResource.getString("dataResourceTypeId"))">
<lookup target-form-name="LookupSurvey">
<sub-hyperlink target="EditSurvey" description="${uiLabelMap.PageTitleEditSurvey}" link-style="${styles.link_nav} ${styles.action_update}" use-when="dataResource.get("relatedDetailId")!=null">
<parameter param-name="surveyId" from-field="dataResource.relatedDetailId"/>
</sub-hyperlink>
</lookup>
</field>
<field name="relatedDetailId" map-name="dataResource" title="${uiLabelMap.ContentSurveyResponse}"
use-when="dataResource!=null && "SURVEY_RESPONSE".equals(dataResource.getString("dataResourceTypeId"))">
<lookup target-form-name="LookupSurveyResponse">
<sub-hyperlink target="EditSurveyResponse" description="${uiLabelMap.PageTitleEditSurveyResponse}" link-style="${styles.link_nav} ${styles.action_update}" use-when="dataResource!=null && dataResource.get("relatedDetailId")!=null">
<parameter param-name="surveyResponseId" from-field="dataResource.relatedDetailId"/>
</sub-hyperlink>
</lookup>
</field>
<field name="addSurveyResponse" map-name="dummy" widget-style="${styles.link_nav_long} ${styles.action_add}"
use-when=""DOCUMENT".equals(contentTypeId) && dataResource!=null && dataResource.get("relatedDetailId")==null && templateDataResource!=null && templateDataResource.get("relatedDetailId")!=null">
<hyperlink description="${uiLabelMap.CommonCreate} ${uiLabelMap.ContentSurveyResponse} (${uiLabelMap.CommonFor} ${uiLabelMap.ContentSurvey} ${templateDataResource.relatedDetailId})" target="EditSurveyResponse" also-hidden="false" target-window="_blank">
<parameter param-name="surveyId" from-field="templateDataResource.relatedDetailId"/>
<parameter param-name="dataResourceId" from-field="dataResource.dataResourceId"/>
<parameter param-name="rootContentId"/>
</hyperlink>
</field>
<field name="updateSurveyResponse" map-name="dummy" widget-style="${styles.link_nav_long} ${styles.action_update}"
use-when=""DOCUMENT".equals(contentTypeId) && dataResource!=null && dataResource.get("relatedDetailId")!=null && templateDataResource!=null && templateDataResource.get("relatedDetailId")!=null">
<hyperlink description="${uiLabelMap.CommonUpdate} ${uiLabelMap.ContentSurveyResponse} (${uiLabelMap.CommonFor} ${uiLabelMap.ContentSurvey} ${templateDataResource.relatedDetailId}, Response ${dataResource.relatedDetailId})" target="EditSurveyResponse" also-hidden="false" target-window="_blank">
<parameter param-name="surveyId" from-field="templateDataResource.relatedDetailId"/>
<parameter param-name="surveyResponseId" from-field="dataResource.relatedDetailId"/>
<parameter param-name="dataResourceId" from-field="dataResource.dataResourceId"/>
<parameter param-name="rootContentId"/>
</hyperlink>
</field>
<field name="objectInfo" map-name="dataResource"
use-when=""DOCUMENT".equals(contentTypeId) && mimeTypeId!=null && !"application/vnd.ofbiz.survey".equals(mimeTypeId)">
<display also-hidden="false"/>
</field>
<field name="submitAction" title="${uiLabelMap.CommonUpdate}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
</form>
<form name="ViewChildCompDoc" default-map-name="contentAssoc" type="single" target=""
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="contentId"><display/></field>
<field name="contentName" map-name="itemContent"><display/></field>
<field name="contentTypeId" map-name="itemContent"><hidden/></field>
<field name="instanceOfContentId" map-name="itemContent" use-when="contentTypeId.equals("DOCUMENT")"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="contentIdTo" title="${uiLabelMap.ContentCompDocParentContentId}"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
<field name="contentAssocTypeId"><display-entity entity-name="ContentAssocType" also-hidden="false"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
<field name="thruDate" title="${uiLabelMap.CommonThru}"><display/></field>
<field name="sequenceNum" title="${uiLabelMap.CommonSequenceNum}"><display/></field>
<field name="mimeTypeId" map-name="dataResource" title="${uiLabelMap.ContentDocumentType}" >
<display-entity entity-name="MimeType" key-field-name="mimeTypeId" description="${description}"/>
</field>
<field name="relatedDetailId" map-name="dataResource" title="${uiLabelMap.ContentSurvey}" use-when="dataResource!=null&&"SURVEY".equals(dataResource.getString("dataResourceTypeId"))">
<display/>
</field>
<field name="relatedDetailId" map-name="dataResource" title="${uiLabelMap.ContentSurveyResponse}" use-when="dataResource!=null&&"SURVEY_RESPONSE".equals(dataResource.getString("dataResourceTypeId"))&&dataResource.get("relatedDetailId")!=null">
<display/>
</field>
</form>
<!-- ================ CompDoc Revision ================= -->
<form name="EditContentRevisionAndItem" target="updateContentRevisionAndItem" type="single"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<auto-fields-entity entity-name="ContentRevision"/>
<auto-fields-entity entity-name="ContentRevisionItem"/>
<field name="contentId" widget-style="${styles.link_nav_info_id}"><text/></field>
<field name="contentRevisionSeqId"><hidden/></field>
<field name="committedByPartyId" widget-style="inputBox"></field>
<field name="comments" widget-style="inputBox"></field>
<field name="itemContentId" widget-style="inputBox"></field>
<field name="oldDataResourceId" widget-style="inputBox"></field>
<field name="newDataResourceId" widget-style="inputBox"></field>
<field name="submitAction" title="${uiLabelMap.CommonCreate}" widget-style="${styles.link_run_sys} ${styles.action_add}"><submit/></field>
</form>
<!-- TO BE REMOVED
<form name="ListContentRevisionItemApproval" type="list"
odd-row-style="alternate-row"> <!- orig: default-table-style=-style="basic-table hover-bar" ->
<actions>
<entity-and entity-name="ContentRevisionItemAndContentApprovalView" use-cache="true">
<field-map field-name="contentId" from-field="contentId"/>
<field-map field-name="contentRevisionSeqId" from-field="contentRevisionSeqId"/>
</entity-and>
</actions>
<field name="contentId"><display/></field>
<field name="contentRevisionSeqId"><display/></field>
<field name="itemContentId"><display/></field>
<field name="oldDataResourceId"><display/></field>
<field name="newDataResourceId"><display/></field>
<field name="contentApprovalId"><display/></field>
<field name="editAction" title=" " widget-style="${styles.link_nav} ${styles.action_update}" use-when="approvalCount > 0">
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevisionItem">
<parameter param-name="contentId"/>
<parameter param-name="contentRevisionSeqId"/>
<parameter param-name="itemContentId"/>
<parameter param-name="rootContentId"/>
<parameter param-name="rootContentRevisionSeqId" from-field="rootContentRevisionSeqId/>
</hyperlink>
</field>
<field name="create" title=" " widget-style="${styles.link_nav} ${styles.action_add}">
<hyperlink also-hidden="false" description="Create" target="EditContentRevisionItem"/>
</field>
</form>
-->
<form name="UploadCompDocContent" type="upload" target="uploadCompDocContent"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="caContentIdTo" entry-name="contentIdTo" map-name="contentAssoc"><hidden/></field>
<field name="caContentAssocTypeId"><hidden value="COMPDOC_PART"/></field>
<field name="caFromDate" entry-name="fromDate" map-name="contentAssoc"><hidden/></field>
<field name="contentId" map-name="contentAssoc"><hidden/></field>
<field name="dataResourceId" map-name="dataResource"><hidden/></field>
<field name="dataResourceTypeId" map-name="dataResource"><hidden/></field>
<field name="mimeTypeId" map-name="dataResource"><hidden/></field>
<!-- would show previous file name... doesn't make too much sense <field name="objectInfo" title="File Name" map-name="dataResource"><display also-hidden="false"/></field> -->
<field name="imageData" title="${uiLabelMap.ContentFile}"><file/></field>
<field name="rootContentId"><hidden/></field>
<field name="submitAction" title="${uiLabelMap.CommonUpload}" widget-style="${styles.link_run_sys} ${styles.action_import}"><submit/></field>
</form>
<form name="UploadCompDocPdf2Survey" type="upload" target="persistCompDocPdf2Survey"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="caContentIdTo" entry-name="contentIdTo" map-name="contentAssoc"><hidden/></field>
<field name="caContentAssocTypeId"><hidden value="COMPDOC_PART"/></field>
<field name="caFromDate" entry-name="fromDate" map-name="contentAssoc"><hidden/></field>
<field name="contentId" map-name="contentAssoc"><hidden/></field>
<field name="dataResourceId" map-name="dataResource"><hidden/></field>
<field name="dataResourceTypeId" map-name="dataResource"><hidden/></field>
<field name="mimeTypeId" map-name="dataResource"><hidden/></field>
<!-- <field name="objectInfo" title="File Name" map-name="dataResource"><display also-hidden="false"/></field> -->
<field name="pdfName" title="${uiLabelMap.ContentPDFSurveyName}"><text/></field>
<field name="imageData" title="${uiLabelMap.ContentPDFFilePath}"><file size="60"/></field>
<field name="rootContentId"><hidden/></field>
<field name="submitAction" title="${uiLabelMap.CommonUpload}" widget-style="${styles.link_run_sys} ${styles.action_import}"><submit/></field>
</form>
<form name="EditCompDocTextContent" type="single" target="uploadCompDocContent"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="rootContentId" map-name="dummy"><hidden/></field>
<field name="caContentIdTo" map-name="parameters"><hidden/></field>
<field name="caContentAssocTypeId" map-name="parameters"><hidden/></field>
<field name="caFromDate" map-name="parameters"><hidden/></field>
<field name="contentId" map-name="content"><hidden/></field>
<field name="dataResourceId" map-name="dataResource"><hidden/></field>
<field name="dataResourceTypeId" map-name="dataResource"><hidden/></field>
<field name="mimeTypeId" map-name="dataResource"><hidden/></field>
<field name="textData" title="${uiLabelMap.FormFieldTitle_textDataTitle}"><textarea rows="30" cols="60"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
</form>
<form name="UploadCompDocSurveyId" type="single" target="uploadCompDocContent"
header-row-style="header-row"> <!-- orig: default-table-style=-style="basic-table" -->
<field name="rootContentId" map-name="dummy"><hidden/></field>
<field name="caContentIdTo" map-name="parameters"><hidden/></field>
<field name="caContentAssocTypeId" map-name="parameters"><hidden/></field>
<field name="caFromDate" map-name="parameters"><hidden/></field>
<field name="contentId" map-name="content"><hidden/></field>
<field name="dataResourceId" map-name="dataResource"><hidden/></field>
<field name="dataResourceTypeId" map-name="dataResource"><hidden/></field>
<field name="mimeTypeId" map-name="dataResource"><hidden/></field>
<field name="objectInfo" title="${uiLabelMap.ContentSurveySurveyId}"><lookup target-form-name="LookupSurvey"/></field>
<field name="submitAction" title="${uiLabelMap.CommonSave}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit/></field>
</form>
</forms>