ilscipio/scipio-erp

View on GitHub
applications/workeffort/widget/WorkEffortMenus.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">

    <menu name="WorkEffortAppBar" title="${uiLabelMap.WorkEffortManager}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
        ><!-- default-menu-item-name="task" -->
        <menu-item name="task" title="${uiLabelMap.WorkEffortTaskList}"><link target="mytasks"/></menu-item>
        <menu-item name="calendar" title="${uiLabelMap.WorkEffortCalendar}"><link target="calendar"/></menu-item>
        <!--<menu-item name="mytime" title="${uiLabelMap.WorkEffortTimesheetMyTime}"><link target="MyTimesheets"/></menu-item>-->
        <menu-item name="request" title="${uiLabelMap.WorkEffortRequestList}"><link target="requestlist"/></menu-item>
        <menu-item name="workeffort" title="${uiLabelMap.WorkEffortWorkEffort}"><link target="FindWorkEffort"/></menu-item>
        <menu-item name="timesheet" title="${uiLabelMap.WorkEffortTimesheet}"><link target="FindTimesheet"/></menu-item>
        <menu-item name="userJobs" title="${uiLabelMap.WorkEffortJobList}"><link target="UserJobs"/></menu-item>
        <menu-item name="WorkEffortICalendar" title="${uiLabelMap.WorkEffortICalendar}"><link target="FindICalendars"/></menu-item>
    </menu>
    <menu name="WorkEffortAppSideBar" title="${uiLabelMap.WorkEffortManager}" extends="CommonAppSideBarMenu" extends-resource="component://common/widget/CommonMenus.xml" 
        always-expand-selected-or-ancestor="true"><!-- default-menu-item-name="task" -->
        <include-elements menu-name="WorkEffortAppBar" recursive="full" />
        <menu-item name="workeffort">
            <sub-menu name="WorkEffort" include="WorkEffortSideBar"/>
        </menu-item>
        <menu-item name="timesheet">
            <sub-menu name="Timesheet" include="component://workeffort/widget/TimesheetMenus.xml#TimesheetSideBar"/>
        </menu-item>
        <menu-item name="WorkEffortICalendar">
            <sub-menu name="ICalendar" include="ICalendarSideBar"/>
        </menu-item>
    </menu>
    
    <menu name="WorkEffortTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
          default-menu-item-name="WorkEffort">
        <menu-item name="WorkEffortRelatedSummary" title="${uiLabelMap.WorkEffortSummary}">
            <link target="WorkEffortSummary">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffort" title="${uiLabelMap.WorkEffortWorkEffort}">
            <link target="EditWorkEffort">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortAssocs" title="${uiLabelMap.CommonEntityChildren}">
            <link target="ChildWorkEfforts">
                <parameter param-name="workEffortId"/>
                <parameter param-name="trail" from-field="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortPartyAssigns" title="${uiLabelMap.WorkEffortParties}">
            <link target="ListWorkEffortPartyAssigns">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortRates" title="${uiLabelMap.WorkEffortTimesheetRates}">
            <link target="EditWorkEffortRates">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortCommEvents" title="${uiLabelMap.WorkEffortCommEvents}">
            <link target="ListWorkEffortCommEvents">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortShopLists" title="${uiLabelMap.WorkEffortShopLists}">
            <link target="ListWorkEffortShopLists">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortRequests" title="${uiLabelMap.WorkEffortRequests}">
            <link target="ListWorkEffortRequests">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortRequirements" title="${uiLabelMap.WorkEffortRequirements}">
            <link target="ListWorkEffortRequirements">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortQuotes" title="${uiLabelMap.WorkEffortQuotes}">
            <link target="ListWorkEffortQuotes">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortOrderHeaders" title="${uiLabelMap.WorkEffortOrderHeaders}">
            <link target="ListWorkEffortOrderHeaders">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortTimeEntries" title="${uiLabelMap.WorkEffortTimesheetTimeEntries}">
            <link target="EditWorkEffortTimeEntries">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortNotes" title="${uiLabelMap.WorkEffortNotes}">
            <link target="EditWorkEffortNotes">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortContents" title="${uiLabelMap.ContentContent}">
            <link target="EditWorkEffortContents">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortGoodStandards" title="${uiLabelMap.ProductProduct}">
            <link target="EditWorkEffortGoodStandards">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortReviews" title="${uiLabelMap.WorkEffortReviews}">
            <link target="EditWorkEffortReviews">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortKeywords" title="${uiLabelMap.WorkEffortKeywords}">
            <link target="EditWorkEffortKeywords">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortContactMechs" title="${uiLabelMap.WorkEffortContactMechs}">
            <link target="EditWorkEffortContactMechs">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortAgreementAppls" title="${uiLabelMap.WorkEffortAgreementAppls}">
            <link target="EditAgreementWorkEffortApplics">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortFixedAssetAssigns" title="${uiLabelMap.AccountingFixedAssets}">
            <link target="ListWorkEffortFixedAssetAssigns">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortEventReminders" title="${uiLabelMap.WorkEffortEventReminders}">
            <link target="listWorkEffortEventReminders">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
    </menu>
    <menu name="WorkEffortSideBar" extends="CommonSideBarMenu" extends-resource="component://common/widget/CommonMenus.xml" menu-container-style="+scipio-nav-actions-menu">
        <include-elements menu-name="WorkEffortTabBar" recursive="includes-only" />
        <menu-item-alias name="FindWorkEffort" for="PARENT-NOSUB"/>
        <menu-item-alias name="NewWorkEffort" for="PARENT-NOSUB"/>
        <menu-item-alias name="WorkEffortAdvancedSearch" for="PARENT-NOSUB"/>
    </menu>
    
    <menu name="Day" extends="Calendar">
        <!-- SCIPIO: replaced with day picker in widget template
        <menu-item name="next" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortNextDay}">
                <parameter param-name="period" value="day"/>
                <parameter param-name="startTime" value="${nextMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="toDay" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.CommonToday}">
                <parameter param-name="period" value="day"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="prev" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortPreviousDay}">
                <parameter param-name="period" value="day"/>
                <parameter param-name="startTime" value="${prevMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        -->
    </menu>
    <menu name="Week" extends="Calendar">
        <!-- SCIPIO: replaced with day picker in widget template
        <menu-item name="next" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortNextWeek}">
                <parameter param-name="period" value="week"/>
                <parameter param-name="startTime" value="${nextMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="thisWeek" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortThisWeek}">
                <parameter param-name="period" value="week"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="prev" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortPreviousWeek}">
                <parameter param-name="period" value="week"/>
                <parameter param-name="startTime" value="${prevMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        -->
    </menu>
    <menu name="Month" extends="Calendar">
        <!-- SCIPIO: replaced with day picker in widget template
        <menu-item name="next" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortNextMonth}">
                <parameter param-name="period" value="month"/>
                <parameter param-name="startTime" value="${nextMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="thisMonth" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortThisMonth}">
                <parameter param-name="period" value="month"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="prev" widget-style="+${styles.float_right}">
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortPreviousMonth}">
                <parameter param-name="period" value="month"/>
                <parameter param-name="startTime" value="${prevMillis}"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        -->
    </menu>
    <menu name="Upcoming" extends="Calendar">
    </menu>
    <!-- SCIPIO: NOTE: The original Calendar had no menu type (extends) and was included with navigation-menu-name= which gave it its style,
        but this construct is too hard to reuse, so made this a sep button menu instead -->
    <menu name="Calendar" extends="CommonButtonBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
        selected-menuitem-context-field-name="activeSubMenuItem">
        <menu-item name="upcoming">
            <condition>
                <and>
                    <!-- SCIPIO: don't hide this
                    <if-compare field="parameters.period" operator="not-equals" value="upcoming"/> -->
                    <if-empty field="parameters.fixedAssetId"/>
                </and>
            </condition>
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortUpcomingEvents}">
                <parameter param-name="period" value="upcoming"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="month">
            <!-- SCIPIO: this is the new default -->
            <!-- SCIPIO: don't hide this
            <condition>
                <and>
                    <if-compare field="parameters.period" operator="not-equals" value="month"/>
                    <not><if-empty field="parameters.period"/></not>
                </and>
            </condition>
            -->
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortMonthView}">
                <parameter param-name="period" value="month"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="week">
            <!-- SCIPIO: don't hide this
            <condition>
                <and>
                    <if-compare field="parameters.period" operator="not-equals" value="week"/>
                    <!- SCIPIO: month is the new default:
                    <not><if-empty field="parameters.period"/></not>->
                </and>
            </condition>
            -->
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortWeekView}">
                <parameter param-name="period" value="week"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <menu-item name="day">
            <!-- SCIPIO: don't hide this
            <condition>
                <if-compare field="parameters.period" operator="not-equals" value="day"/>
            </condition>
            -->
            <link target="${parameters._LAST_VIEW_NAME_}" text="${uiLabelMap.WorkEffortDayView}">
                <parameter param-name="period" value="day"/>
                <parameter param-name="partyId" from-field="parameters.partyId"/>
                <parameter param-name="fixedAssetId" from-field="parameters.fixedAssetId"/>
                <parameter param-name="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
                <parameter param-name="calendarType" from-field="parameters.calendarType"/>
                <parameter param-name="facilityId" from-field="parameters.facilityId"/>
                <parameter param-name="hideEvents" from-field="parameters.hideEvents"/>
            </link>
        </menu-item>
        <!-- SCIPIO: use float instead if wanted this
        <menu-item name="dummy" title="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;">
            <condition>
                <if-compare field="parameters.period" operator="not-equals" value="upcoming"/>
            </condition>
        </menu-item>
        -->
    </menu>

    <menu name="ICalendarTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="WorkEffort" title="${uiLabelMap.WorkEffortICalendar}">
            <link target="EditICalendar">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortAssocs" title="${uiLabelMap.CommonEntityChildren}">
            <link target="ICalendarChildren">
                <parameter param-name="workEffortId"/>
                <parameter param-name="trail" from-field="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortPartyAssigns" title="${uiLabelMap.WorkEffortParties}">
            <link target="ICalendarParties">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortFixedAssetAssigns" title="${uiLabelMap.AccountingFixedAssets}">
            <link target="ICalendarFixedAssets">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="ICalendarData" title="${uiLabelMap.WorkEffortICalendarData}">
            <link target="EditICalendarData">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="ICalendarHelp" title="${uiLabelMap.CommonHelp}">
            <link target="ICalendarHelp">
                <parameter param-name="workEffortId"/>
            </link>
        </menu-item>
    </menu>
    
    <menu name="ICalendarSideBar" extends="CommonSideBarMenu" extends-resource="component://common/widget/CommonMenus.xml" menu-container-style="+scipio-nav-actions-menu">
        <include-elements menu-name="ICalendarTabBar" recursive="includes-only" />
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="FindWorkEffortSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="EditWorkEffort" title="${uiLabelMap.WorkEffortCreate}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <link target="EditWorkEffort">
                <parameter param-name="DONE_PAGE" from-field="donePage"/>
            </link>
        </menu-item>
        <menu-item name="WorkEffortAdvancedSearch" title="${uiLabelMap.CommonAdvancedSearch}" widget-style="+${styles.action_nav} ${styles.action_find}">
            <condition><if-compare field="activeSubMenuItem" operator="not-equals" value="WorkEffortAdvancedSearch"/></condition>
            <link target="WorkEffortSearchOptions"/>
        </menu-item>
        <menu-item name="FindWorkEffort" title="${uiLabelMap.CommonFind}" widget-style="+${styles.action_nav} ${styles.action_find}">
            <condition><if-compare field="activeSubMenuItem" operator="equals" value="WorkEffortAdvancedSearch"/></condition>
            <link target="FindWorkEffort"/>
        </menu-item>
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="EditWorkEffortSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="EditWorkEffort" title="${uiLabelMap.WorkEffortCreate}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <condition><not><if-empty field="workEffort"/></not></condition>
            <link target="EditWorkEffort">
                <parameter param-name="DONE_PAGE" from-field="donePage"/>
            </link>
        </menu-item>
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="ChildWorkEffortsSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="AddWorkEffortAssoc" title="${uiLabelMap.WorkEffortAddExistingWorkEffortChild}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <link target="AddWorkEffortAssoc">        
                <parameter param-name="workEffortIdFrom" from-field="workEffortId"/>
            </link>
        </menu-item>
        <menu-item name="AddWorkEffortAndAssoc" title="${uiLabelMap.WorkEffortAddChild}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <link target="AddWorkEffortAndAssoc">        
                <parameter param-name="workEffortIdFrom" from-field="workEffortId"/>
            </link>
        </menu-item>
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="FindICalendarsSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="EditICalendar" title="${uiLabelMap.CommonCreate}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <link target="EditICalendar"/>
        </menu-item>
        <menu-item name="ICalendarHelp" title="${uiLabelMap.CommonHelp}" widget-style="+${styles.action_nav} ${styles.action_view}">
            <link target="ICalendarHelp"/>
        </menu-item>
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="EditICalendarsSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="EditICalendar" title="${uiLabelMap.CommonCreate}" widget-style="+${styles.action_nav} ${styles.action_add}">
            <condition><not><if-empty field="workEffort"/></not></condition>
            <link target="EditICalendar"/>
        </menu-item>
    </menu>
    
    <!-- SCIPIO: new -->
    <menu name="EditWorkEffortAssocSubTabBar" extends="CommonSubTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
        <menu-item name="removeWorkEffortAssoc" title="${uiLabelMap.CommonRemoveAssoc}" widget-style="+${styles.action_run_sys} ${styles.action_remove}">
            <condition><not><if-empty field="workEffortAssoc"/></not></condition>
            <link target="removeWorkEffortAssoc" link-type="hidden-form">
                <parameter param-name="workEffortIdFrom" from-field="workEffortAssoc.workEffortIdFrom"/>
                <parameter param-name="workEffortIdTo" from-field="workEffortAssoc.workEffortIdTo"/>
                <parameter param-name="workEffortAssocTypeId" from-field="workEffortAssoc.workEffortAssocTypeId"/>
                <parameter param-name="fromDate" from-field="workEffortAssoc.fromDate"/>
            </link>
        </menu-item>
    </menu>
    
</menus>