Files
ofbiz-framework/applications/content/widget/forum/ForumForms.xml
T
Pranay Pandey 97b5e976dc [OFBIZ-7554] Fixed issues with Forum Screens Delete and Update buttons.
Issues fixed are:
- Forum list on Forum Group View
-- Delete button is not showing up and working.
-- Update button is not working.
- Forum Group Roles
-- Delete button is not showing up and working.
- Messages for Forum View
-- Delete button is not showing up and working.
-- Update button is not working.

Thanks Mohammed Rehan Khan for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750624 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 12:34:35 +00:00

253 lines
18 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"
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="ListForumGroups" type="list" list-name="forumGroups" separate-columns="true" target="updateForumGroup"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<field name="select" widget-style="buttontext" entry-name="contentId" parameter-name="contentId">
<hyperlink target="findForums" description="${uiLabelMap.FormFieldTitle_forums}">
<parameter param-name="forumGroupId" from-field="contentId"/>
</hyperlink>
</field>
<field name="forumGroupName" entry-name="contentName" parameter-name="contentName"><text/></field>
<field name="forumGroupDescription" entry-name="description" parameter-name="description"><text/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit button-type="text-link"/></field>
</form>
<form name="AddForumGroup" type="single" target="createForumGroup" title="" default-map-name="forumGroup"
header-row-style="header-row" default-table-style="basic-table">
<field name="forumGroupName" parameter-name="contentName"><text/></field>
<field name="forumGroupDescription" parameter-name="description"><text/></field>
<field name="contentTypeId"><hidden value="FORUM_ROOT"/></field>
<field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListForums" type="list" list-name="forums" separate-columns="true" target="updateForum"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="caContentId"><hidden value="${caContentId}"/></field>
<field name="caContentIdTo"><hidden value="${caContentIdTo}"/></field>
<field name="caContentAssocTypeId"><hidden value="${caContentAssocTypeId}"/></field>
<field name="contentTypeId"><hidden/></field>
<field name="select" widget-style="buttontext" entry-name="contentId" parameter-name="contentId">
<hyperlink target="findForumMessages" description="${uiLabelMap.ContentForumMessages}">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="forumId" from-field="contentId"/>
</hyperlink>
</field>
<field name="forumName" entry-name="contentName" parameter-name="contentName"><text/></field>
<field name="forumDescription" entry-name="description" parameter-name="description"><text/></field>
<field name="thruDate" entry-name="caThruDate"><date-time/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit button-type="text-link"/></field>
<field name="deleteButton" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="updateForum" description="${uiLabelMap.CommonDelete}">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="caContentIdTo" from-field="contentId"/>
<parameter param-name="caContentId"/>
<parameter param-name="caContentAssocTypeId" from-field="caContentAssocTypeId"/>
<parameter param-name="caFromDate" from-field="caFromDate"/>
<parameter param-name="deactivateExisting" value="true"/>
</hyperlink>
</field>
<field name="caFromDate" entry-name="caFromDate"><display description="${groovy:caFromDate.toString().substring(0,10)}"/></field>
<field name="nbrOfMessages" entry-name="childBranchCount"><display/></field>
</form>
<form name="AddForum" type="single" target="createForum"
header-row-style="header-row" default-table-style="basic-table">
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="forumName" parameter-name="contentName"><text/></field>
<field name="forumDescription" parameter-name="description"><text/></field>
<field name="caFromDate"><date-time/></field>
<field name="contentTypeId"><hidden value="WEB_SITE_PUB_PT"/></field>
<field name="ownerContentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="caContentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="caContentAssocTypeId"><hidden value="SUBSITE"/></field>
<field name="addButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ForumGroupPurposes" type="list" list-name="forumPurposes" target="deleteForumGroupPurpose" separate-columns="true"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<auto-fields-entity entity-name="ContentPurpose" default-field-type="edit"/>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentPurposeTypeId"><display-entity entity-name="ContentPurposeType"/></field>
<field name="deleteButton" title="${uiLabelMap.CommonDelete}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="AddForumGroupPurpose" type="single" target="createForumGroupPurpose" title=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="ContentPurpose" default-field-type="edit"/>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentPurposeTypeId">
<drop-down>
<entity-options entity-name="ContentPurposeType"></entity-options>
</drop-down></field>
<field name="addButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ForumGroupRoles" type="list" list-name="forumRoles" target="updateForumGroupRole" separate-columns="true"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<auto-fields-entity entity-name="ContentRole" default-field-type="edit"/>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="partyId"><display-entity entity-name="PartyNameView" description="${groupName}${firstName} ${lastName}"/></field>
<field name="roleTypeId"><display-entity entity-name="RoleType"/></field>
<field name="fromDate"><display/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="text-link"/></field>
<field name="deleteButton" title="${uiLabelMap.CommonDelete}">
<hyperlink target="deleteForumGroupRole" description="${uiLabelMap.CommonDelete}">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="contentIdTo"/>
<parameter param-name="contentId"/>
<parameter param-name="partyId"/>
<parameter param-name="roleTypeId"/>
<parameter param-name="fromDate"/>
</hyperlink>
</field>
</form>
<form name="AddForumGroupRole" type="single" target="createForumGroupRole" default-map-name=""
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="ContentRole" default-field-type="edit"/>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="contentId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="partyId">
<lookup target-form-name="LookupPartyName"></lookup>
</field>
<field name="roleTypeId">
<drop-down>
<entity-options entity-name="RoleType"></entity-options>
</drop-down></field>
<field name="addButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListForumMessages" type="list" list-name="forumMessages" separate-columns="true" target="updateForumMessage"
odd-row-style="alternate-row" default-table-style="basic-table">
<row-actions>
<service service-name="getContentAndDataResource" result-map="contentData">
<field-map field-name="contentId" from-field="contentId"/>
</service>
</row-actions>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="forumId"><hidden value="${parameters.forumId}"/></field>
<field name="contentId"><hidden value="${caContentId}"/></field>
<field name="contentIdTo"><hidden value="${caContentIdTo}"/></field>
<field name="contentAssocTypeId"><hidden value="${caContentAssocTypeId}"/></field>
<field name="contentTypeId"><hidden/></field>
<field name="dataResourceTypeId"><hidden value="ELECTRONIC_TEXT"/></field>
<field name="dataResourceId"><hidden value="${dataResourceId}"/></field>
<field name="messageTitle" entry-name="description" parameter-name="description"><display/></field>
<field name="createdBy" entry-name="createdByUserLogin"><display/></field>
<field name="fromDate" entry-name="caFromDate"><display description="${groovy:caFromDate!=null?caFromDate.toString().substring(0,10):&quot;&quot;}"/></field>
<field name="thruDate" entry-name="caThruDate"><display description="${groovy:caThruDate!=null?caThruDate.toString().substring(0,10):&quot;&quot;}"/></field>
<field name="deleteButton" title="${uiLabelMap.CommonDelete}" widget-style="buttontext">
<hyperlink target="updateForumMessage" description="${uiLabelMap.CommonDelete}">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="forumId" from-field="${parameters.forumId}"/>
<parameter param-name="caContentIdTo"/>
<parameter param-name="caContentId"/>
<parameter param-name="caContentAssocTypeId"/>
<parameter param-name="caFromDate"/>
<parameter param-name="deactivateExisting" value="true"/>
</hyperlink>
</field>
<field name="messageText" entry-name="contentData.resultData.electronicText.textData" parameter-name="textData"><textarea rows="8"/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit button-type="text-link"/></field>
<field name="responseButton" title="${uiLabelMap.FormFieldTitle_reponse}" widget-style="buttontext">
<hyperlink target="addForumMessage" description="${uiLabelMap.FormFieldTitle_reponse}">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="forumId" from-field="parameters.forumId"/>
<parameter param-name="forumMessageIdTo" from-field="contentId"/>
<parameter param-name="contentAssocTypeId" value="RESPONSE"/>
</hyperlink>
</field>
</form>
<form name="EditForumMessage" type="single" target="updateForumMessage" default-map-name="message"
header-row-style="header-row" default-table-style="basic-table">
<actions>
<service service-name="getContentAndDataResource" result-map="contentData">
<field-map field-name="contentId" from-field="parameters.forumMessageId"/>
</service>
<set field="message.forumMessageId" from-field="contentData.resultData.content.contentId"/>
<set field="message.contentTypeId" from-field="contentData.resultData.content.contentTypeId"/>
<set field="message.contentIdTo" from-field="parameters.forumMessageIdTo"/>
<set field="message.forumMessageName" from-field="contentData.resultData.content.contentName"/>
<set field="message.forumMessageTitle" from-field="contentData.resultData.content.description"/>
<set field="message.forumMessageText" from-field="contentData.resultData.electronicText.textData"/>
<entity-and entity-name="ContentAssoc" list="contentAssocList" filter-by-date="true">
<field-map field-name="contentId" from-field="message.forumMessageId"/>
<field-map field-name="contentIdTo" from-field="message.contentIdTo"/>
<field-map field-name="contentAssocTypeId" value="RESPONSE"/>
</entity-and>
<set field="contentAssoc" from-field="contentAssocList[0]"/>
</actions>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="forumId"><hidden value="${parameters.forumId}"/></field>
<field name="forumMessageId"><hidden/></field>
<field name="forumMessageName" parameter-name="contentName"><hidden/></field>
<field name="forumMessageTitle" parameter-name="description"><text/></field>
<field name="contentTypeId"><hidden/></field>
<field name="ownerContentId"><hidden value="${parameters.forumId}"/></field>
<field name="caFromDate"><hidden value="${contentAssoc.fromDate}"/></field>
<field name="caToDate"><hidden value="${contentAssoc.toDate}"/></field>
<field name="caContentIdTo"><hidden/></field>
<field name="caContentAssocTypeId"><hidden value="RESPONSE"/></field>
<field name="dataResourceTypeId"><hidden value="ELECTRONIC_TEXT"/></field>
<field name="forumMessageText" parameter-name="textData"><textarea rows="10"/></field>
<field name="addButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="AddForumMessage" type="single" target="updateForumMessage" default-map-name="message"
header-row-style="header-row" default-table-style="basic-table">
<field name="VIEW_INDEX"><hidden value="${parameters.VIEW_INDEX}"/></field>
<field name="threadView"><hidden value="${parameters.threadView}"/></field>
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="dataResourceTypeId"><hidden value="ELECTRONIC_TEXT"/></field>
<field name="forumId"><hidden value="${parameters.forumId}"/></field>
<field name="contentName"><hidden value="New thread/message/response"/></field>
<field name="forumMessageTitle" parameter-name="description"><text default-value="${forumMessage.description}"/></field>
<field name="contentTypeId"><hidden value="DOCUMENT"/></field>
<field name="ownerContentId"><hidden value="${parameters.forumId}"/></field>
<field name="caContentId"><hidden value="${parameters.forumMessageIdTo}"/></field>
<field name="caContentAssocTypeId"><hidden value="RESPONSE"/></field>
<field name="forumMessageText" parameter-name="textData"><textarea rows="10" visual-editor-enable="true" visual-editor-buttons="compact"/></field>
<field name="addButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="AddForumThreadMessage" type="single" extends="AddForumMessage" target="updateForumThreadMessage"
header-row-style="header-row" default-table-style="basic-table"/>
<form name="EditForumThreadMessage" type="single" target="updateForumThreadMessage"
header-row-style="header-row" default-table-style="basic-table">
<field name="forumGroupId"><hidden value="${parameters.forumGroupId}"/></field>
<field name="forumId"><hidden value="${parameters.forumId}"/></field>
<field name="rsp.contentId" parameter-name="contentId"><hidden/></field>
<field name="rsp.contentName" parameter-name="contentName"><hidden/></field>
<field name="rsp.description" title="${uiLabelMap.ContentForumDescriptionThread}" parameter-name="description"><text/></field>
<field name="rsp.contentTypeId" parameter-name="contentTypeId"><hidden/></field>
<field name="rsp.ownerContentId" parameter-name="ownerContentId"><hidden/></field>
<field name="rsp.caFromDate" parameter-name="fromDate"><hidden/></field>
<field name="rsp.caThruDate" parameter-name="thruDate"><hidden/></field>
<field name="rsp.caContentIdTo" parameter-name="caContentIdTo"><hidden/></field>
<field name="rsp.caContentAssocTypeId" parameter-name="caContentAssocTypeId"><hidden/></field>
<field name="dataResourceTypeId"><hidden value="ELECTRONIC_TEXT"/></field>
<field name="textData" title="${uiLabelMap.FormFieldTitle_textDataTitle}"><textarea rows="8"/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
</forms>