[ \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
489 lines
25 KiB
XML
489 lines
25 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="FindDataResource">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="findDataResource"/>
|
|
<set field="titleProperty" value="PageTitleFindDataResource"/>
|
|
<set field="viewIndex" from-field="requestParameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="requestParameters.VIEW_SIZE" type="Integer" default-value="30"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="menu-bar">
|
|
<container style="button-bar"><link target="EditDataResource" text="${uiLabelMap.CommonCreateNew}" style="buttontext"/></container>
|
|
</decorator-section>
|
|
<decorator-section name="search-options">
|
|
<include-form name="FindDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form name="ListDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="findDataResourceSearchResults">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
|
|
</condition>
|
|
<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"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-form name="ListDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="navigateDataResource">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/images/dojo/dojo.js" global="true"/>
|
|
<set field="titleProperty" value="PageTitleNavigateDataResources"/>
|
|
<set field="tabButtonItem" value="navigateDataResource"/>
|
|
<set field="labelTitleProperty" value="PageTitleNavigateDataResources"/>
|
|
<entity-and entity-name="DataCategory" list="subCategories">
|
|
<field-map field-name="parentCategoryId" value="ROOT"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container id="cmsnav" style="left-border">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleNavigateDataResources}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-screen name="navigateMenu"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</container>
|
|
<container id="content-main-section" style="leftonly">
|
|
<container id="cmscontent">
|
|
<section>
|
|
<widgets>
|
|
<include-screen name="listDataResources"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container id="norender" style="label">
|
|
<label text="${uiLabelMap.ContentCMSNotExist}"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="navigateMenu">
|
|
<section>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/content/nav.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="listDataResources">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleNavigateDataResources}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<include-form name="ListDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="LookupDataResource">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="title" value="${uiLabelMap.PageTitleLookupDataResource}"/>
|
|
<set field="viewIndex" from-field="requestParameters.VIEW_INDEX" type="Integer"/>
|
|
<set field="viewSize" from-field="requestParameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="search-options">
|
|
<include-form name="LookupDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form name="ListLookupDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditDataResource">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResource"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editDataResource"/>
|
|
<set field="dataResourceId" from-field="parameters.dataResourceId"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue"/>
|
|
<entity-condition entity-name="DataCategory" list="dataCategoryList"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditDataResource}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="currentValue"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<label text="${uiLabelMap.ContentContentsAssociatedToDataResource}" style="h3"/>
|
|
<include-form name="ListContentsAssociatedToDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<!--
|
|
<screen name="BrowseDataResource">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="currentMenuItemName" to-scope="user" value="browsedataresource"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="common-decorator">
|
|
<decorator-section name="body">
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
-->
|
|
<screen name="UploadImage">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleUploadImageDataResource"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="uploadImage"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue">
|
|
<field-map field-name="dataResourceId" from-field="parameters.dataResourceId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="ImageUpload" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
<content dataresource-id="${currentValue.dataResourceId}" border="false"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddDataResource">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="currentMenuItemName" to-scope="user" value="adddataresource"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="AddDataResource" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddDataResourceText">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleAddDataResourceText"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="adddataresourcetext"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="AddDataResourceText" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddDataResourceUrl">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleAddDataResourceUrl"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="adddataresourceurl"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="AddDataResourceUrl" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="AddDataResourceUpload">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleAddDataResourceUpload"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="adddataresourceupload"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="AddDataResourceUpload" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceText">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceText"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editdataresourcetext"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="EditDataResourceText" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceUrl">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceUrl"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editdataresourceurl"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="EditDataResourceUrl" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceUpload">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceUpload"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editdataresourceupload"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<include-form name="EditDataResourceUpload" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditElectronicText">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditElectronicText"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editElectronicText"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditElectronicText}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditElectronicText" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceAttribute">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceAttribute"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editDataResourceAttribute"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue">
|
|
<field-map field-name="dataResourceId" from-field="parameters.dataResourceId"/>
|
|
</entity-one>
|
|
<get-related value-field="currentValue" relation-name="DataResourceAttribute" list="dataResourceAttribute"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="DataResourceAttributePanel" title="${uiLabelMap.PageTitleEditDataResourceAttribute}" collapsible="true">
|
|
<include-form name="AddDataResourceAttribute" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListDataResourceAttribute" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceRole">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceRole"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editDataResourceRole"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue">
|
|
<field-map field-name="dataResourceId" from-field="parameters.dataResourceId"/>
|
|
</entity-one>
|
|
<get-related value-field="currentValue" relation-name="DataResourceRole" list="dataResourceRole"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="DataResourceRolePanel" title="${uiLabelMap.PageTitleEditDataResourceRole}" collapsible="true">
|
|
<include-form name="AddDataResourceRole" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListDataResourceRole" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDataResourceProductFeatures">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditDataResourceProductFeatures"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editDataResourceProductFeatures"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue">
|
|
<field-map field-name="dataResourceId" from-field="parameters.dataResourceId"/>
|
|
</entity-one>
|
|
<get-related value-field="currentValue" relation-name="ProductFeatureDataResource" list="productFeatureDataResource"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="DataResourceProductFeaturePanel" title="${uiLabelMap.PageTitleEditDataResourceProductFeatures}" collapsible="true">
|
|
<include-form name="AddDataResourceProductFeature" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListDataResourceProductFeature" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditHtmlText">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditHtmlText"/>
|
|
<set field="headerItem" value="DataResource"/>
|
|
<set field="tabButtonItem" value="editHtmlText"/>
|
|
<entity-one entity-name="DataResource" value-field="currentValue"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonDataResourceDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditHtmlText}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditHtmlText" location="component://content/widget/content/DataResourceForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|