|
Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileForms.xml
------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileForms.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml?rev=1403874&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml (added) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml Tue Oct 30 21:19:31 2012 @@ -0,0 +1,564 @@ +<?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="PartyInfo"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="refresh"> + <condition> + <or> + <if-empty field="showScreenletMenu"/> + <if-compare field="showScreenletMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.Refresh}" image-title="${uiLabelMap.IconsTooltips_Refresh}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="updatePerson"> + <condition> + <and> + <or> + <if-empty field="showEditButton"/> + <if-compare field="showEditButton" operator="equals" value="Y"/> + </or> + <not><if-empty field="lookupPerson"/></not> + <or> + <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> + <if-compare-field field="parameters.partyId" operator="equals" to-field="userLogin.partyId"/> + </or> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="EditPersonPt" area-id="${subAreaDivId}" + image-location="${iconsPurpose.Edit}" image-title="${uiLabelMap.IconsTooltips_Edit}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="updatePartyGroup"> + <condition> + <and> + <or> + <if-empty field="showEditButton"/> + <if-compare field="showEditButton" operator="equals" value="Y"/> + </or> + <not><if-empty field="lookupGroup"/></not> + <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="EditPartyGroupPt" area-id="${subAreaDivId}" + image-location="${iconsPurpose.Edit}" image-title="${uiLabelMap.IconsTooltips_Edit}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="PartyDetailsMenu" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml" + default-selected-style="selected"> + <actions> + <set field="areaId" value="PP_${portalPageId}PartyDetail00001"/> + </actions> + <menu-item name="PartyInfo" > + <show-portlet portlet-id="PartyInfo" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.Details}" + image-title="${uiLabelMap.IconsTooltips_Details}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="ContactMechMgmt"> + <condition> + <or> + <if-empty field="ContactMechMgmtMenu"/> + <if-compare field="ContactMechMgmtMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="ContactMechMgmt" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.ContactMech}" + image-title="${uiLabelMap.IconsTooltips_ContactMech}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyRelationFroms"> + <condition> + <or> + <if-empty field="PartyRelationFromsMenu"/> + <if-compare field="PartyRelationFromsMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyRelationFroms" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.Party}" + image-title="${uiLabelMap.IconsTooltips_Party}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyUserLogins"> + <condition> + <or> + <if-empty field="PartyUserLoginsMenu"/> + <if-compare field="PartyUserLoginsMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyUserLogins" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.UserLogin}" + image-title="${uiLabelMap.IconsTooltips_UserLogin}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyRoles"> + <condition> + <or> + <if-empty field="PartyRolesMenu"/> + <if-compare field="PartyRolesMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyRoles" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.Role}" + image-title="${uiLabelMap.IconsTooltips_Role}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyNotes"> + <condition> + <or> + <if-empty field="PartyNotesMenu"/> + <if-compare field="PartyNotesMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyNotes" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.Note}" + image-title="${uiLabelMap.IconsTooltips_Note}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyPayments"> + <condition> + <or> + <if-empty field="PartyPaymentsMenu"/> + <if-compare field="PartyPaymentsMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyPaymentMethods" target="ShowPartyDetail" area-id="${areaId}" image-location="${iconsPurpose.Payment}" + image-title="${uiLabelMap.IconsTooltips_Payment}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyIdentLists" title="${uiLabelMap.PartyPartyIdentifications}"> + <condition> + <or> + <if-empty field="PartyIdentListsMenu"/> + <if-compare field="PartyIdentListsMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyIdentLists" target="ShowPartyDetail" area-id="${areaId}" > + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyAttributes" title="${uiLabelMap.PartyAttributes}"> + <condition> + <or> + <if-empty field="PartyAttributesMenu"/> + <if-compare field="PartyAttributesMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="PartyAttributes" target="ShowPartyDetail" area-id="${areaId}" > + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + <menu name="PartyExternalMenu" menu-container-style="button-bar button-style-2"> + <menu-item name="findRequest" title="${uiLabelMap.PartyPartyRequests}" > + <condition> + <if-has-permission permission="ORDERMGR" action="_VIEW"/> + </condition> + <link target="/ordermgr/control/FindRequest" url-mode="inter-app"> + <parameter param-name="lookupFlag" value="Y"/> + <parameter param-name="fromPartyId" from-field="partyId"/> + <parameter param-name="externaLoginKey" from-field="externalLoginKey"/> + </link> + </menu-item> + <menu-item name="findQuote" title="${uiLabelMap.OrderOrderQuotes}" > + <condition> + <if-has-permission permission="ORDERMGR" action="_VIEW"/> + </condition> + <link target="/ordermgr/control/FindQuote" url-mode="inter-app"> + <parameter param-name="partyId"/> + <parameter param-name="externalLoginKey"/> + </link> + </menu-item> + <menu-item name="searchOrder" title="${uiLabelMap.OrderOrders}" > + <condition> + <if-has-permission permission="ORDERMGR" action="_VIEW"/> + </condition> + <link target="/ordermgr/control/searchorders" url-mode="inter-app" link-type="hidden-form"> + <parameter param-name="lookupFlag" value="Y"/> + <parameter param-name="hideFields" value="Y"/> + <parameter param-name="partyId"/> + <parameter param-name="externalLoginKey"/> + <parameter param-name="viewIndex" value="1"/> + <parameter param-name="viewSize" value="20"/> + </link> + </menu-item> + <menu-item name="newQuote" title="${uiLabelMap.OrderNewQuote}"> + <condition> + <if-has-permission permission="ORDERMGR" action="_CREATE"/> + </condition> + <link target="/ordermgr/control/EditQuote" url-mode="inter-app"> + <parameter param-name="partyId"/> + <parameter param-name="externaLoginKey" from-field="externalLoginKey"/> + </link> + </menu-item> + </menu> + + <menu name="PartyUserLogins" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="refresh"> + <condition> + <or> + <if-empty field="showScreenletMenu"/> + <if-compare field="showScreenletMenu" operator="equals" value="Y"/> + </or> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.Refresh}" image-title="${uiLabelMap.IconsTooltips_Refresh}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="AddPartyUserLogin"> + <condition> + <and> + <or> + <if-empty field="showEditButton"/> + <if-compare field="showEditButton" operator="equals" value="Y"/> + </or> + <if-has-permission permission="PARTYMGR" action="_CREATE"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="createPartyUserLoginPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="securityGroupId"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="ContactMechMgmt" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + <set field="primaryId" from-field="parameters.primaryId"/> + </actions> + <menu-item name="addPostalAddress" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddPostalAddress" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" image-location="${iconsPurpose.Address}" image-title="${uiLabelMap.CreateNewPostalAddress}" target="editContactMechMgmt"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="preContactMechTypeId" value="POSTAL_ADDRESS"/> + <parameter param-name="contactMechPurposeTypeId" from-field="defaultPostalAddressPurposeId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="addEmail" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddEmail" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" target="editContactMechMgmt" image-location="${iconsPurpose.Email}" image-title="${uiLabelMap.CreateNewMailAddress}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="preContactMechTypeId" value="EMAIL_ADDRESS"/> + <parameter param-name="contactMechPurposeTypeId" from-field="defaultEmailAddressPurposeId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="AddFaxNumber" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddFax" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" target="editContactMechMgmt" image-location="${iconsPurpose.Print}" image-title="${uiLabelMap.CreateNewFaxNumber}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="preContactMechTypeId" value="TELECOM_NUMBER"/> + <parameter param-name="contactMechPurposeTypeId" from-field="defaultFaxPurposeId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="AddMobileNumber" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddMobileNumber" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" target="editContactMechMgmt" image-location="${iconsPurpose.Phone}" image-title="${uiLabelMap.CreateNewMobileNumber}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="preContactMechTypeId" value="TELECOM_NUMBER"/> + <parameter param-name="contactMechPurposeTypeId" from-field="defaultMobilePurposeId"/><!--PHONE_MOBILE--> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="AddTelNumber" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddTelecomNumber" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" target="editContactMechMgmt" image-location="${iconsPurpose.Telephone}" image-title="${uiLabelMap.CreateNewTelNumber}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="preContactMechTypeId" value="TELECOM_NUMBER"/> + <parameter param-name="contactMechPurposeTypeId" from-field="defaultTelecomNumberPurposeId"/><!-- PRIMARY_PHONE--> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="AddOthers" title=" "> + <condition><not><or><if-empty field="primaryId"/><if-compare field="showMenuAddOther" value="N" operator="equals"/></or></not></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${editAreaDivId}" target="editContactMechMgmt" image-location="${iconsPurpose.Server}" image-title="${uiLabelMap.IconsTooltips_Server}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + <menu-item name="showHistory" title=" "> + <condition> + <and> + <not><if-empty field="primaryId"/></not> + <if-compare field="parameters.SHOW_OLD" operator="not-equals" value="true"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.History}" image-title="${uiLabelMap.PartyShowOld}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="true"/> + </show-portlet> + </menu-item> + <menu-item name="hideHistory" title="${uiLabelMap.PartyHideOld}"> + <condition> + <and> + <not><if-empty field="primaryId"/></not> + <if-compare field="parameters.SHOW_OLD" operator="equals" value="true"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.History}" image-title="${uiLabelMap.PartyHideOld}"> + <parameter param-name="entity" from-field="parameters.entity"/> + <parameter param-name="primaryId" from-field="parameters.primaryId"/> + <parameter param-name="areaId" from-field="parameters.areaId"/> + <parameter param-name="idDescription"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="PartyRelationships" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="refresh"> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.Refresh}" image-title="${uiLabelMap.IconsTooltips_Refresh}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="AddPartyRelationshipFrom"> + <condition> + <and> + <if-compare field="showEditButton" operator="equals" value="Y"/> + <if-compare field="relationIs" operator="equals" value="FROM"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="EditPartyRelationshipPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="relationIs" value="FROM"/> + <parameter param-name="partyIdFrom" from-field="parameters.partyId"/> + <parameter param-name="roleTypeIdFrom"/> + <parameter param-name="roleTypeGroupIdFrom"/> + <parameter param-name="partyRelationshipTypeIdAttr"/> + <parameter param-name="roleTypeIdTo"/> + <parameter param-name="roleTypeGroupIdTo"/> + </show-portlet> + </menu-item> + <menu-item name="AddPartyRelationshipTo"> + <condition> + <and> + <if-compare field="showEditButton" operator="equals" value="Y"/> + <if-compare field="relationIs" operator="equals" value="TO"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="EditPartyRelationshipPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="relationIs" value="TO"/> + <parameter param-name="partyIdTo" from-field="parameters.partyId"/> + <parameter param-name="roleTypeIdFrom"/> + <parameter param-name="roleTypeGroupIdFrom"/> + <parameter param-name="partyRelationshipTypeIdAttr"/> + <parameter param-name="roleTypeIdTo"/> + <parameter param-name="roleTypeGroupIdTo"/> + </show-portlet> + </menu-item> + <menu-item name="showHistory"> + <condition> + <and> + <if-compare field="showHistoryButton" operator="equals" value="Y"/> + <if-compare field="showHistory" operator="not-equals" value="Y"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.History}" image-title="${uiLabelMap.IconsTooltips_History}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="showHistory" value="Y"/> + </show-portlet> + </menu-item> + <menu-item name="hideHistory"> + <condition> + <and> + <if-compare field="showHistoryButton" operator="equals" value="Y"/> + <if-compare field="showHistory" operator="equals" value="Y"/> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.HideHistory}" image-title="${uiLabelMap.IconsTooltips_HideHistory}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="showHistory" value="N"/> + </show-portlet> + </menu-item> + </menu> + + + <menu name="PartyRoles" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <menu-item name="RefreshPortlet"> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.Refresh}" image-title="${uiLabelMap.IconsTooltips_Refresh}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="PartyRoleAddMenu"> + <condition> + <if-compare field="showEditButton" operator="equals" value="true"/> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="AddPartyRoles" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="parentGroupId"/> + <parameter param-name="parentTypeId"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="PartyNotes" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="AddPartyNote"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="EditPartyNotePt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="AssocNote" position="1"> + <condition> + <and> + <not><if-empty field="parameters.partyId"/></not> + <or> + <if-empty field="assocNoteMenu"/> + <if-compare field="assocNoteMenu" operator="equals" value="Y"/> + </or> + </and> + </condition> + <show-portlet portlet-id="${portalPortletId}" target="AssocPartyNotePt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Associate}" image-title="${uiLabelMap.CommonAssociateExistingNote}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="PartyAttributes" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="AddPartyAttributes"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyAttributePt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" + image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + <menu name="PartyAvsSettings" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="resetAVS"> + <show-portlet portlet-id="${portalPortletId}" target="resetAvsOverrideJson" area-id="" image-location="${iconsPurpose.Cancel}" + image-title="${uiLabelMap.CommonReset}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + + <menu name="PartyIdentifications" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <menu-item name="AddPartyIdentification"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyIdentificationPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.Add}" image-title="${uiLabelMap.IconsTooltips_Add}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="RefreshPortlet"> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.Refresh}" image-title="${uiLabelMap.IconsTooltips_Refresh}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + + + <menu name="PartyPaymentMethods" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${areaId}"/> + <set field="SHOW_OLD" from-field="parameters.SHOW_OLD" default-value="false"/> + </actions> + <menu-item name="AddGiftCard"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyPaymentMethodPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.GiftCard}" image-title="${uiLabelMap.PartyCreateNewGiftCard}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="paymentMethodTypeId" value="GIFT_CARD"/> + </show-portlet> + </menu-item> + <menu-item name="AddEftAccount"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyPaymentMethodPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.EftAccount}" image-title="${uiLabelMap.PartyCreateNewEftAccount}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="paymentMethodTypeId" value="EFT_ACCOUNT"/> + </show-portlet> + </menu-item> + <menu-item name="AddCreditCard"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyPaymentMethodPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.CreditCard}" image-title="${uiLabelMap.PartyCreateNewCreditCard}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="paymentMethodTypeId" value="CREDIT_CARD"/> + </show-portlet> + </menu-item> + <menu-item name="AddBillingAccount"> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <show-portlet portlet-id="${portalPortletId}" target="editPartyBillingAccountPt" area-id="${editAreaDivId}" image-location="${iconsPurpose.BillingAccount}" image-title="${uiLabelMap.AccountingCreateBillingAccount}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="ShowHistory"> + <condition><if-compare field="SHOW_OLD" operator="not-equals" value="true"/></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.History}" image-title="${uiLabelMap.IconsTooltips_History}" > + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="SHOW_OLD" value="true"/> + </show-portlet> + </menu-item> + <menu-item name="HideHistory"> + <condition><if-compare field="SHOW_OLD" operator="not-equals" value="false"/></condition> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" image-location="${iconsPurpose.HideHistory}" image-title="${uiLabelMap.IconsTooltips_HideHistory}" > + <parameter param-name="partyId" from-field="parameters.partyId"/> + <parameter param-name="SHOW_OLD" value="false"/> + </show-portlet> + </menu-item> + </menu> +</menus> Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileMenus.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml?rev=1403874&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml (added) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml Tue Oct 30 21:19:31 2012 @@ -0,0 +1,539 @@ +<?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="PartyDetailsMenu"> + <section> + <condition> + <not><if-empty field="parameters.partyId"/></not> + </condition> + <widgets> + <include-menu name="PartyExternalMenu" location="component://party/widget/ProfileMenus.xml"/> + <section> + <widgets> + <include-screen name="PartyInfo"/> + </widgets> + </section> + </widgets> + </section> + </screen> + + <!-- Screen used by controller for displaying portlets in details area (not used directly by a portlet) --> + <screen name="ShowPartyDetail"> + <section> + <condition> + <not><if-empty field="parameters.partyId"/></not> + </condition> + <actions> + <set field="defaultdetailPortletId" from-field="dtPartyId" from-scope="user" default-value="PartyInfo"/> + <set field="portalPortletId" from-field="parameters.portalPortletId" default-value="${defaultdetailPortletId}"/> + <set field="dtPartyId" from-field="portalPortletId" to-scope="user"/> + <set field="portalPageId" from-field="parameters.portalPageId"/> + <set field="parameters.areaId" value="PP_${portalPageId}PartyDetail00001"/> + <set field="portletSeqId" from-field="parameters.portletSeqId" default-value="00001"/> + </actions> + <widgets> + <include-portal-page id="${portalPageId}" portalPortletId="${portalPortletId}" portletSeqId="${portletSeqId}"/> + </widgets> + </section> + </screen> + <screen name="PartyInfo"> + <section> + <widgets> + <section> + <condition> + <not><if-empty field="lookupPerson"/></not> + </condition> + <widgets> + <include-form name="ViewPartyPerson" location="component://party/widget/partymgr/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyPersonHistory" location="component://party/widget/partymgr/PartyForms.xml"/> + </widgets> + </section> + </widgets> + </section> + <section> + <condition> + <not><if-empty field="lookupGroup"/></not> + </condition> + <widgets> + <include-form name="ViewPartyGroup" location="component://party/widget/partymgr/PartyForms.xml"/> + <section> + <condition> + <not><if-empty field="partyNameHistoryList"/></not> + </condition> + <widgets> + <include-form name="ViewPartyGroupHistory" location="component://party/widget/partymgr/PartyForms.xml"/> + </widgets> + </section> + </widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="EditPerson"> + <section> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <entity-one entity-name="PartyAndPerson" value-field="personInfo"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPerson" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditPartyGroup"> + <section> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <entity-one entity-name="PartyAndGroup" value-field="partyGroup"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPartyGroup" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="PartyUserLogins"> + <section> +<!-- <actions>Done in ProfileWactions.xml</actions>--> + <widgets> + <iterate-section entry="partyAndUserLogin" list="partyAndUserLogins"> + <section> + <actions> + <set field="userLoginId" from-field="partyAndUserLogin.userLoginId"/> + <set field="disabledDateTime" from-field="partyAndUserLogin.disabledDateTime"/> + </actions> + <widgets> + <container id="PartyUserLogin${userLoginId}_EditArea"/> + <include-form name="ShowUserLogin" location="component://party/widget/ProfileForms.xml"/> + <section> + <condition> + <if-has-permission permission="SECURITY" action="_VIEW"/> + </condition> + <widgets> + <include-form name="ListUserLoginSecurityGroups" location="component://party/widget/ProfileForms.xml"/> + </widgets> + </section> + <horizontal-separator/> + </widgets> + </section> + </iterate-section> + </widgets> + </section> + </screen> + <screen name="EditUserLoginPassword"> + <section> + <actions> + <set field="userLoginId" from-field="parameters.userLoginId"/> + <entity-one entity-name="UserLogin" value-field="editUserLogin"/> + <set field="partyId" from-field="editUserLogin.partyId"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditUserLoginPassword" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditPartyUserLogin"> + <section> + <actions> + <entity-one value-field="editUserLogin" entity-name="UserLogin"/> + <set field="partyId" from-field="editUserLogin.partyId"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <container style="h2"> + <label text="${uiLabelMap.UserLoginUpdateSecuritySettings} - ${parameters.userLoginId}"/> + </container> + <include-form name="updateUserLoginSecurity" location="component://party/widget/ProfileForms.xml"/> + <screenlet title="${uiLabelMap.UserLoginChangePassword} - ${parameters.userLoginId}"> + <include-form name="EditUserLoginPassword" location="component://party/widget/ProfileForms.xml"/> + </screenlet> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="CreatePartyUserLogin"> + <section> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <service service-name="getPortletAttributes"></service><!--FIXME OHE use service result not coming from parameters --> + <set field="securityGroupId" from-field="parameters.securityGroupId"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="addUserLogin" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="AddUserLoginSecurityGroup"> + <section> + <actions> + <set field="userLoginId" from-field="parameters.userLoginId"/> + <set field="partyId" from-field="parameters.partyId"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="AddUserLoginSecurityGroup" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ContactMechMgmt"> + <section> + <actions> + <set field="primaryId" from-field="parameters.primaryId"/> + <set field="entity" from-field="parameters.entity"/> + </actions> + <widgets> + <platform-specific> + <html> + <html-template location="component://party/webapp/partymgr/party/profileblocks/GivenContact.ftl"/> + </html> + </platform-specific> + </widgets> + </section> + </screen> + <screen name="EditContactMechMgmt"> + <section> + <actions> + <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditGivenContactMech.groovy"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <condition> + <or> + <if-compare field="hasViewPermission" operator="equals" value="true" type="Boolean"/> + <if-compare field="hasPcmCreatePermission" operator="equals" value="true" type="Boolean"/> + <if-compare field="hasPcmUpdatePermission" operator="equals" value="true" type="Boolean"/> + <if-compare-field field="parameters.partyId" operator="equals" to-field="userLogin.partyId"/> + <not><if-empty field="mechMap.partyContactMech"/></not> + </or> + </condition> + <actions> + <set field="dependentForm" value="editcontactmechform"/> + <set field="paramKey" value="countryGeoId"/> + <set field="mainId" value="countryGeoId"/> + <set field="dependentId" value="stateProvinceGeoId"/> + <set field="requestName" value="getAssociatedStateList"/> + <set field="responseName" value="stateList"/> + <set field="dependentKeyName" value="geoId"/> + <set field="descName" value="geoName"/> + <set field="selectedDependentOption" from-field="mechMap.postalAddress.stateProvinceGeoId" default-value="_none_"/> + </actions> + <widgets> + <platform-specific> + <html> + <html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/> + <html-template location="component://party/webapp/partymgr/party/editgivencontactmech.ftl"/> + </html> + </platform-specific> + <horizontal-separator/> + </widgets> + </section> + <section> + <condition> + <if-compare value="EMAIL_ADDRESS" operator="equals" field="${mechMap.contactMechTypeId}"/> + </condition> + <widgets> + <label text="${uiLabelMap.PartyPhoneNumber}"/> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="EditPartyRelationship"> + <section> + <actions> + <service service-name="getPortletAttributes" result-map="result"/> + <set field="attributeMap" from-field="result.attributeMap"/> + <entity-one value-field="relation" entity-name="PartyRelationship"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPartyRelationship" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="AddPartyRoles"> + <section> + <actions> + <service service-name="getPortletAttributes" result-map="result"/> + <set field="attributeMap" from-field="result.attributeMap"/> + <set field="partyId" from-field="parameters.partyId" /> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <condition> + <and> + <if-empty field="attributeMap.roleTypeGroupId"/> + </and> + </condition> + <widgets> + <label style="h2">${uiLabelMap.PartySelectMainRole}</label> + <include-form name="SelectMainRoleForParty" location="component://party/widget/ProfileForms.xml"/> + <container id="addPartySecondaryRole" /> + <label style="h2">${uiLabelMap.PartyAddToRoleViewAll}</label> + <include-form name="AddRoletoParty" location="component://party/widget/ProfileForms.xml"/> + </widgets> + <fail-widgets> + <include-form name="AddRoleForPartyWithFilter" location="component://party/widget/ProfileForms.xml" /> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="AddSecondaryPartyRole"> + <section> + <actions> + <entity-and entity-name="RoleType" list="roles" > + <field-map field-name="parentTypeId" value="${parameters.roleTypeId}"/> + <order-by field-name="roleTypeId"/><!-- orderBy description not works for other language than English --> + </entity-and> + </actions> + <widgets> + <section> + <condition> + <not> + <if-empty field="roles"/> + </not> + </condition> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <label style="h2">${uiLabelMap.PartyAddToSecondRole}</label> + <include-form name="AddSecondaryPartyRole" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </widgets> + </section> + </screen> + + <screen name="EditPartyAttribute"> + <section> + <actions> + <entity-one entity-name="PartyAttribute" value-field="attribute"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPartyAttribute" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + +<!-- <screen name="PartyIdentification"> + <section> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <set field="refreshId" from-field="parameters.refreshId" default-value="PartyIdentification_refresh"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="ListPartyIdentification" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + --> + <screen name="EditPartyIdentification"> + <section> + <actions> + <service service-name="getPortletAttributes" result-map="result"/> + <set field="attributeMap" from-field="result.attributeMap"/> + <entity-one entity-name="PartyIdentification" value-field="partyIdentification"/> + <set field="paramParentTypeId" from-field="attributeMap.parentTypeId"/> +<!-- <field-map field-name="partyId" from-field="parameters.partyId"/>--> +<!-- <field-map field-name="partyIdentificationTypeId" from-field="parameters.partyIdentificationTypeId"/>--> +<!-- </entity-one>--> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPartyIdentification" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditPartyNote"> + <section> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <set field="areaId" from-field="parameters.areaId" default-value="${areaId}"/> + <set field="portalPageId" from-field="parameters.portalPageId" default-value="${portalPageId}"/> + <set field="portletSeqId" from-field="parameters.portletSeqId" default-value="${portletSeqId}"/> + <entity-one value-field="partyNote" entity-name="NoteData"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="EditPartyNote" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="AssocPartyNote"> + <section> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="AssocPartyNote" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="PartyPaymentMethods"> + <section> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <actions> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/GetPartyPaymentMethods.groovy"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <include-form name="PartyPaymentMethodsList" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditPartyBillingAccount"> + <section> + <actions> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditPaymentMethod.groovy"/> + <property-to-field field="defaultOrganizationPartyCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/> + <set field="roleTypeId" from-field="parameters.roleTypeId"/> + <entity-one entity-name="BillingAccount" value-field="billingAccount"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <condition><not><if-empty field="billingAccount"/></not></condition> + <widgets> + <platform-specific> + <html><html-template location="component://party/webapp/partymgr/party/editbillingaccountterm.ftl"/></html> + </platform-specific> + </widgets> + </section> + <include-form name="EditPartyBillingAccount" location="component://party/widget/ProfileForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="EditPartyPaymentMethod"> + <section> + <condition><not><if-empty field="parameters.partyId"/></not></condition> + <actions> + <entity-one entity-name="PaymentMethod" value-field="paymentMethod"/> + <set field="paymentMethodTypeId" from-field="parameters.paymentMethodTypeId" default-value="${paymentMethod.paymentMethodTypeId}"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> + <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditPaymentMethod.groovy"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <condition><if-compare field="paymentMethodTypeId" operator="equals" value="CREDIT_CARD" /></condition> + <widgets> + <include-form name="EditPartyCreditCard" location="component://party/widget/ProfileForms.xml"/> + </widgets> + <fail-widgets> + <section> + <condition><if-compare field="paymentMethodTypeId" operator="equals" value="GIFT_CARD" /></condition> + <widgets> + <include-form name="EditPartyGiftCard" location="component://party/widget/ProfileForms.xml"/> + </widgets> + <fail-widgets> + <section> + <condition><if-compare field="paymentMethodTypeId" operator="equals" value="EFT_ACCOUNT" /></condition> + <widgets> + <include-form name="EditPartyEftAccount" location="component://party/widget/ProfileForms.xml"/> + </widgets> + <fail-widgets> + <include-form name="EditPartyPaymentMethod" location="component://party/widget/ProfileForms.xml"/> + </fail-widgets> + </section> + </fail-widgets> + </section> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/ProfileScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml?rev=1403874&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml (added) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml Tue Oct 30 21:19:31 2012 @@ -0,0 +1,144 @@ +<?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. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + + <form name="PartyLastVisits" type="list" odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <set field="partyId" from-field="parameters.partyId"/> + <entity-and entity-name="Visit"> + <field-map field-name="partyId" from-field="partyId"/> + <order-by field-name="-fromDate"/> + <limit-range start="0" size="5"/> + </entity-and> + </actions> + <field name="visitId" title="${uiLabelMap.PartyVisitId}"> + <show-portlet portlet-id="${portalPortletId}" target="visitdetailPt" area-id="${editAreaDivId}" description="${visitId}" + image-title="${uiLabelMap.IconsTooltips_Edit}"> + <parameter param-name="visitId"/> + </show-portlet> + </field> + <field name="userLoginId" title="${uiLabelMap.PartyUserLogin}"><display type="text"/></field> + <field name="userCreated" title="${uiLabelMap.PartyNewUser}"><display type="text"/></field> + <field name="webappName" title="${uiLabelMap.PartyWebApp}"><display type="text"/></field> + <field name="clientIpAddress" title="${uiLabelMap.PartyClientIP}"><display type="text"/></field> + <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date-time"/></field> + <field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date-time"/></field> + </form> + + <form name="FindVisits" type="single" title="Find and list party visits" + header-row-style="header-row" default-table-style="basic-table"> + <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> + <field name="activeOnly"><check /></field> + <field name="visitId"><text-find ignore-case="true"/></field> + <field name="visitorId"><text-find ignore-case="true"/></field> + <field name="partyId"><lookup target-form-name="LookupPartyName"/></field> + <field name="userLoginId"><text-find ignore-case="true"/></field> + <field name="userCreated"><date-find type="date"/></field> + <field name="webappName"><text-find ignore-case="true"/></field> + <field name="clientIpAddress"><text-find ignore-case="true"/></field> + <field name="searchButton" title=" " widget-style="smallSubmit"> + <show-portlet portlet-id="${portalPortletId}" area-id="${areaId}" description="${uiLabelMap.CommonFind}" collapse-screenlet="true"> + <parameters-form/> + </show-portlet> + </field> + </form> + <form name="ListVisits" type="list" separate-columns="true" title="Visits List" list-name="listIt" target="" default-entity-name="Visit" paginate-target="findVisitsPt" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <actions> + <set field="parameters.sortField" from-field="parameters.sortField" default-value="-visitId"/> + <set field="recapPageId" from-field="recapPageId" default-value="PartyRecap"/> + + <service service-name="performFind" result-map="result" result-map-list="listIt"> + <field-map field-name="inputFields" from-field="parameters"/> + <field-map field-name="entityName" value="Visit"/> + <field-map field-name="orderBy" from-field="parameters.sortField"/> + <field-map field-name="filterByDate" from-field="parameters.activeOnly"/> + </service> + </actions> + <field name="visitId" sort-field="true"> + <show-portlet portlet-id="${portalPortletId}" target="visitdetailPt" area-id="${editAreaDivId}" description="${visitId}"> + <parameter param-name="visitId"/> + </show-portlet> + </field> + <field name="visitorId" title="${uiLabelMap.PartyVisitorId}" sort-field="true"><display/></field> + <field name="partyId" sort-field="true"> + <hyperlink target="showPortalPage" description="${partyId}" image-location="${iconsPurpose.Overview}" image-title="${uiLabelMap.IconsTooltips_Overview}"> + <parameter param-name="portalPageId" from-field="recapPageId"/> + <parameter param-name="partyId"/> + </hyperlink> + </field> + <field name="userLoginId" title="${uiLabelMap.CommonUserLoginId}" sort-field="true"><display/></field> + <field name="userCreated" title="${uiLabelMap.PartyNewUser}" sort-field="true"><display/></field> + <field name="webappName" title="${uiLabelMap.PartyWebApp}" sort-field="true"><display/></field> + <field name="clientIpAddress" title="${uiLabelMap.PartyClientIP}" sort-field="true"><display/></field> + <field name="fromDate" title="${uiLabelMap.CommonFromDate}" sort-field="true"><display type="date-time"/></field> + <field name="thruDate" title="${uiLabelMap.CommonThruDate}" sort-field="true"><display type="date-time"/></field> + </form> + <form name="visitDetail" type="single" title="${uiLabelMap.PartyVisitDetail}" default-map-name="visit"> + <field name="sessionId" title="${uiLabelMap.PartyVisitIDSessionID}"><display description="${visit.visitId} / ${visit.sessionId}"/></field> + <field name="visitorId" title="${uiLabelMap.PartyVisitorId}"><display default-value="${uiLabelMap.CommonNot} ${uiLabelMap.CommonFound}"/></field> + <field name="partyId" title="${uiLabelMap.PartyPartyIDUserLoginID}"> + <show-portlet portlet-id="${portalPortletId}" target="viewprofilePt" area-id="${editAreaDivId}" description="${visit.partyId} / ${visit.userLoginId}"> + <parameter param-name="partyId" from-field="visit.partyId"/> + </show-portlet> + </field> + <field name="userCreated" title="${uiLabelMap.PartyUserCreated}"><display/></field> + <field name="webappName" title="${uiLabelMap.PartyWebApp}"><display/></field> + <field name="serverIpAddress" title="${uiLabelMap.PartyServer}"> + <show-portlet portlet-id="${portalPortletId}" target="_blank" area-id="${editAreaDivId}" description="${visit.serverIpAddress} / ${visit.serverHostName}"> + <parameter param-name="site" from-field="visit.serverIpAddress"/> + </show-portlet> + </field> + <field name="clientIpAddress" title="${uiLabelMap.PartyClient}"> + <show-portlet portlet-id="${portalPortletId}" target="_blank" area-id="${editAreaDivId}" description="${visit.clientIpAddress} / ${visit.clientHostName}"> + <parameter param-name="queryinput" from-field="visit.clientIpAddress"/> + </show-portlet> + </field> + <field name="clientUser" title="${uiLabelMap.PartyClientUser}"><display/></field> + <field name="initialLocale" title="PartyInitialLocale"><display/></field> + <field name="initialRequest" title="${uiLabelMap.PartyInitialRequest}"><hyperlink target="_blank"/></field> + <field name="initialReferrer" title="${uiLabelMap.PartyInitialReferer}"><hyperlink target="_blank"/></field> + <field name="initialUserAgent" title="${uiLabelMap.PartyInitialUserAgent}"><display/></field> + <field name="cookie" title="${uiLabelMap.PartyCookie}"><display/></field> + <field use-when="thruDate!=empty" name="date" title="${uiLabelMap.CommonFromDateThruDate}"> + <display description="${visit.fromDate} / ${visit.thruDate}"/> + </field> + <field use-when="thruDate==empty" name="date" title="${uiLabelMap.CommonFromDateThruDate}"> + <display description="${visit.fromDate} / ${uiLabelMap.PartyStillActive}"/> + </field> + </form> + <form name="hitTracker" type="list" separate-columns="true" target="" paginate-target="visitdetailPt" list-name="serverHits" + odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> + <row-actions> + <entity-one entity-name="ServerHitType" value-field="description"> + <field-map field-name="hitTypeId"/> + </entity-one> + </row-actions> + <field name="contentId" title="${uiLabelMap.PartyContentId}"><display/></field> + <field name="description" title="${uiLabelMap.PartyType}"><display/></field> + <field name="numOfBytes" title="${uiLabelMap.PartySize}"><display default-value="?"/></field> + <field name="hitStartDateTime" title="${uiLabelMap.PartyStartTime}"><display type="date-time"/></field> + <field name="runningTimeMillis" title="${uiLabelMap.PartyTime}"><display/></field> + <field name="requestUrl" title="${uiLabelMap.PartyURI}"><hyperlink target="_blank"/></field> + </form> + +</forms> Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml?rev=1403874&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml (added) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml Tue Oct 30 21:19:31 2012 @@ -0,0 +1,41 @@ +<?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="PartyLastVisits" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <actions> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <menu-item name="ListAll"> + <show-portlet portlet-id="PartyAllVisits" area-id="${areaId}" description="${uiLabelMap.CommonListAll}" + image-title="${uiLabelMap.CommonListAll}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + <menu-item name="refresh"> + <show-portlet portlet-id="${portalPortletId}" image-location="${iconsPurpose.Refresh}" + image-title="${uiLabelMap.CommonReset}"> + <parameter param-name="partyId" from-field="parameters.partyId"/> + </show-portlet> + </menu-item> + </menu> + +</menus> Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitMenus.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml?rev=1403874&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml (added) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml Tue Oct 30 21:19:31 2012 @@ -0,0 +1,93 @@ +<?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="PartyAllVisits"> + <section> + <actions> + <set field="noConditionFind" value="Y"/> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + </actions> + <widgets> + <container id="${editAreaDivId}"/> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <!-- do check for PARTYMGR, _VIEW permission --> + <condition> + <if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/> + </condition> + <widgets> + <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> + <decorator-section name="search-options"> + <include-form name="FindVisits" location="component://party/widget/VisitForms.xml"/> + </decorator-section> + <decorator-section name="search-results"> + <include-form name="ListVisits" location="component://party/widget/VisitForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="visitdetail"> + <section> + <actions> + <set field="titleProperty" value="PageTitleVisitDetail"/> + <set field="areaId" from-field="parameters.areaId" default-value="${currentAreaId}"/> + + <script location="component://party/webapp/partymgr/WEB-INF/actions/visit/VisitDetails.groovy"/> + </actions> + <widgets> + <decorator-screen name="portletUiLabelDecorator" location="component://party/widget/CommonScreens.xml"> + <decorator-section name="body"> + <section> + <!--do check for PARTYMGR, _VIEW permission --> + <condition> + <if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/> + </condition> + <widgets> + <screenlet name="partyVisitDetail" title="${uiLabelMap.PartyVisitDetail}"> + <include-form name="visitDetail" location="component://party/widget/VisitForms.xml"/> + </screenlet> + <screenlet name="partyHitTracker" title="${uiLabelMap.PartyHitTracker}"> + <include-form name="hitTracker" location="component://party/widget/VisitForms.xml"/> + </screenlet> + </widgets> + <fail-widgets> + <label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> + Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/applications/party/widget/VisitScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/branches/20120329_portletWidget/applications/party/widget/partymgr/PartyMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/applications/party/widget/partymgr/PartyMenus.xml?rev=1403874&r1=1403873&r2=1403874&view=diff ============================================================================== --- ofbiz/branches/20120329_portletWidget/applications/party/widget/partymgr/PartyMenus.xml (original) +++ ofbiz/branches/20120329_portletWidget/applications/party/widget/partymgr/PartyMenus.xml Tue Oct 30 21:19:31 2012 @@ -22,6 +22,8 @@ <menu name="PartyAppBar" title="${uiLabelMap.PartyManager}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> <menu-item name="find" title="${uiLabelMap.PartyParties}"><link target="findparty"/></menu-item> + <menu-item name="portalPage" parent-portal-page-value="PartyMgmt"/> + <menu-item name="mycomm" title="${uiLabelMap.PartyMyCommunications}"><link target="MyCommunicationEvents"/></menu-item> <menu-item name="comm" title="${uiLabelMap.PartyCommunications}"><link target="FindCommunicationEvents"/></menu-item> <menu-item name="visits" title="${uiLabelMap.PartyVisits}"><link target="findVisits"/></menu-item> |
| Free forum by Nabble | Edit this page |
