Based on comments of Adrain. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671181 13f79535-47bb-0310-9956-ffa450edef68
436 lines
22 KiB
XML
436 lines
22 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.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
<screen name="FindWebSite">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindWebSite"/>
|
|
<set field="headerItem" value="websites"/>
|
|
<set field="labelTitleProperty" value="PageTitleFindWebSite"/>
|
|
|
|
<entity-condition entity-name="WebSite" list-name="webSites">
|
|
<order-by field-name="webSiteId"/>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleListWebSite}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<container><link text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.ContentWebSite}" target="EditWebSite" style="buttontext"/></container>
|
|
<include-form name="ListWebSites" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ContentViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonWebSiteDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="websites"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<platform-specific><html><html-template location="component://content/webapp/content/website/WebSiteTabBar.ftl"/></html></platform-specific>
|
|
<container style="widget-container">
|
|
<link text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.ContentWebSite}" target="EditWebSite" style="buttontext"/>
|
|
</container>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ContentViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditWebSite">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditWebSite"/>
|
|
<set field="tabButtonItem" value="EditWebSite"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditWebSite"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditWebSite}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditWebSite" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditWebSiteContent"/>
|
|
<set field="tabButtonItem" value="ListWebSiteContent"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditWebSiteContent"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
|
|
<entity-and entity-name="WebSiteContent" list-name="webSiteContent">
|
|
<field-map field-name="webSiteId" env-name="webSiteId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleWebSiteContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ListWebSiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleCreateWebSiteContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="CreateWebSiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleAutoCreateContentPublishPoints}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="AutoCreateWebsiteContent" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditWebSiteParties">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditWebSiteParties"/>
|
|
<set field="tabButtonItem" value="EditWebSiteParties"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditWebSiteParties"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<screenlet id="AddWebSiteRolePanel" title="${uiLabelMap.PageTitleCreateWebSiteParties}" collapsible="true">
|
|
<include-form name="CreateWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="UpdateWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMS">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/images/dojo/dojo.js" global="true"/>
|
|
<set field="titleProperty" value="PageTitleEditWebSiteCMS"/>
|
|
<set field="tabButtonItem" value="WebSiteCMS"/>
|
|
<set field="labelTitleProperty" value="PageTitleEditWebSiteCMS"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/WebSitePublishPoint.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field-name="contentRoot"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<container id="cmsnav" style="left-border">
|
|
<include-screen name="WebSiteCMSNav"/>
|
|
</container>
|
|
<container id="cmsmain" style="nocolumns">
|
|
<include-screen name="WebSiteCMSContent"/>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container id="norender" style="tableheadtext">
|
|
<label text="${uiLabelMap.ContentCMSNotExist}"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMSNav">
|
|
<section>
|
|
<actions>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/WebSitePublishPoint.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleWebSiteCMSNav}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSNav.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMSContent">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
|
|
|
|
<set field="contentAssocTypeId" from-field="parameters.contentAssocTypeId"/>
|
|
<set field="dataResourceTypeId" from-field="parameters.dataResourceTypeId"/>
|
|
<set field="contentIdFrom" from-field="parameters.contentIdFrom"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<set field="mimeTypeId" value="text/html"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
<entity-one entity-name="Content" value-name="content"/>
|
|
<entity-one entity-name="DataResource" value-name="dataResource">
|
|
<field-map field-name="dataResourceId" env-name="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ElectronicText" value-name="dataText">
|
|
<field-map field-name="dataResourceId" env-name="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ContentAssoc" value-name="assoc">
|
|
<field-map field-name="contentId" env-name="parameters.contentIdFrom"/>
|
|
<field-map field-name="contentIdTo" env-name="parameters.contentId"/>
|
|
<field-map field-name="contentAssocTypeId" env-name="parameters.contentAssocTypeId"/>
|
|
<field-map field-name="fromDate" env-name="parameters.fromDate"/>
|
|
</entity-one>
|
|
<entity-and entity-name="ContentPurpose" list-name="currentPurposes">
|
|
<field-map field-name="contentId" env-name="contentId"/>
|
|
</entity-and>
|
|
<entity-condition entity-name="ContentPurposeType" list-name="purposeTypes">
|
|
<order-by field-name="description"/>
|
|
</entity-condition>
|
|
<entity-and entity-name="DataResource" list-name="templates">
|
|
<field-map field-name="dataCategoryId" value="TEMPLATE"/>
|
|
<order-by field-name="dataResourceName"/>
|
|
</entity-and>
|
|
<entity-and entity-name="StatusItem" list-name="statuses">
|
|
<field-map field-name="statusTypeId" value="CONTENT_STATUS"/>
|
|
<order-by field-name="sequenceId"/>
|
|
</entity-and>
|
|
<entity-condition entity-name="DataTemplateType" list-name="templateTypes"/>
|
|
<entity-and entity-name="Content" list-name="decorators">
|
|
<field-map field-name="contentTypeId" value="DECORATOR"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<container id="cmscontent">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleWebSiteCMSContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSContent.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMSEditor">
|
|
<section>
|
|
<actions>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<set field="mimeTypeId" value="text/html"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
<entity-one entity-name="Content" value-name="content"/>
|
|
<entity-one entity-name="DataResource" value-name="dataResource">
|
|
<field-map field-name="dataResourceId" env-name="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ElectronicText" value-name="dataText">
|
|
<field-map field-name="dataResourceId" env-name="content.dataResourceId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSEditor.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMSMetaInfo">
|
|
<section>
|
|
<actions>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-name="content"/>
|
|
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/WebSiteCMSMetaInfo.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSMeta.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="WebSiteCMSPathAlias">
|
|
<section>
|
|
<actions>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="WebSite" value-name="webSite"/>
|
|
<entity-one entity-name="Content" value-name="content"/>
|
|
<entity-and entity-name="WebSitePathAlias" list-name="aliases">
|
|
<field-map field-name="webSiteId" env-name="webSiteId"/>
|
|
<field-map field-name="contentId" env-name="contentId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSPathAlias.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens> |