git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514106 13f79535-47bb-0310-9956-ffa450edef68
489 lines
32 KiB
XML
489 lines
32 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://www.ofbiz.org/dtds/widget-form.xsd">
|
|
|
|
<form name="viewCommunication" type="single" target="editCommunication" default-map-name="communicationEvent">
|
|
<alt-target target="createCommunicationEvent" use-when="communicationEvent==null"/>
|
|
<field name="communicationEventId" use-when="communicationEvent != null"><display/></field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><display/></field>
|
|
<field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}"><display/></field>
|
|
<field name="statusId" use-when="statusId==null"><display/></field>
|
|
<field name="statusId" use-when="statusId!=null"><display/></field>
|
|
<field name="contactMechTypeId" use-when="commEventContactMechType!=null&&parentCommEventContactMechType==null"><display/></field>
|
|
<field name="contactMechTypeId" use-when="commEventContactMechType==null&&parentCommEventContactMechType!=null"><display/></field>
|
|
<field name="contactMechTypeId" use-when="commEventContactMechType==null&&parentCommEventContactMechType==null"><display/></field>
|
|
<field name="roleTypeIdFrom" use-when="commEventRoleTypeIdFrom!=null"><display/></field>
|
|
<field name="roleTypeIdTo" use-when="commEventRoleTypeIdTo!=null"><display/></field>
|
|
<field name="custRequestId"><display/></field>
|
|
<field name="datetimeStarted" title="${uiLabelMap.CommonStartDate}"><display/></field>
|
|
<field name="datetimeEnded" title="${uiLabelMap.CommonFinishDate}"><display/></field>
|
|
<field map-name="subjectMap" name="subject"><display/></field>
|
|
<field map-name="subjectMap" name="note" title="${uiLabelMap.CommonNote}"><display/></field>
|
|
<field name="content" title="${uiLabelMap.CommonContent}"><text size="1"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonEdit}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="EditCommEvent" type="single" target="updateCommunicationEvent" default-map-name="communicationEvent">
|
|
<actions>
|
|
<entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
|
|
<field-map field-name="statusId" env-name="communicationEvent.statusId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<alt-target target="createCommunicationEvent" use-when="communicationEvent==null"/>
|
|
<field name="partyId" map-name="parameters"><hidden/></field>
|
|
<field name="communicationEventId" use-when="communicationEvent!=null"><display/></field>
|
|
<field name="communicationEventTypeId">
|
|
<drop-down>
|
|
<entity-options entity-name="CommunicationEventType" description="${description}">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><lookup target-form-name="LookupPartyName" default-value="${userLogin.partyId}"/></field>
|
|
<field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}"><lookup target-form-name="LookupPartyName" default-value="${userLogin.partyId}"/></field>
|
|
<field name="statusId" use-when="communicationEvent==null" title="${uiLabelMap.CommonStatus}" >
|
|
<drop-down>
|
|
<entity-options description="${description}" entity-name="StatusItem" key-field-name="statusId">
|
|
<entity-constraint name="statusTypeId" operator="equals" value="COM_EVENT_STATUS"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="statusId" use-when="communicationEvent!=null" title="${uiLabelMap.CommonStatus}" >
|
|
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
|
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
|
<entity-constraint name="statusId" value="${communicationEvent.statusId}"/>
|
|
<entity-order-by field-name="sequenceId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="contactMechTypeId"> <!-- does not have use-when restrictions so we can enter what the contactMechTypeId is -->
|
|
<drop-down>
|
|
<entity-options description="${description}" entity-name="ContactMechType" key-field-name="contactMechTypeId">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<!-- this is an example of how to display different types of contact mech to the user -->
|
|
<field name="contactMechIdFrom" title="${uiLabelMap.PartyFromEmailAddress}"
|
|
use-when="(parameters.get("communicationEventTypeId")!=null)&&(parameters.get("communicationEventTypeId").equals("EMAIL_COMMUNICATION"))">
|
|
<drop-down allow-empty="false" current="selected">
|
|
<list-options key-name="contactMechId" list-name="userEmailAddresses" description="${infoString}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="contactMechIdFrom" title="${uiLabelMap.PartyFromContactMech}"
|
|
use-when="(parameters.get("communicationEventTypeId")==null)||!(parameters.get("communicationEventTypeId").equals("EMAIL_COMMUNICATION"))"><text/></field>
|
|
<!-- TODO: somehow show the address or email here, rather than just a contactMechId -->
|
|
<field name="contactMechIdTo" title="${uiLabelMap.PartyToEmailAddress}"
|
|
use-when="(parameters.get("communicationEventTypeId")!=null)&&(parameters.get("communicationEventTypeId").equals("EMAIL_COMMUNICATION"))">
|
|
<drop-down allow-empty="false" current="selected" no-current-selected-key="${parameters.contactMechIdTo}">
|
|
<list-options key-name="contactMechId" list-name="targetEmailAddresses" description="${infoString}"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="contactMechIdTo" title="${uiLabelMap.PartyToContactMech}"
|
|
use-when="(parameters.get("communicationEventTypeId")==null)||!(parameters.get("communicationEventTypeId").equals("EMAIL_COMMUNICATION"))"><text/></field>
|
|
<field name="roleTypeIdFrom" use-when="commEventRoleTypeIdFrom!=null">
|
|
<drop-down no-current-selected-key="_NA_">
|
|
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="roleTypeIdTo" use-when="commEventRoleTypeIdTo!=null">
|
|
<drop-down no-current-selected-key="_NA_">
|
|
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="contactListId">
|
|
<lookup size="20" target-form-name="LookupContactList">
|
|
<sub-hyperlink target="/marketing/control/EditContactList?contactListId=${communicationEvent.contactListId}" target-type="inter-app" link-style="smallSubmit"/>
|
|
</lookup>
|
|
</field>
|
|
<field name="datetimeStarted" title="${uiLabelMap.CommonStartDate}"><date-time/></field>
|
|
<field name="datetimeEnded" title="${uiLabelMap.CommonFinishDate}"><date-time/></field>
|
|
<field name="subject"><text size="60"/></field>
|
|
<field name="contentMimeTypeId">
|
|
<drop-down no-current-selected-key="_NA_" allow-empty="false">
|
|
<entity-options description="${mimeTypeId}" entity-name="MimeType" key-field-name="mimeTypeId">
|
|
<entity-order-by field-name="mimeTypeId"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="content" title="${uiLabelMap.CommonContent}"><textarea cols="60" rows="10"/></field>
|
|
<field name="note" title="${uiLabelMap.CommonNote}"><textarea cols="60" rows="3"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSave}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="ViewCommEvent" type="single" default-map-name="communicationEvent">
|
|
<field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><display-entity description="${firstName} ${lastName} [${partyId}]" entity-name="Person" key-field-name="partyId"/></field>
|
|
<field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}"><display-entity description="${firstName} ${lastName} [${partyId}]" entity-name="Person" key-field-name="partyId"/></field>
|
|
<field name="statusId"><display-entity description="${description}" entity-name="StatusItem" key-field-name="statusId"/></field>
|
|
<field name="contactMechTypeId"><display-entity description="${description}" entity-name="ContactMechType" key-field-name="contactMechTypeId"/></field>
|
|
<!-- This will display email addresses when it is an email. This could be more elaborate to show the actual string, or it could
|
|
be done probably with a Java helper method to cut down on repetitive code -->
|
|
<field name="contactMechIdFrom" title="${uiLabelMap.PartyFromEmailAddress}"
|
|
use-when="((communicationEvent.getString("contactMechTypeId")!=null)&&(communicationEvent.getString("contactMechTypeId").equals("EMAIL_ADDRESS")))">
|
|
<display-entity entity-name="ContactMech" key-field-name="contactMechId" description="${infoString}"/>
|
|
</field>
|
|
<field name="contactMechIdFrom" title="${uiLabelMap.PartyFromContactMech}"
|
|
use-when="((communicationEvent.getString("contactMechTypeId")==null)||!(communicationEvent.getString("contactMechTypeId").equals("EMAIL_ADDRESS")))"><display/></field>
|
|
<field name="contactMechIdTo" title="${uiLabelMap.PartyToEmailAddress}"
|
|
use-when="((communicationEvent.getString("contactMechTypeId")!=null)&&(communicationEvent.getString("contactMechTypeId").equals("EMAIL_ADDRESS")))">
|
|
<display-entity entity-name="ContactMech" key-field-name="contactMechId" description="${infoString}"/>
|
|
</field>
|
|
<field name="contactMechIdTo" title="${uiLabelMap.PartyToContactMech}"
|
|
use-when="((communicationEvent.getString("contactMechTypeId")==null)||!(communicationEvent.getString("contactMechTypeId").equals("EMAIL_ADDRESS")))"><display/></field>
|
|
<field name="roleTypeIdFrom"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
|
|
<field name="roleTypeIdTo"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
|
|
<field name="datetimeStarted" title="${uiLabelMap.CommonStartDate}"><display/></field>
|
|
<field name="datetimeEnded" title="${uiLabelMap.CommonFinishDate}"><display/></field>
|
|
<field name="subject"><display/></field>
|
|
<field map-name="subjectMap" name="eventNote" title="${uiLabelMap.CommonNote}"><display/></field>
|
|
<field name="contentMimeTypeId"><display/></field>
|
|
<field name="content" title="${uiLabelMap.CommonContent}"><textarea cols="60" rows="10"/></field>
|
|
<field name="content" title="${uiLabelMap.CommonContent}" use-when="(communicationEvent.getString("contentMimeTypeId")!=null)&&(communicationEvent.getString("contentMimeTypeId").indexOf("text/html")) != -1">
|
|
<display also-hidden="false"/> <!-- if not set, it is also hidden, which could cause it to re-dislay -->
|
|
</field>
|
|
</form>
|
|
|
|
<form name="findCommEvents" type="single" target="ListLookupCommEvents"
|
|
paginate="true">
|
|
<field name="communicationEventId" use-when="communicationEvent != null"><text-find/></field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="partyIdTo" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonTo}"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="communicationEventTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="statusId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options description="${description}" entity-name="StatusItem">
|
|
<entity-constraint name="statusTypeId" operator="equals" value="COM_EVENT_STATUS"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="contactMechTypeId">
|
|
<drop-down allow-empty="true">
|
|
<entity-options description="${description}" entity-name="ContactMechType" key-field-name="contactMechTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="roleTypeIdFrom">
|
|
<drop-down allow-empty="true">
|
|
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="custRequestId"><lookup size="20" target-form-name="LookupCustRequest"/></field>
|
|
<field name="datetimeStarted" title="${uiLabelMap.CommonStartDate}"><date-find/></field>
|
|
<field name="datetimeEnded" title="${uiLabelMap.CommonFinishDate}"><date-find/></field>
|
|
<field map-name="subjectMap" name="subject"><text-find/></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}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="ListCommEvents" type="list">
|
|
<field name="communicationEventId" widget-style="smallSubmit">
|
|
<hyperlink description="${communicationEventId}" target="EditCommunicationEvent?communicationEventId=${communicationEventId}" target-type="intra-app"/>
|
|
</field>
|
|
<field name="partyIdFrom" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonFrom}">
|
|
<display-entity description="${firstName} ${lastName} [${partyId}]" entity-name="Person" key-field-name="partyId"/>
|
|
</field>
|
|
<field name="partyIdTo" title="${uiLabelMap.CommonPartyID} ${uiLabelMap.CommonTo}">
|
|
<display-entity description="${firstName} ${lastName} [${partyId}]" entity-name="Person" key-field-name="partyId"/>
|
|
</field>
|
|
<field name="communicationEventTypeId"><display-entity description="${description}" entity-name="CommunicationEventType" key-field-name="communicationEventTypeId"/></field>
|
|
<field name="statusId"><display-entity description="${description}" entity-name="StatusItem" key-field-name="statusId"/></field>
|
|
<field name="contactMechTypeId"><display-entity description="${description}" entity-name="ContactMechType" key-field-name="contactMechTypeId"/></field>
|
|
<field name="roleTypeIdFrom"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
|
|
<field name="roleTypeIdTo"><display-entity description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/></field>
|
|
<field name="datetimeStarted" title="${uiLabelMap.CommonStartDate}"><display/></field>
|
|
<field name="datetimeEnded" title="${uiLabelMap.CommonFinishDate}"><display/></field>
|
|
<field name="custRequestId" widget-style="smallSubmit"><hyperlink target="/ordermgr/control/EditRequest?custRequestId=${custRequestId}" target-type="inter-app"/></field>
|
|
<field map-name="subjectMap" name="subject"><display/></field>
|
|
</form>
|
|
|
|
<form name="ListPartyCommEvents" type="list" extends="ListCommEvents">
|
|
<actions>
|
|
<entity-condition entity-name="CommunicationEvent">
|
|
<condition-list combine="or">
|
|
<condition-expr field-name="partyIdFrom" operator="equals" value="${partyId}"/>
|
|
<condition-expr field-name="partyIdTo" operator="equals" value="${partyId}"/>
|
|
</condition-list>
|
|
</entity-condition>
|
|
</actions>
|
|
<field name="communicationEventId" widget-style="smallSubmit">
|
|
<hyperlink description="${communicationEventId}" target="EditCommunicationEvent?communicationEventId=${communicationEventId}&partyId=${partyId}" target-type="intra-app"/>
|
|
</field>
|
|
<field name="removeLink" title="" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deletePartyCommunicationEvent?partyId=${partyId}&communicationEventId=${communicationEventId}"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="ListPendingCommEvents" type="list" extends="ListCommEvents">
|
|
<actions>
|
|
<entity-condition entity-name="CommunicationEvent">
|
|
<condition-list combine="and">
|
|
<condition-list combine="or">
|
|
<condition-expr field-name="partyIdFrom" operator="equals" value="${partyId}"/>
|
|
<condition-expr field-name="partyIdTo" operator="equals" value="${partyId}"/>
|
|
</condition-list>
|
|
<condition-expr env-name="" field-name="statusId" operator="equals" value="COM_PENDING"/>
|
|
</condition-list>
|
|
</entity-condition>
|
|
</actions>
|
|
</form>
|
|
|
|
<form name="ListLookupCommEvents" type="list" list-name="listIt" extends="ListCommEvents" target="updateCommunicationEvent"
|
|
paginate-target="ListLookupCommEvents">
|
|
<actions>
|
|
<service result-map-list-name="listIt" result-map-name="result" service-name="performFind">
|
|
<field-map env-name="parameters" field-name="inputFields"/>
|
|
<field-map env-name="entityName" field-name="entityName"/>
|
|
<field-map value="datetimeStarted DESC" field-name="orderBy"/>
|
|
</service>
|
|
</actions>
|
|
<field name="removeLink" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="deleteCommunicationEvent?communicationEventId=${communicationEventId}"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="ListCommWorkEfforts" type="list">
|
|
<actions>
|
|
<entity-and entity-name="CommunicationEventWorkEff" use-cache="false">
|
|
<field-map field-name="communicationEventId"/>
|
|
<order-by field-name="workEffortId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<field name="workEffortId" title="${uiLabelMap.WorkEffort}">
|
|
<display-entity entity-name="WorkEffort" description="${workEffortName}">
|
|
<sub-hyperlink description="${workEffortId}" target="/workeffort/control/WorkEffortSummary?workEffortId=${workEffortId}" target-type="inter-app" link-style="smallSubmit"/>
|
|
</display-entity>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="AddCommEventWorkEffort" type="single" extends="EditWorkEffort"
|
|
extends-resource="component://workeffort/widget/WorkEffortForms.xml"
|
|
target="createCommEventWorkEffort">
|
|
<field name="communicationEventId"><display/></field>
|
|
<field name="workEffortId" use-when="workEffort==null&&workEffortId==null" ><lookup target-form-name="/workeffort/control/LookupWorkEffort"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSave}" widget-style="smallSubmit"><submit button-type="text-link"/> </field>
|
|
<sort-order>
|
|
<sort-field name="communicationEventId"/>
|
|
<banner left-text="${uiLabelMap.WorkEffortBanner1}"/>
|
|
<sort-field name="workEffortId"/>
|
|
<banner left-text="${uiLabelMap.WorkEffortBanner2}"/>
|
|
</sort-order>
|
|
</form>
|
|
|
|
<form name="ListCommPurposes" type="list">
|
|
<actions>
|
|
<entity-and entity-name="CommunicationEventPurpose" use-cache="true">
|
|
<field-map field-name="communicationEventId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<field name="communicationEventPrpTypId">
|
|
<display-entity description="${description}" entity-name="CommunicationEventPrpTyp"/>
|
|
</field>
|
|
<field name="removeLink" title="" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="removeCommunicationEventPurpose?communicationEventPrpTypId=${communicationEventPrpTypId}&communicationEventId=${communicationEventId}"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="AddEventPurpose" type="single" target="createCommunicationEventPurpose">
|
|
<field name="communicationEventId"><hidden/></field>
|
|
<field name="partyId"><hidden/></field>
|
|
<field name="communicationEventPrpTypId" >
|
|
<drop-down>
|
|
<entity-options description="${description}" entity-name="CommunicationEventPrpTyp" key-field-name="communicationEventPrpTypId">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.PartyAddPurpose}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="ListCommRoles" type="list">
|
|
<actions>
|
|
<entity-and entity-name="CommunicationEventRole" use-cache="true">
|
|
<field-map field-name="communicationEventId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<field name="partyId" title="${uiLabelMap.PartyPartyId}">
|
|
<display-entity description="${firstName} ${middleName} ${lastName} ${groupName}" entity-name="PartyNameView">
|
|
<sub-hyperlink target="viewprofile?partyId=${partyId}" link-style="smallSubmit" description="${partyId}"/>
|
|
</display-entity>
|
|
</field>
|
|
<field name="roleTypeId"><display-entity description="${description}" entity-name="RoleType"/></field>
|
|
<field name="removeLink" title="" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonDelete}" target="/RemoveCommunicationEventRole?partyId=${partyId}&roleTypeId=${roleTypeId}&communicationEventId=${communicationEventId}"/>
|
|
</field>
|
|
</form>
|
|
|
|
<form name="AddEventRole" type="single" target="createCommunicationEventRole">
|
|
<field name="communicationEventId"><hidden/></field>
|
|
<field name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPartyName"/></field>
|
|
<field name="roleTypeId" >
|
|
<drop-down>
|
|
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId">
|
|
<entity-order-by field-name="description"/>
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.PartyAddRole}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="listCommContent" type="list" list-name="contentDataResourceList"
|
|
paginate-target="/ListCommContent" view-size="20">
|
|
<actions>
|
|
<entity-and entity-name="CommEventContentDataResource" list-name="contentDataResourceList">
|
|
<field-map field-name="communicationEventId"/>
|
|
</entity-and>
|
|
</actions>
|
|
|
|
<field name="editContent" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonEdit}" target="EditCommContent?contentId=${contentId}&dataResourceId=${dataResourceId}&communicationEventId=${communicationEventId}&fromDate=${fromDate}"/>
|
|
</field>
|
|
<field name="viewContent" widget-style="smallSubmit">
|
|
<hyperlink also-hidden="false" description="${uiLabelMap.CommonView}" target="ViewSimpleContent?contentId=${contentId}&dataResourceId=${dataResourceId}&communicationEventId=${communicationEventId}&fromDate=${fromDate}"/>
|
|
</field>
|
|
<field name="contentName"><display/></field>
|
|
<field name="contentId"><display/></field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="dataResourceId"><display/></field>
|
|
</form>
|
|
|
|
<form name="addCommContent" type="single" target="createCommContentDataResource">
|
|
<field name="communicationEventId"><hidden/></field>
|
|
<field name="contentId"><ignored/></field>
|
|
<field name="contentName"><text/></field>
|
|
<field name="contentTypeId"><hidden value="DOCUMENT"/></field>
|
|
<field name="dataResourceTypeId"><hidden value=""/></field>
|
|
<field name="fromDate"><date-time default-value="${nowTimestamp}"/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="sequenceNum"><text/></field>
|
|
|
|
<field name="drMimeTypeId" widget-style="smallSelect">
|
|
<drop-down allow-empty="false">
|
|
<option key="application/msword" description="MS Word"/>
|
|
<option key="application/pdf" description="PDF File"/>
|
|
<option key="application/vnd.ofbiz.survey" description="Survey"/>
|
|
<option key="text/html" description="HTML Text"/>
|
|
<option key="text/plain" description="Plain Text"/>
|
|
<option key="image/jpeg" description="JPEG"/>
|
|
<option key="image/gif" description="GIF"/>
|
|
<option key="image/tiff" description="TIFF"/>
|
|
<option key="image/png" description="PNG"/>
|
|
<option key="application/octet-stream" description="Other"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="editCommContent" type="single" target="updateCommContentDataResource" default-map-name="commEventContentDataResource">
|
|
<field name="communicationEventId"><display/></field>
|
|
<field name="contentId"><display/></field>
|
|
<field name="dataResourceId"><display/></field>
|
|
<field name="contentName"><text/></field>
|
|
<field name="fromDate"><display/></field>
|
|
<field name="thruDate"><date-time/></field>
|
|
<field name="sequenceNum"><text/></field>
|
|
<field name="drMimeTypeId">
|
|
<drop-down allow-empty="false">
|
|
<option key="application/msword" description="MS Word"/>
|
|
<option key="application/pdf" description="PDF File"/>
|
|
<option key="application/vnd.ofbiz.survey" description="Survey"/>
|
|
<option key="text/html" description="HTML Text"/>
|
|
<option key="text/plain" description="Plain Text"/>
|
|
<option key="image/jpeg" description="JPEG"/>
|
|
<option key="image/gif" description="GIF"/>
|
|
<option key="image/tiff" description="TIFF"/>
|
|
<option key="image/png" description="PNG"/>
|
|
<option key="application/octet-stream" description="Other"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="dataResourceTypeId" entry-name="drDataResourceTypeId">
|
|
<drop-down allow-empty="false">
|
|
<entity-options entity-name="DataResourceType" description="${description}">
|
|
|
|
</entity-options>
|
|
</drop-down>
|
|
</field>
|
|
<!-- <field name="mimeTypeId" map-name="dataResource" title="Document Type"><display/></field> -->
|
|
<!-- <field name="contentTypeId" map-name="content" title="Content Type"><display/></field> -->
|
|
<!-- add these back if it looks like Surveys need to be added to CommEvents
|
|
<field name="relatedDetailId" map-name="dataResource" title="Survey ID"
|
|
use-when="dataResource!=null && "SURVEY".equals(dataResource.getString("dataResourceTypeId"))">
|
|
<lookup target-form-name="LookupSurvey">
|
|
<sub-hyperlink target="EditSurvey?surveyId=${dataResource.relatedDetailId}" description="Edit Survey" link-style="smallSubmit"
|
|
use-when="dataResource.get("relatedDetailId")!=null"/>
|
|
</lookup>
|
|
</field>
|
|
<field name="relatedDetailId" map-name="dataResource" title="Survey Response ID"
|
|
use-when="dataResource!=null && "SURVEY_RESPONSE".equals(dataResource.getString("dataResourceTypeId"))">
|
|
<lookup target-form-name="LookupSurveyResponse">
|
|
<sub-hyperlink target="EditSurveyResponse?surveyResponseId=${dataResource.relatedDetailId}"
|
|
description="Edit Survey Response" link-style="smallSubmit" use-when="dataResource!=null && dataResource.get("relatedDetailId")!=null"/>
|
|
</lookup>
|
|
</field>
|
|
<field name="surveyResponseLink" map-name="dummy" widget-style="smallSubmit"
|
|
use-when=""DOCUMENT".equals(contentTypeId) && dataResource!=null && dataResource.get("relatedDetailId")==null && templateDataResource!=null && templateDataResource.get("relatedDetailId")!=null">
|
|
<hyperlink description="Create Response (for Survey ${templateDataResource.relatedDetailId})" target="EditSurveyResponse?surveyId=${templateDataResource.relatedDetailId}" also-hidden="false" target-window="_blank"/>
|
|
</field>
|
|
-->
|
|
<!--
|
|
<field name="objectInfo" title="Current File Name" map-name="dataResource"
|
|
use-when="mimeTypeId!=null && !mimeTypeId.startsWith("text")">
|
|
<display also-hidden="false"/>
|
|
</field>
|
|
-->
|
|
|
|
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"><submit button-type="button"/></field>
|
|
</form>
|
|
|
|
<form name="uploadCommContent" type="upload" target="uploadCommEventContent" default-map-name="commEventContentDataResource">
|
|
<field name="contentId" map-name="contentAssoc"><hidden/></field>
|
|
<field name="drDataResourceId"><hidden/></field>
|
|
<field name="drDataResourceTypeId"><hidden/></field>
|
|
<field name="drMimeTypeId" ><hidden/></field>
|
|
<field name="communicationEventId"><hidden/></field>
|
|
<field name="fromDate"><hidden/></field>
|
|
<field name="drObjectInfo"><text/></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" map-name="empty"><file/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonUpload}"><submit/></field>
|
|
</form>
|
|
|
|
<form name="editCommTextContent" type="single" target="uploadCommEventContent" default-map-name="commEventContentDataResource">
|
|
<field name="contentId" ><hidden/></field>
|
|
<field name="drDataResourceId" ><hidden/></field>
|
|
<field name="drDataResourceTypeId" ><hidden/></field>
|
|
<field name="drMimeTypeId" ><hidden/></field>
|
|
<field name="communicationEventId"><hidden/></field>
|
|
<field name="fromDate"><hidden/></field>
|
|
<field name="textData" map-name="electronicText" title="Text Data"><textarea rows="30" cols="60"/></field>
|
|
<field name="submitButton" title="${uiLabelMap.CommonSave}"><submit/></field>
|
|
</form>
|
|
|
|
</forms>
|