git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696789 13f79535-47bb-0310-9956-ffa450edef68
197 lines
10 KiB
XML
197 lines
10 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="MyPageAppBar" id="app-navigation" type="simple" selected-menuitem-context-field-name="headerItem" default-selected-style="selected" title="My Personal Page" menu-container-style="button-bar tab-bar">
|
|
<menu-item name="main" title="${uiLabelMap.CommonMain}">
|
|
<condition>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
</condition>
|
|
<link target="main?donePage=main"/>
|
|
</menu-item>
|
|
<menu-item name="viewprofile" title="${uiLabelMap.MyProfile}">
|
|
<condition>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
</condition>
|
|
<link target="viewprofile?partyId=${userLogin.partyId}"/>
|
|
</menu-item>
|
|
<menu-item name="myCommunications" title="${uiLabelMap.MyCommunications}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-compare field-name="preferences.userPrefMap.myCommunications" operator="not-equals" value="Y"/>
|
|
</and>
|
|
</condition>
|
|
<link target="myCommunications?donePage=myCommunications"/>
|
|
</menu-item>
|
|
<menu-item name="otherCommunications" title="${uiLabelMap.OtherCommunications}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-compare field-name="preferences.userPrefMap.otherCommunications" operator="not-equals" value="Y"/>
|
|
</and>
|
|
</condition>
|
|
<link target="otherCommunications?donePage=otherCommunications"/>
|
|
</menu-item>
|
|
<menu-item name="myCompanyComms" title="${uiLabelMap.MyCompanyComms}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-compare field-name="preferences.userPrefMap.myCompanyComms" operator="not-equals" value="Y"/>
|
|
</and>
|
|
</condition>
|
|
<link target="myCompanyComms"/>
|
|
</menu-item>
|
|
<menu-item name="myTimesheet" title="${uiLabelMap.myTimesheet}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-compare field-name="preferences.userPrefMap.myTimesheet" operator="not-equals" value="Y"/>
|
|
</and>
|
|
</condition>
|
|
<link target="myTimesheet?donePage=myTimeSheet"/>
|
|
</menu-item>
|
|
<menu-item name="myTasks" title="${uiLabelMap.myTasks}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-compare field-name="preferences.userPrefMap.myTasks" operator="not-equals" value="Y"/>
|
|
</and>
|
|
</condition>
|
|
<link target="myTasks?donePage=myTasks"/>
|
|
</menu-item>
|
|
<menu-item name="invoices" title="${uiLabelMap.AccountingInvoicesMenu}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="userLogin"/></not>
|
|
<if-has-permission permission="MYPAGE_CUSTOMER"/>
|
|
</and>
|
|
</condition>
|
|
<link target="listInvoices"/>
|
|
</menu-item>
|
|
<menu-item name="Logout" title="${uiLabelMap.CommonLogout}" align-style="opposed">
|
|
<condition><not><if-empty field-name="userLogin"/></not></condition>
|
|
<link target="logout"/>
|
|
</menu-item>
|
|
<menu-item name="Login" title="${uiLabelMap.CommonLogin}" align-style="opposed">
|
|
<condition><if-empty field-name="userLogin"/></condition>
|
|
<link target="${checkLoginUrl}"/>
|
|
</menu-item>
|
|
<menu-item name="help" title="${uiLabelMap.CommonHelp}" align-style="opposed">
|
|
<condition><not><if-empty field-name="userLogin"/></not></condition>
|
|
<link target="http://docs.ofbiz.org/display/OFBENDUSER/My+Page?decorator=printable" url-mode="plain" target-window="new"/>
|
|
</menu-item>
|
|
<menu-item name="preferences" title="${uiLabelMap.CommonPreferences}" align-style="opposed">
|
|
<condition>
|
|
<if-has-permission permission="MYPAGE_EMPLOYEE"/>
|
|
</condition>
|
|
<link target="preferences"/>
|
|
</menu-item>
|
|
<menu-item name="custPreferences" title="${uiLabelMap.CommonPreferences}" align-style="opposed">
|
|
<condition>
|
|
<if-has-permission permission="MYPAGE_CUSTOMER"/>
|
|
</condition>
|
|
<link target="custPreferences"/>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="MyCompanyCommsMenu">
|
|
<menu-item name="newEvent" title="${uiLabelMap.WorkEffortNewEvent}">
|
|
<link target="newEvent?donePage=${parameters.donePage}"/>
|
|
</menu-item>
|
|
</menu>
|
|
<menu name="communicationsMenu">
|
|
<menu-item name="newEmail" title="${uiLabelMap.PartyNewEmail}">
|
|
<condition>
|
|
<if-has-permission permission="PARTYMGR_CME-EMAIL_CREATE"/>
|
|
</condition>
|
|
<link
|
|
target="EditCommunicationEvent?communicationEventTypeId=EMAIL_COMMUNICATION&donePage=${parameters.donePage}" />
|
|
</menu-item>
|
|
<menu-item name="newNote" title="${uiLabelMap.PartyNewInternalNote}">
|
|
<condition>
|
|
<if-has-permission permission="PARTYMGR_CME-NOTE_CREATE"/>
|
|
</condition>
|
|
<link
|
|
target="EditCommunicationEvent?communicationEventTypeId=COMMENT_NOTE&donePage=${parameters.donePage}" />
|
|
</menu-item>
|
|
<menu-item name="openEvents" title="${uiLabelMap.OpenEvents}">
|
|
<condition>
|
|
<if-compare field-name="parameters.all" operator="equals" value="true" />
|
|
</condition>
|
|
<link target="${parameters.donePage}?donePage=${parameters.donePage}&all=false" />
|
|
</menu-item>
|
|
<menu-item name="allOtherEvents" title="${uiLabelMap.AllEvents}">
|
|
<condition>
|
|
<or>
|
|
<if-compare field-name="parameters.all" operator="equals" value="false" />
|
|
<if-empty field-name="parameters.all"/>
|
|
</or>
|
|
</condition>
|
|
<link target="${parameters.donePage}?donePage=${parameters.donePage}&all=true" />
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="MyTasksMenu" type="simple" menu-container-style="button-bar button-style-2" default-selected-style="selected" selected-menuitem-context-field-name="tabButtonItem">
|
|
<menu-item name="myTasks" title="myTasks"><link target="/projectmgr/control/MyTasks" url-mode="inter-app"/></menu-item>
|
|
</menu>
|
|
|
|
<menu name="MyTimesheetMenu">
|
|
<menu-item name="setToComplete" title="${uiLabelMap.CommonStatustoComplete}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
|
|
<if-compare field-name="headerItem" operator="equals" value="main"/>
|
|
</and>
|
|
</condition>
|
|
<link target="statusToComplete?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
|
|
</menu-item>
|
|
<menu-item name="setToCompleteKey" title="${uiLabelMap.CommonStatustoComplete}">
|
|
<condition>
|
|
<and>
|
|
<if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_IN_PROCESS"/>
|
|
<if-compare field-name="headerItem" operator="not-equals" value="main"/>
|
|
</and>
|
|
</condition>
|
|
<link target="statusToCompleteKey?timesheetId=${timesheet.timesheetId}&statusId=TIMESHEET_COMPLETED"/>
|
|
</menu-item>
|
|
<menu-item name="myTime" title="myTime"><link target="/projectmgr/control/MyTimesheet" url-mode="inter-app"/></menu-item>
|
|
</menu>
|
|
<menu name="CommSubTabBar" extends="CommSubTabBar" extends-resource="component://party/webapp/partymgr/communication/CommMenus.xml"
|
|
menu-container-style="button-bar button-style-2">
|
|
<menu-item name="close" title="${uiLabelMap.CommonClose}">
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field-name="communicationEventRole"/></not>
|
|
<if-compare field-name="communicationEventRole.statusId" operator="equals" value="COM_ROLE_READ"/>
|
|
</and>
|
|
</condition>
|
|
<link target="setCommunicationEventRoleStatus?communicationEventId=${parameters.communicationEventId}&partyId=${userLogin.partyId}&roleTypeId=${communicationEventRole.roleTypeId}&statusId=COM_ROLE_COMPLETED"/>
|
|
</menu-item>
|
|
<menu-item name="delete" title="${uiLabelMap.CommonDelete}">
|
|
<condition>
|
|
<not><if-empty field-name="communicationEventRole"/></not>
|
|
</condition>
|
|
<link target="RemoveCommunicationEventRole?communicationEventId=${parameters.communicationEventId}&roleTypeId=${communicationEventRole.roleTypeId}&partyId=${userLogin.partyId}&deleteCommEventIfLast=Y&delContentDataResource=Y"/>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
</menus> |