[ \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
277 lines
15 KiB
XML
277 lines
15 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.
|
|
-->
|
|
|
|
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
|
<menu name="empty" menu-container-style="button-bar tab-bar" default-menu-item-name="content" menu-width="100%"
|
|
default-associated-content-id="${userLogin.userLoginId}" selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
</menu>
|
|
|
|
<menu name="find" menu-container-style="button-bar tab-bar" default-selected-style="selected" default-menu-item-name="content"
|
|
default-associated-content-id="${userLogin.userLoginId}" selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="find" title="${uiLabelMap.CommonFind}">
|
|
<link target="FindCompDocTemplate"/>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
|
|
<menu name="tree" menu-container-style="button-bar tab-bar" default-selected-style="selected" default-menu-item-name="content"
|
|
selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="viewtree" title="${uiLabelMap.ContentCompDocViewTree}">
|
|
<condition>
|
|
<or>
|
|
<if-compare value="COMPDOC_TEMPLATE" field="contentTypeId" operator="equals"></if-compare>
|
|
<if-compare value="TEMPLATE" field="contentTypeId" operator="equals"></if-compare>
|
|
</or>
|
|
</condition>
|
|
<link target="ViewCompDocTemplateTree">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="viewtree2" title="${uiLabelMap.ContentCompDocViewTree}">
|
|
<condition>
|
|
<or>
|
|
<if-compare value="COMPDOC_INSTANCE" field="contentTypeId" operator="equals"></if-compare>
|
|
<if-compare value="DOCUMENT" field="contentTypeId" operator="equals"></if-compare>
|
|
</or>
|
|
</condition>
|
|
<link target="ViewCompDocInstanceTree">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="edit" title="${uiLabelMap.CommonEdit}">
|
|
<link target="EditRootCompDoc">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="approval" title="${uiLabelMap.ContentCompDocApprovals}">
|
|
<link target="ListContentApproval">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="revision" title="${uiLabelMap.ContentCompDocRevisions}">
|
|
<link target="ListContentRevisions">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="subtree" menu-container-style="button-bar tab-bar" default-selected-style="selected" default-menu-item-name="content"
|
|
selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="viewtree" title="${uiLabelMap.PageTitleViewCompDocTree}">
|
|
<condition>
|
|
<or>
|
|
<if-compare value="COMPDOC_TEMPLATE" field="contentTypeId" operator="equals"></if-compare>
|
|
<if-compare value="TEMPLATE" field="contentTypeId" operator="equals"></if-compare>
|
|
</or>
|
|
</condition>
|
|
<link target="ViewCompDocTemplateTree">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="viewtree2" title="${uiLabelMap.PageTitleViewCompDocTree}">
|
|
<condition>
|
|
<or>
|
|
<if-compare value="COMPDOC_INSTANCE" field="contentTypeId" operator="equals"></if-compare>
|
|
<if-compare value="DOCUMENT" field="contentTypeId" operator="equals"></if-compare>
|
|
</or>
|
|
</condition>
|
|
<link target="ViewCompDocInstanceTree">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="edit" title="${uiLabelMap.CommonEdit}">
|
|
<link target="EditChildCompDoc" >
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="itemContentRevisionSeqId"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
<parameter param-name="caFromDate" from-field="parameters.caFromDate"/>
|
|
</link>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="rootTemplateLine" menu-container-style="button-bar button-style-1" default-menu-item-name="content"
|
|
selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="edit-inplace" title="${contentName}[${contentId}]" widget-style="h2">
|
|
<link target="EditRootCompDoc">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="edit-link" title="${uiLabelMap.CommonEdit}">
|
|
<link target="EditRootCompDoc">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="child" title="${uiLabelMap.ContentCompDocChild}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="AddChildCompDocTemplate">
|
|
<parameter param-name="rootContentId" from-field="contentId"/>
|
|
<parameter param-name="sequenceNum" value="9999"/>
|
|
</link> <!-- rootContentRevisionSeqId=${rootContentRevisionSeqId}& -->
|
|
</menu-item>
|
|
<menu-item name="latest" title="${uiLabelMap.ContentCompDocCurrentTemplate}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="greater" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="ViewCompDocTemplateTree">
|
|
<parameter param-name="rootContentId" from-field="contentId"/>
|
|
</link> <!-- rootContentRevisionSeqId=${rootContentRevisionSeqId}& -->
|
|
</menu-item>
|
|
<!-- on page
|
|
<menu-item name="viewinst" title="View Instances">
|
|
<link target="ViewInstances">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="addinst" title="Add Instance">
|
|
<link target="AddRootCompDocInstance">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
-->
|
|
</menu>
|
|
|
|
<menu name="childTemplateLine" menu-container-style="button-bar button-style-1" default-menu-item-name="content" selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="edit-inplace" title="${contentName} [${contentId}]">
|
|
<link target="EditChildCompDoc">
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="edit-link" title="${uiLabelMap.CommonEdit}">
|
|
<link target="EditChildCompDoc">
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<!-- only one level for now, ie don't worry about an hierarchy, still not sure what that will mean or look like
|
|
<menu-item name="child" title="+Child">
|
|
<link target="AddChildCompDocTemplate">
|
|
<parameter param-name="contentIdTo" from-field="contentId"/>
|
|
<parameter param-name="sequenceNum" value="9999"/>
|
|
</link>
|
|
</menu-item>
|
|
-->
|
|
<menu-item name="bef" title="${uiLabelMap.ContentCompDocBefore}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="AddChildCompDocTemplate" >
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="caContentAssocTypeId" from-field="contentAssocTypeId"/>
|
|
<parameter param-name="caSequenceNum" from-field="seqNumBefore"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
</link> <!-- &contentRevisionSeqId=${contentRevisionSeqId} -->
|
|
</menu-item>
|
|
<menu-item name="aft" title="${uiLabelMap.ContentCompDocAfter}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="AddChildCompDocTemplate" >
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="caContentAssocTypeId" from-field="contentAssocTypeId"/>
|
|
<parameter param-name="caSequenceNum" from-field="seqNumAfter"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
</link> <!-- &contentRevisionSeqId=${contentRevisionSeqId} -->
|
|
</menu-item>
|
|
<menu-item name="up" title="${uiLabelMap.ContentCompDocUp}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="resequenceCompDocPart">
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="dir" value="up"/>
|
|
<parameter param-name="contentAssocTypeId" value="COMPDOC_PART"
|
|
<parameter param-name="contentIdTo"/>
|
|
<parameter param-name="caContentAssocTypeId" from-field="contentAssocTypeId"/>
|
|
<parameter param-name="caSequenceNum" from-field="seqNumBefore"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="down" title="${uiLabelMap.ContentCompDocDown}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="equals" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="resequenceCompDocPart">
|
|
<parameter param-name="contentId"/>
|
|
<parameter param-name="dir" value="down"/>
|
|
<parameter param-name="contentAssocTypeId" value="COMPDOC_PART"
|
|
<parameter param-name="contentIdTo"/>
|
|
<parameter param-name="caContentAssocTypeId" from-field="contentAssocTypeId"/>
|
|
<parameter param-name="caSequenceNum" from-field="seqNumBefore"/>
|
|
<parameter param-name="caFromDate" from-field="fromDate"/>
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="rootInstanceLine" menu-container-style="button-bar button-style-1" default-menu-item-name="content" selected-menuitem-context-field-name="currentMenuItemName" title="" type="simple">
|
|
<menu-item name="edit-inplace" title="${instanceContent.contentName}[${instanceContent.contentId}]" widget-style="h2">
|
|
<link target="EditRootCompDoc">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="edit" title="${uiLabelMap.CommonEdit}">
|
|
<link target="EditRootCompDoc">
|
|
<parameter param-name="rootContentId"/>
|
|
<parameter param-name="contentRevisionSeqId" from-field="rootContentRevisionSeqId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="viewtree" title="${uiLabelMap.PageTitleViewCompDocTemplateTree}">
|
|
<link target="ViewCompDocTemplateTree">
|
|
<parameter param-name="rootContentRevisionSeqId" from-field="templateContentRevisionSeqId"/>
|
|
<parameter param-name="rootContentId" from-field="templateContentId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="latest" title="${uiLabelMap.ContentCompDocCurrentInstance}">
|
|
<condition>
|
|
<if-compare-field field="mostRecentRevisionSeqId" operator="greater" to-field="rootContentRevisionSeqId"/>
|
|
</condition>
|
|
<link target="ViewCompDocInstanceTree">
|
|
<parameter param-name="rootContentId"/>
|
|
</link> <!-- rootContentRevisionSeqId=${rootContentRevisionSeqId}& -->
|
|
</menu-item>
|
|
</menu>
|
|
</menus>
|