Files
ofbiz-framework/applications/ecommerce/widget/blog/BlogForms.xml
T

315 lines
14 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="findBlogContent" default-entity-name="ContentAssocDataResourceViewFrom" target="CMSContentFind" title="" type="single"
default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox">
<field name="caContentIdTo" title="Publish-to content">
<drop-down>
<option key="OFBIZBLOGROOT" description="Blogs"/>
<option key="OFBIZFORUMROOT" description="Forums"/>
</drop-down>
</field>
<field name="caMapKey" title="Map Key">
<text-find/>
</field>
<field name="caContentAssocTypeId" title="Assoc Type Id">
<text-find/>
</field>
<field name="caFromDate" title="From Date">
<date-find/>
</field>
<field name="contentId" title="Content Id">
<text-find/>
</field>
<field name="dataResourceId" title="Data Resource Id">
<text-find/>
</field>
<field name="contentName" title="Name">
<text-find/>
</field>
<field name="submitButton" title="Find" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
<field name="createBlog" title=" " widget-style="buttontext">
<hyperlink also-hidden="false" description="New Blog" target="EditBlogArticle"/>
</field>
<field name="createForum" title=" " widget-style="buttontext">
<hyperlink also-hidden="false" description="New Forum" target="EditForumArticle"/>
</field>
</form>
<form name="listFindBlogContent" type="list" target=""
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"
paginate-target="/CMSContentFind" view-size="20">
<actions>
<service service-name="performFind" result-map-list-name="listIt">
<field-map field-name="inputFields" env-name="requestParameters"/>
<field-map field-name="entityName" env-name="entityName"/>
</service>
</actions>
<field name="editContent" title="">
<hyperlink also-hidden="false" description="Edit" target="CMSContentEdit?contentId=${contentId}&amp;drDataResourceId=${drDataResourceId}&amp;contentIdTo=${contentIdTo}"/>
</field>
<field name="contentId" title="Content Id">
<display/>
</field>
<field name="dataResourceId" title="Data Resource Id">
<display/>
</field>
<field name="contentName" title="Name">
<display/>
</field>
</form>
<form name="AddBlogResponse" target="createBlogResponse" title="" type="single"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
<auto-fields-entity entity-name="ContentAssocDataResourceViewTo" default-field-type="hidden" map-name="rsp"/>
<field name="contentName" title="Short title" entry-name="contentName" map-name="rsp">
<text size="40"/>
</field>
<field name="description" title="Description (250 chars max)" map-name="rsp">
<textarea cols="40" rows="6"/>
</field>
<field name="textData" title="Response" map-name="rsp" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="12"/>
</field>
<field name="statusId">
<radio no-current-selected-key="CTNT_INITIAL_DRAFT">
<option key="CTNT_PUBLISHED" description="POST"/>
<option key="CTNT_INITIAL_DRAFT" description="PREVIEW"/>
</radio>
</field>
<field name="submitButton" title="Submit" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
<field name="blogContentId" entry-name="blogContentId" map-name="rsp">
<hidden/>
</field>
<field name="articleContentId" entry-name="articleContentId" map-name="rsp">
<hidden/>
</field>
<field name="ownerContentId" entry-name="ownerContentId" map-name="rsp">
<hidden/>
</field>
<field name="contentIdFrom" entry-name="contentIdFrom" map-name="rsp">
<hidden/>
</field>
<field name="contentTypeId" entry-name="contentTypeId" map-name="rsp">
<hidden/>
</field>
<field name="contentAssocTypeId" entry-name="contentAssocTypeId" map-name="rsp">
<hidden/>
</field>
<field name="dataResourceTypeId" entry-name="dataResourceTypeId" map-name="rsp">
<hidden/>
</field>
<field name="contentPurposeTypeId" entry-name="contentPurposeTypeId" map-name="rsp">
<hidden/>
</field>
<field name="contentOperationId" entry-name="contentOperationId" map-name="rsp">
<hidden/>
</field>
<field name="partyId" entry-name="partyId" map-name="userLogin">
<hidden/>
</field>
<sort-order>
<sort-field name="contentName"/>
<sort-field name="description"/>
<sort-field name="textData"/>
<sort-field name="statusId"/>
<sort-field name="submitButton"/>
</sort-order>
</form>
<form name="EditBlogResponse" target="updateBlogResponse" title="" type="single"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
<auto-fields-entity entity-name="Content" default-field-type="hidden" map-name="content"/>
<auto-fields-entity entity-name="DataResource" default-field-type="hidden" map-name="dataResource"/>
<field name="contentName" title="Short title" entry-name="contentName" map-name="rsp">
<text size="40"/>
</field>
<field name="description" title="Slightly longer title (250 chars max)">
<textarea cols="40" rows="6"/>
</field>
<field name="contentId" entry-name="contentId" map-name="parameters">
<display/>
</field>
<field name="articleContentId" entry-name="articleContentId" map-name="rsp">
<hidden/>
</field>
<field name="textData" title="Response" map-name="electronicText" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="12"/>
</field>
<field name="statusId">
<radio no-current-selected-key="CTNT_INITIAL_DRAFT">
<option key="CTNT_PUBLISHED" description="POST"/>
<option key="CTNT_INITIAL_DRAFT" description="PREVIEW"/>
</radio>
</field>
<field name="submitButton" title="Submit" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
<field name="blogContentId" entry-name="blogContentId" map-name="rsp">
<hidden/>
</field>
<field name="contentPurposeTypeId" entry-name="contentPurposeTypeId" map-name="rsp">
<hidden/>
</field>
<field name="contentOperationId" entry-name="contentOperationId" map-name="rsp">
<hidden/>
</field>
<field name="partyId" entry-name="partyId" map-name="userLogin">
<hidden/>
</field>
<sort-order>
<sort-field name="contentId"/>
<sort-field name="contentName"/>
<sort-field name="description"/>
<sort-field name="textData"/>
<sort-field name="statusId"/>
<sort-field name="submitButton"/>
</sort-order>
</form>
<form name="CreateArticle" target="createBlogArticle" title="" type="upload" skip-end="true"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
<field name="contentName" title="Short title">
<text size="40"/>
</field>
<field name="description" title="Slightly longer title (250 chars max)">
<textarea cols="40" rows="2"/>
</field>
<field name="summaryData" title="Summary" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="4"/>
</field>
<field name="textData" title="Article" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="12"/>
</field>
<field name="uploadedFile" title="Image">
<file size="25"/>
</field>
<field name="dataResourceId" title="Template">
<drop-down allow-empty="true">
<option key="BLOG_TPL_TOPLEFT" description="Top Left"/>
<option key="BLOG_TPL_TOPCENTER" description="Top Center"/>
</drop-down>
</field>
<field name="statusId" title="Status">
<drop-down no-current-selected-key="CTNT_INITIAL_DRAFT">
<option key="CTNT_PUBLISHED" description="Publish"/>
<option key="CTNT_INITIAL_DRAFT" description="Preview"/>
</drop-down>
</field>
<field name="submitButton" title="Submit" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
<field name="contentPurposeString">
<hidden value="ARTICLE"/>
</field>
<field name="contentAssocTypeId">
<hidden value="PUBLISH_LINK"/>
</field>
<field name="blogContentId" entry-name="blogContentId">
<hidden/>
</field>
<field name="contentIdFrom" entry-name="blogContentId">
<hidden/>
</field>
<sort-order>
<sort-field name="contentName"/>
<sort-field name="description"/>
<sort-field name="summaryData"/>
<sort-field name="textData"/>
<sort-field name="uploadedFile"/>
<sort-field name="dataResourceId"/>
<sort-field name="statusId"/>
<sort-field name="submitButton"/>
</sort-order>
</form>
<form name="EditArticle" target="updateBlogArticle" title="" type="upload" skip-end="true"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
<field name="contentId" entry-name="articleContentId" title="Blog ID" use-when="contentId!=null||contentId==&quot;&quot;">
<display/>
</field>
<field name="contentName" title="Short title" map-name="content">
<text size="40"/>
</field>
<field name="description" title="Slightly longer title (250 chars max)" map-name="content">
<textarea cols="40" rows="2"/>
</field>
<field name="summaryData" title="Summary" map-name="summaryText" entry-name="textData" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="4"/>
</field>
<field name="textData" title="Article" map-name="mainText" widget-style="inputBox dojo-ResizableTextArea">
<textarea cols="60" rows="12"/>
</field>
<field name="uploadedFile" title="Image">
<file size="25"/>
</field>
<field name="dataResourceId" title="Template" map-name="content">
<drop-down allow-empty="true">
<option key="BLOG_TPL_TOPLEFT" description="Top Left"/>
<option key="BLOG_TPL_TOPCENTER" description="Top Center"/>
</drop-down>
</field>
<field name="statusId" title="Status" map-name="content">
<drop-down no-current-selected-key="CTNT_INITIAL_DRAFT">
<option key="CTNT_PUBLISHED" description="Publish"/>
<option key="CTNT_INITIAL_DRAFT" description="Preview"/>
</drop-down>
</field>
<field name="submitButton" title="Submit" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
<field name="contentPurposeString">
<hidden value="ARTICLE"/>
</field>
<field name="blogContentId" entry-name="blogContentId">
<hidden/>
</field>
<sort-order>
<sort-field name="contentId"/>
<sort-field name="contentName"/>
<sort-field name="description"/>
<sort-field name="summaryData"/>
<sort-field name="textData"/>
<sort-field name="uploadedFile"/>
<sort-field name="dataResourceId"/>
<sort-field name="statusId"/>
<sort-field name="submitButton"/>
</sort-order>
</form>
<form name="editFormSubmit" target="" title="" type="single" skip-start="true" skip-end="true"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
<field name="submitButton" title="Submit" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
</form>
<form name="editFormEnd" target="" title="" type="single" skip-start="true"
default-title-style="treeHeader" default-tooltip-style="tabletext" default-widget-style="inputBox">
</form>
</forms>