| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form 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" default-table-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="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| <form name="ListCompDoc" type="list" list-name="listIt" target="" paginate-target="FindCompDoc" |
| odd-row-style="alternate-row" default-table-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="edit" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="rootContentId" from-field="caContentIdTo"/> |
| <parameter param-name="caContentAssocTypeId"/> |
| <parameter param-name="caFromDate"/> |
| </hyperlink> |
| </field> |
| <field name="edit" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="rootContentId" from-field="caContentIdTo"/> |
| <parameter param-name="caContentAssocTypeId"/> |
| <parameter param-name="caFromDate"/> |
| </hyperlink> |
| </field> |
| <field name="edit" use-when=""TEMPLATE".equals(contentTypeId)" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="rootContentId" from-field="caContentIdTo"/> |
| <parameter param-name="caContentAssocTypeId"/> |
| <parameter param-name="caFromDate"/> |
| </hyperlink> |
| </field> |
| <field name="edit" use-when=""DOCUMENT".equals(contentTypeId)" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc" also-hidden="false"> |
| <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="buttontext"> |
| <hyperlink description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree" also-hidden="false"> |
| <parameter param-name="rootContentId" from-field="contentId"/> |
| </hyperlink> |
| </field> |
| <field name="tree" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree" also-hidden="false"> |
| <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" default-table-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.CommonFromDate}"><display/></field> |
| <field name="caThruDate"><hidden/></field> |
| <field name="editTemplate" title="${uiLabelMap.CommonEdit}" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc" also-hidden="false"> |
| <parameter param-name="rootContentId" from-field="contentId"/> |
| </hyperlink> |
| </field> |
| <field name="templateTree" widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree" also-hidden="false"> |
| <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" default-table-style="basic-table"> |
| <alt-target target="createContentRevision" use-when="contentRevision==null"/> |
| <auto-fields-entity entity-name="ContentRevision"/> |
| |
| <field name="rootContentId" map-name="empty" widget-style="buttontext"><hidden/></field> |
| <field name="rootContentRevisionSeqId" map-name="empty" widget-style="buttontext"><hidden/></field> |
| <field name="contentId" widget-style="buttontext"><lookup target-form-name="LookupContent"/></field> |
| <field name="contentRevisionSeqId" widget-style="inputBox"><text/></field> |
| <!-- <field name="contentRevisionSeqId"> |
| <drop-down allow-empty="true"> |
| <entity-options 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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="ListContentRevisions" list-name="contentRevisionList" type="list" |
| odd-row-style="alternate-row" default-table-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="editLink" title=" " widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditContentRevision" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="contentRevisionSeqId"/> |
| <parameter param-name="rootContentId"/> |
| <parameter param-name="rootContentRevisionSeqId"/> |
| </hyperlink> |
| </field> |
| <field name="itemLink" title=" " widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonItems}" target="ListContentRevisionItem" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="contentRevisionSeqId"/> |
| <parameter param-name="rootContentId"/> |
| <parameter param-name="rootContentRevisionSeqId"/> |
| </hyperlink> |
| </field> |
| <field name="create" title=" " widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonCreate}" target="EditContentRevision" also-hidden="false"> |
| <parameter param-name="contentId"/> |
| <parameter param-name="contentRevisionSeqId"/> |
| <parameter param-name="rootContentId"/> |
| <parameter param-name="rootContentRevisionSeqId"/> |
| </hyperlink> |
| </field> |
| <field name="tree" title=" " widget-style="buttontext" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)"> |
| <hyperlink description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree" also-hidden="false"> |
| <parameter param-name="rootContentId" from-field="contentId"/> |
| <parameter param-name="rootContentRevisionSeqId" from-field="contentRevisionSeqId"/> |
| </hyperlink> |
| </field> |
| <field name="tree" title=" " widget-style="buttontext" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)"> |
| <hyperlink description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree" also-hidden="false"> |
| <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" default-table-style="basic-table"> |
| <alt-target target="createContentRevisionItem" use-when="contentRevisionItem==null"/> |
| <auto-fields-entity entity-name="ContentRevisionItem"/> |
| |
| <field name="rootContentId" map-name="empty" widget-style="buttontext"><hidden/></field> |
| <field name="rootContentRevisionSeqId" map-name="empty" widget-style="buttontext"><hidden/></field> |
| <field name="contentId" widget-style="buttontext"><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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="ListContentRevisionItem" list-name="contentRevisionItemList" type="list" |
| odd-row-style="alternate-row" default-table-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="editLink" title=" " widget-style="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonEdit}" target="EditContentRevisionItem" also-hidden="false"> |
| <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="buttontext"> |
| <hyperlink description="${uiLabelMap.CommonCreate}" target="EditContentRevisionItem" also-hidden="false"> |
| <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" default-table-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 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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="AddContentApproval" default-map-name="contentApproval" target="createContentApproval" type="single" |
| header-row-style="header-row" default-table-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 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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="ListContentApproval" target="updateContentApproval" list-name="contentApprovalList" type="list" |
| odd-row-style="alternate-row" default-table-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 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="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit/></field> |
| <field name="deleteButton" title="${uiLabelMap.CommonDelete}" widget-style="smallSubmit"> |
| <hyperlink description="${uiLabelMap.CommonDelete}" target="removeContentApproval"> |
| <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" default-table-style="basic-table hover-bar" separate-columns="true"> |
| <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 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="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)"><submit/></field> |
| </form> |
| |
| <form name="AddRootCompDocInstance" default-map-name="" type="single" target="genCompDocInstance" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="EditRootCompDocInstance" default-map-name="content" type="single" target="updateRootCompDocTemplate" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="AddRootCompDocTemplate" default-map-name="" type="single" target="createRootCompDocTemplate" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="EditRootCompDocTemplate" default-map-name="content" type="single" target="updateRootCompDocTemplate" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="AddChildCompDoc" default-map-name="" type="single" target="${childCompDocTarget}" |
| header-row-style="header-row" default-table-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"><date-time default-value="${nowTimestamp}"/></field> |
| <field name="thruDate"><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"/> |
| </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="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="EditChildCompDoc" default-map-name="contentAssoc" type="single" target="${childCompDocTarget}" |
| header-row-style="header-row" default-table-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"><display/></field> |
| <field name="thruDate"><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"/> |
| </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="buttontext" 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="buttontext" 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="buttontext" |
| 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" target-window="_blank" also-hidden="false"> |
| <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="buttontext" |
| 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" target-window="_blank" also-hidden="false"> |
| <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="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> |
| </form> |
| |
| <form name="ViewChildCompDoc" default-map-name="contentAssoc" type="single" target="" |
| header-row-style="header-row" default-table-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.CommonFromDate}"><display/></field> |
| <field name="thruDate" title="${uiLabelMap.CommonThruDate}"><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"/> |
| </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" default-table-style="basic-table"> |
| <auto-fields-entity entity-name="ContentRevision"/> |
| <auto-fields-entity entity-name="ContentRevisionItem"/> |
| |
| <field name="contentId" widget-style="buttontext"><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="submitButton" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| <form name="UploadCompDocContent" type="upload" target="uploadCompDocContent" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonUpload}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="UploadCompDocPdf2Survey" type="upload" target="persistCompDocPdf2Survey" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonUpload}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="EditCompDocTextContent" type="single" target="uploadCompDocContent" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| |
| <form name="UploadCompDocSurveyId" type="single" target="uploadCompDocContent" |
| header-row-style="header-row" default-table-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="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit/></field> |
| </form> |
| </forms> |