[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
418 lines
22 KiB
XML
418 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="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="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-field="webSite"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<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-field="webSite"/>
|
|
<entity-and entity-name="WebSiteContent" list="webSiteContent">
|
|
<field-map field-name="webSiteId" from-field="webSiteId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<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"/>
|
|
<property-map map-name="uiLabelMap" resource="PartyUiLabels"/>
|
|
<entity-one entity-name="WebSite" value-field="webSite"/>
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<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-field="webSite"/>
|
|
|
|
<script location="component://content/webapp/content/WEB-INF/actions/website/WebSitePublishPoint.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="contentRoot"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<container id="cmsnav" style="left">
|
|
<include-screen name="WebSiteCMSNav"/>
|
|
</container>
|
|
<container id="cmsmain" style="leftonly">
|
|
<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-field="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-field="webSite"/>
|
|
<entity-one entity-name="Content" value-field="content"/>
|
|
<entity-one entity-name="DataResource" value-field="dataResource">
|
|
<field-map field-name="dataResourceId" from-field="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ElectronicText" value-field="dataText">
|
|
<field-map field-name="dataResourceId" from-field="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ContentAssoc" value-field="assoc">
|
|
<field-map field-name="contentId" from-field="parameters.contentIdFrom"/>
|
|
<field-map field-name="contentIdTo" from-field="parameters.contentId"/>
|
|
<field-map field-name="contentAssocTypeId" from-field="parameters.contentAssocTypeId"/>
|
|
<field-map field-name="fromDate" from-field="parameters.fromDate"/>
|
|
</entity-one>
|
|
<entity-and entity-name="ContentPurpose" list="currentPurposes">
|
|
<field-map field-name="contentId" from-field="contentId"/>
|
|
</entity-and>
|
|
<entity-condition entity-name="ContentPurposeType" list="purposeTypes">
|
|
<order-by field-name="description"/>
|
|
</entity-condition>
|
|
<entity-and entity-name="DataResource" list="templates">
|
|
<field-map field-name="dataCategoryId" value="TEMPLATE"/>
|
|
<order-by field-name="dataResourceName"/>
|
|
</entity-and>
|
|
<entity-and entity-name="StatusItem" list="statuses">
|
|
<field-map field-name="statusTypeId" value="CONTENT_STATUS"/>
|
|
<order-by field-name="sequenceId"/>
|
|
</entity-and>
|
|
<entity-condition entity-name="DataTemplateType" list="templateTypes"/>
|
|
<entity-and entity-name="Content" list="decorators">
|
|
<field-map field-name="contentTypeId" value="DECORATOR"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<container id="cmscontent" style="no-clear">
|
|
<screenlet title="${uiLabelMap.PageTitleWebSiteCMSContent}">
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSContent.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</screenlet>
|
|
</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-field="webSite"/>
|
|
<entity-one entity-name="Content" value-field="content"/>
|
|
<entity-one entity-name="DataResource" value-field="dataResource">
|
|
<field-map field-name="dataResourceId" from-field="content.dataResourceId"/>
|
|
</entity-one>
|
|
<entity-one entity-name="ElectronicText" value-field="dataText">
|
|
<field-map field-name="dataResourceId" from-field="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-field="content"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap"/>
|
|
<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-field="webSite"/>
|
|
<entity-one entity-name="Content" value-field="content"/>
|
|
<entity-and entity-name="WebSitePathAlias" list="aliases">
|
|
<field-map field-name="webSiteId" from-field="webSiteId"/>
|
|
<field-map field-name="contentId" from-field="contentId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/website/WebSiteCMSPathAlias.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="WebSiteAliases">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="ContentPathAlias"/>
|
|
<set field="webSiteId" from-field="parameters.webSiteId"/>
|
|
<entity-one entity-name="WebSite" value-field="webSite"/>
|
|
<set field="tabButtonItem" value="PathAlias"/>
|
|
<entity-and entity-name="WebSitePathAlias" list="aliases">
|
|
<field-map field-name="webSiteId" from-field="parameters.webSiteId"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonWebSiteDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet title="${uiLabelMap.ContentPathAliasList}" navigation-form-name="WebSitePathAlias">
|
|
<include-form name="WebSitePathAlias" location="component://content/webapp/content/website/WebSiteForms.xml"/>
|
|
</screenlet>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens> |