git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746049 13f79535-47bb-0310-9956-ffa450edef68
544 lines
40 KiB
XML
544 lines
40 KiB
XML
<?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"
|
|
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" 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"/>
|
|
</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 also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc?contentId=${contentId}&rootContentId=${caContentIdTo}&caContentAssocTypeId=${caContentAssocTypeId}&caFromDate=${caFromDate}"/>
|
|
</field>
|
|
<field name="edit" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc?contentId=${contentId}&rootContentId=${caContentIdTo}&caContentAssocTypeId=${caContentAssocTypeId}&caFromDate=${caFromDate}"/>
|
|
</field>
|
|
<field name="edit" use-when=""TEMPLATE".equals(contentTypeId)" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc?contentId=${contentId}&rootContentId=${caContentIdTo}&caContentAssocTypeId=${caContentAssocTypeId}&caFromDate=${caFromDate}"/>
|
|
</field>
|
|
<field name="edit" use-when=""DOCUMENT".equals(contentTypeId)" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditChildCompDoc?contentId=${contentId}&rootContentId=${caContentIdTo}&caContentAssocTypeId=${caContentAssocTypeId}&caFromDate=${caFromDate}"/>
|
|
</field>
|
|
<field name="tree" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree?rootContentId=${contentId}"/>
|
|
</field>
|
|
<field name="tree" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree?rootContentId=${contentId}"/>
|
|
</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" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditRootCompDoc?rootContentId=${contentId}"/>
|
|
</field>
|
|
<field name="templateTree" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree?rootContentId=${contentId}"/>
|
|
</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 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="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="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevision?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="itemLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonItems}" target="ListContentRevisionItem?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="create" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonCreate}" target="EditContentRevision?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="tree" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when=""COMPDOC_INSTANCE".equals(contentTypeId)">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocInstanceTree?rootContentId=${contentId}&rootContentRevisionSeqId=${contentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="tree" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when=""COMPDOC_TEMPLATE".equals(contentTypeId)">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.ContentTree}" target="ViewCompDocTemplateTree?rootContentId=${contentId}&rootContentRevisionSeqId=${contentRevisionSeqId}"/>
|
|
</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="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevisionItem?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&itemContentId=${itemContentId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="create" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonCreate}" target="EditContentRevisionItem?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</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" widget-style="tabletext"><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="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 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="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" widget-style="tabletext"><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="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit/></field>
|
|
<field name="deleteButton" title="${uiLabelMap.CommonDelete}" widget-style="smallSubmit">
|
|
<hyperlink target="removeContentApproval?contentApprovalId=${contentApprovalId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}" description="${uiLabelMap.CommonDelete}"></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">
|
|
<field name="contentApprovalId" widget-style="tabletext"><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="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" widget-style="tabletext"><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" widget-style="tabletext"><display/></field>
|
|
<field name="contentName"><text/></field>
|
|
<field name="instanceOfContentId" widget-style="tabletext"><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" widget-style="tabletext"><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)" widget-style="tabletext"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
|
|
<field name="caContentIdTo" entry-name="rootContentId" map-name="parameters" widget-style="tabletext" title="${uiLabelMap.ContentCompDocParentContentId}">
|
|
<display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/>
|
|
</field>
|
|
<field name="contentAssocTypeId" widget-style="tabletext"><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)" widget-style="tabletext">
|
|
<display description="Survey Response"/>
|
|
</field>
|
|
<field name="mimeTypeId" title="${uiLabelMap.ContentDocumentType}" use-when=""DOCUMENT".equals(contentTypeId) && !"SURVEY".equals(templateDataResourceTypeId)" widget-style="tabletext">
|
|
<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="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" widget-style="tabletext"><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)" widget-style="tabletext"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
|
|
<field name="contentIdTo" widget-style="tabletext"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
|
|
<field name="contentAssocTypeId" widget-style="tabletext"><display-entity entity-name="ContentAssocType" also-hidden="false"/></field>
|
|
<field name="fromDate" widget-style="tabletext"><display/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="sequenceNum"><text/></field>
|
|
|
|
<field name="mimeTypeId" map-name="dataResource" widget-style="tabletext"
|
|
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" widget-style="tabletext"
|
|
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" widget-style="tabletext"
|
|
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" widget-style="tabletext"><display/></field> -->
|
|
<!-- <field name="contentTypeId" map-name="content" title="Content Type" widget-style="tabletext"><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?surveyId=${dataResource.relatedDetailId}" description="${uiLabelMap.PageTitleEditSurvey}" link-style="buttontext"
|
|
use-when="dataResource.get("relatedDetailId")!=null"/>
|
|
</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?surveyResponseId=${dataResource.relatedDetailId}"
|
|
description="${uiLabelMap.PageTitleEditSurveyResponse}" link-style="buttontext" use-when="dataResource!=null && dataResource.get("relatedDetailId")!=null"/>
|
|
</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?surveyId=${templateDataResource.relatedDetailId}&dataResourceId=${dataResource.dataResourceId}&rootContentId=${rootContentId}" also-hidden="false" target-window="_blank"/>
|
|
</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?surveyId=${templateDataResource.relatedDetailId}&surveyResponseId=${dataResource.relatedDetailId}&dataResourceId=${dataResource.dataResourceId}&rootContentId=${rootContentId}" also-hidden="false" target-window="_blank"/>
|
|
</field>
|
|
|
|
<field name="objectInfo" map-name="dataResource" widget-style="tabletext"
|
|
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" widget-style="tabletext"><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")" widget-style="tabletext"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
|
|
<field name="contentIdTo" widget-style="tabletext" title="${uiLabelMap.ContentCompDocParentContentId}"><display-entity entity-name="Content" key-field-name="contentId" description="${contentName} [${contentId}]"/></field>
|
|
<field name="contentAssocTypeId" widget-style="tabletext"><display-entity entity-name="ContentAssocType" also-hidden="false"/></field>
|
|
<field name="fromDate" title="${uiLabelMap.CommonFromDate}" widget-style="tabletext"><display/></field>
|
|
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display/></field>
|
|
<field name="sequenceNum" title="Sequence Num"><display/></field>
|
|
|
|
<field name="mimeTypeId" map-name="dataResource" title="${uiLabelMap.ContentDocumentType}" widget-style="tabletext">
|
|
<display-entity entity-name="MimeType" key-field-name="mimeTypeId" description="${description}"/>
|
|
</field>
|
|
<field name="relatedDetailId" map-name="dataResource" title="Survey ID" use-when="dataResource!=null&&"SURVEY".equals(dataResource.getString("dataResourceTypeId"))">
|
|
<display/>
|
|
</field>
|
|
<field name="relatedDetailId" map-name="dataResource" title="Survey Response ID" 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>
|
|
<!-- TO BE REMOVED
|
|
<form name="ListContentRevisionItemApproval" type="list"
|
|
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
|
<actions>
|
|
<entity-and entity-name="ContentRevisionItemAndContentApprovalView" use-cache="true">
|
|
<field-map from-field="contentId" field-name="contentId"/>
|
|
<field-map from-field="contentRevisionSeqId" field-name="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="editLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="approvalCount > 0">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditContentRevisionItem?contentId=${contentId}&contentRevisionSeqId=${contentRevisionSeqId}&itemContentId=${itemContentId}&rootContentId=${rootContentId}&rootContentRevisionSeqId=${rootContentRevisionSeqId}"/>
|
|
</field>
|
|
<field name="create" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
|
<hyperlink also-hidden="false" description="Create" target="EditContentRevisionItem"/>
|
|
</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> |