[ \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
482 lines
25 KiB
XML
482 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="FindContent">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<actions>
|
|
<set field="headerItem" value="Content"/>
|
|
<set field="titleProperty" value="PageTitleFindContent"/>
|
|
<set field="entityName" value="Content"/>
|
|
<set field="tabButtonItem" value="findContent"/>
|
|
<set field="queryString" from-field="result.queryString"/>
|
|
<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="contentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="menu-bar">
|
|
<container style="button-bar"><link target="EditContent" text="${uiLabelMap.CommonCreateNew}" style="buttontext"/></container>
|
|
</decorator-section>
|
|
<decorator-section name="search-options">
|
|
<include-form name="FindContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form name="ListContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</fail-widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="findContentSearchResults">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ListContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="navigateContent">
|
|
<section>
|
|
<actions>
|
|
<set field="layoutSettings.javaScripts[+0]" value="/images/dojo/dojo.js" global="true"/>
|
|
<set field="titleProperty" value="PageTitleNavigateContent"/>
|
|
<set field="tabButtonItem" value="navigateContent"/>
|
|
<set field="labelTitleProperty" value="PageTitleNavigateContent"/>
|
|
<entity-and entity-name="ContentAssoc" list="contentAssoc">
|
|
<field-map field-name="contentId" value="TREE_ROOT"/>
|
|
<field-map field-name="contentAssocTypeId" value="TREE_CHILD"/>
|
|
</entity-and>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="contentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<container style="left-border">
|
|
<screenlet title="${uiLabelMap.PageTitleNavigateContent}" >
|
|
<container id="EditDocumentTree"/>
|
|
<include-screen name="navigateMenu"/>
|
|
</screenlet>
|
|
</container>
|
|
<container style="leftonly">
|
|
<container style="screenlet-title-bar h3">
|
|
<label text="${uiLabelMap.ContentContent}"/>
|
|
</container>
|
|
<container id="Document" style="screenlet">
|
|
<include-screen name="ListDocument"/>
|
|
</container>
|
|
</container>
|
|
</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/ContentNav.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDocument">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<container>
|
|
<include-form name="AddDocument" location="component://content/widget/content/ContentForms.xml"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ListDocument">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="contentIdTo" from-field="parameters.contentIdTo"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-condition entity-name="ContentAssoc" list="contentAssoc">
|
|
<condition-list combine="and">
|
|
<condition-expr field-name="contentId" from-field="contentId" operator="equals"/>
|
|
</condition-list>
|
|
</entity-condition>
|
|
</actions>
|
|
<widgets>
|
|
<include-form name="ListDocument" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditDocumentTree">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<platform-specific>
|
|
<html>
|
|
<html-template location="component://content/webapp/content/content/EditContentTree.ftl"/>
|
|
</html>
|
|
</platform-specific>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditContent">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditContent"/>
|
|
<set field="tabButtonItem" value="content"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-field="currentValue"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditContent}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="EditContentAssoc">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleEditContentAssoc"/>
|
|
<set field="currentContentMenuItemName" value="contentassoc" to-scope="user"/>
|
|
<set field="extraFunctionName" value="'${uiLabelMap.CommonFrom}'"/>
|
|
<set field="tabButtonItem" value="association"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<set field="contentIdTo" from-field="parameters.contentIdTo"/>
|
|
<set field="contentAssocTypeId" from-field="parameters.contentAssocTypeId" default-value="${defaultContentAssocTypeId}"/>
|
|
<set field="contentAssocTypeId" from-field="contentAssocTypeId" to-scope="user"/>
|
|
<set field="fromDate" from-field="parameters.fromDate"/>
|
|
<entity-one entity-name="Content" value-field="currentValue"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditContentAssoc}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ListContentAssocFrom" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleListAssociations} '${uiLabelMap.CommonTo}'"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ListContentAssocTo" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field="contentId"/></not>
|
|
<not><if-empty field="contentIdTo"/></not>
|
|
<not><if-empty field="contentAssocTypeId"/></not>
|
|
<not><if-empty field="fromDate"/></not>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleEditAssociation}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="EditContentAssoc" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<or>
|
|
<if-empty field="contentId"/>
|
|
<if-empty field="contentIdTo"/>
|
|
<if-empty field="contentAssocTypeId"/>
|
|
<if-empty field="fromDate"/>
|
|
</or>
|
|
</condition>
|
|
<widgets>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PageTitleAddAssociation}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="AddContentAssoc" location="component://content/widget/content/ContentForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditContentRole">
|
|
<section>
|
|
<actions>
|
|
<script location="component://content/widget/GetMenuContext.groovy"/>
|
|
<set field="titleProperty" value="PageTitleEditContentRole"/>
|
|
<set field="tabButtonItem" value="role"/>
|
|
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<set field="contentRoleTarget" value=""/>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddContentRolePanel" title="${uiLabelMap.PageTitleAddRole}" collapsible="true">
|
|
<include-form name="AddContentRole" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListContentRole" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditContentPurpose">
|
|
<section>
|
|
<actions>
|
|
<script location="component://content/widget/GetMenuContext.groovy"/>
|
|
<set field="titleProperty" value="PageTitleEditContentPurpose"/>
|
|
<set field="tabButtonItem" value="purpose"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddContentPurposePanel" title="${uiLabelMap.PageTitleAddPurpose}" collapsible="true">
|
|
<include-form name="AddContentPurpose" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListContentPurpose" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditContentAttribute">
|
|
<section>
|
|
<actions>
|
|
<script location="component://content/widget/GetMenuContext.groovy"/>
|
|
<set field="titleProperty" value="PageTitleEditContentAttribute"/>
|
|
<set field="tabButtonItem" value="attribute"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddContentAttributePanel" title="${uiLabelMap.PageTitleAddAttribute}" collapsible="true">
|
|
<include-form name="AddContentAttribute" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListContentAttribute" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ListWebSite">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleFindWebSite"/>
|
|
<set field="labelTitleProperty" value="PageTitleFindWebSite"/>
|
|
<set field="tabButtonItem" value="websites"/>
|
|
<entity-condition entity-name="WebSiteAndContent" list="webSites">
|
|
<condition-expr field-name="contentId" from-field="parameters.contentId"/>
|
|
<order-by field-name="webSiteId"/>
|
|
</entity-condition>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<screenlet title="${uiLabelMap.PageTitleListWebSite}">
|
|
<include-form name="ListWebSites" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ContentViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditContentMetaData">
|
|
<section>
|
|
<actions>
|
|
<script location="component://content/widget/GetMenuContext.groovy"/>
|
|
<set field="titleProperty" value="PageTitleEditContentMetadata"/>
|
|
<set field="tabButtonItem" value="metaData"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddContentMetaDataPanel" title="${uiLabelMap.PageTitleAddMetaData}" collapsible="true">
|
|
<include-form name="AddContentMetaData" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListContentMetaData" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="EditContentWorkEfforts">
|
|
<section>
|
|
<actions>
|
|
<script location="component://content/widget/GetMenuContext.groovy"/>
|
|
<set field="titleProperty" value="PageTitleEditContentWorkEffort"/>
|
|
<set field="tabButtonItem" value="workEffort"/>
|
|
<set field="contentId" from-field="parameters.contentId"/>
|
|
<entity-one entity-name="Content" value-field="currentValue">
|
|
<field-map field-name="contentId" from-field="parameters.contentId"/>
|
|
</entity-one>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="commonContentDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<screenlet id="AddWorkEffortContentPanel" title="${uiLabelMap.PageTitleAddWorkEffort}" collapsible="true">
|
|
<include-form name="AddWorkEffortContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</screenlet>
|
|
<include-form name="ListWorkEffortContents" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="LookupContent">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="title" value="${uiLabelMap.PageTitleLookupContent}"/>
|
|
<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="LookupContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
<decorator-section name="search-results">
|
|
<include-form name="ListLookupContent" location="component://content/widget/content/ContentForms.xml"/>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|