Author: ashish
Date: Fri Dec 28 13:54:39 2007 New Revision: 607341 URL: http://svn.apache.org/viewvc?rev=607341&view=rev Log: Applied patch from JIRA Issue # OFBIZ-1550. Description :- Create UI for the PartyInvitation Services. I did small modification in the patch to fetch the toName value on the basis of partyId supplied in the form. Thanks to Alok Agnihotri for the patch. Added: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml (with props) ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml (with props) Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.properties ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml ofbiz/trunk/applications/party/webapp/partymgr/includes/appheader.ftl ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml Modified: ofbiz/trunk/applications/party/config/PartyUiLabels.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/config/PartyUiLabels.properties?rev=607341&r1=607340&r2=607341&view=diff ============================================================================== --- ofbiz/trunk/applications/party/config/PartyUiLabels.properties (original) +++ ofbiz/trunk/applications/party/config/PartyUiLabels.properties Fri Dec 28 13:54:39 2007 @@ -110,6 +110,10 @@ PageTitleMain=Main Page PageTitleNewPartyNote=New Party Note PageTitlePartyCarrierAccount=Edit Party Carrier Account +PageTitleFindPartyInvitation=Find Party Invitation +PageTitlePartyInvitation=Party Invitation +PageTitleEditPartyInvitationGroupAssoc=Edit Party Invitation GroupAssoc +PageTitleEditPartyInvitationRoleAssoc=Edit Party Invitation RoleAssoc PageTitlePendingCommunications=Pending Communications PageTitleSecurityGroupsList=Security Groups List PageTitleShoppingList=Shopping List @@ -278,6 +282,7 @@ PartyFindCommunicationEvents=Find Communication Events PartyFindParties=Find Parties PartyFindParty=Find Party +PartyFindPartyInvitations=Find Party Invitations PartyFirstName=First Name PartyFirstNameMissing=Firstname is Missing PartyFollowSession=Follow Session @@ -302,6 +307,13 @@ PartyInitialReferer=Initial Referer PartyInitialRequest=Initial Request PartyInitialUserAgent=Initial User Agent +PartyInvitation=Invitation +PartyInvitationGroupAssoc=GroupAssoc +PartyInvitationGroupAssocPartyIdTo=Party Id To +PartyInvitationRoleAssoc=RoleAssoc +PartyInvitationLastInviteDate=Last Invite Date +PartyInvitationNewPartyInvitation=New Party Invitation +PartyInvitationPartyInvitationId=Party Invitation Id PartyInvitationAccAndDecPermissionError=You do not have permission to accept or decline Party Invitation PartyInvitationCancelPermissionError=You do not have permission to cancel the Party Invitation PartyInvitationNotValidError=This is not a valid Party Invitation Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml?rev=607341&r1=607340&r2=607341&view=diff ============================================================================== --- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml (original) +++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml Fri Dec 28 13:54:39 2007 @@ -26,6 +26,12 @@ <make-value entity-name="PartyInvitation" value-name="newEntity"/> <sequenced-id-to-env sequence-name="PartyInvitation" env-name="newEntity.partyInvitationId"/> <field-to-result field-name="newEntity.partyInvitationId" result-name="partyInvitationId"/> + <if-not-empty field-name="parameters.partyId"> + <entity-one entity-name="Person" value-name="person" auto-field-map="false"> + <field-map field-name="partyId" env-name="parameters.partyId"/> + </entity-one> + <set field="parameters.toName" value="${person.firstName} ${person.middleName} ${person.lastName}"/> + </if-not-empty> <now-timestamp-to-env env-name="nowTimestamp"/> <set from-field="nowTimestamp" field="newEntity.lastInviteDate"/> <set-nonpk-fields map-name="parameters" value-name="newEntity"/> @@ -33,6 +39,12 @@ </simple-method> <simple-method method-name="updatePartyInvitation" short-description="Update a PartyInvitation"> <entity-one entity-name="PartyInvitation" value-name="lookedUpValue"/> + <if-not-empty field-name="parameters.partyId"> + <entity-one entity-name="Person" value-name="person" auto-field-map="false"> + <field-map field-name="partyId" env-name="parameters.partyId"/> + </entity-one> + <set field="parameters.toName" value="${person.firstName} ${person.middleName} ${person.lastName}"/> + </if-not-empty> <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/> <store-value value-name="lookedUpValue"/> </simple-method> Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=607341&r1=607340&r2=607341&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Fri Dec 28 13:54:39 2007 @@ -49,6 +49,60 @@ <request-map uri="EditPartyRelationships"><security https="true" auth="true"/><response name="success" type="view" value="EditPartyRelationships"/></request-map> <request-map uri="viewroles"><security https="true" auth="true"/><response name="success" type="view" value="viewroles"/></request-map> <request-map uri="linkparty"><security https="true" auth="true"/><response name="success" type="view" value="linkparty"/></request-map> + <request-map uri="partyInvitation"><security https="true" auth="true"/><response name="success" type="view" value="partyInvitation"/></request-map> + <request-map uri="editPartyInvitation"><security https="true" auth="true"/><response name="success" type="view" value="editPartyInvitation"/></request-map> + <request-map uri="PartyInvitationGroupAssocs"><security https="true" auth="true"/><response name="success" type="view" value="PartyInvitationGroupAssocs"/></request-map> + <request-map uri="PartyInvitationRoleAssocs"><security https="true" auth="true"/><response name="success" type="view" value="PartyInvitationRoleAssocs"/></request-map> + <!--Party Invitation Services--> + <request-map uri="createPartyInvitation"> + <security https="true" auth="true"/> + <event type="service" invoke="createPartyInvitation"/> + <response name="success" type="view" value="editPartyInvitation"/> + <response name="error" type="view" value="editPartyInvitation"/> + </request-map> + + <request-map uri="updatePartyInvitation"> + <security https="true" auth="true"/> + <event type="service" invoke="updatePartyInvitation"/> + <response name="success" type="view" value="editPartyInvitation"/> + <response name="error" type="view" value="editPartyInvitation"/> + </request-map> + + <request-map uri="deletePartyInvitation"> + <security https="true" auth="true"/> + <event type="service" invoke="deletePartyInvitation"/> + <response name="success" type="view" value="partyInvitation"/> + <response name="error" type="view" value="partyInvitation"/> + </request-map> + <!--Party Invitation Group/Role Assoc Services--> + <request-map uri="createPartyInvitationGroupAssoc"> + <security https="true" auth="true"/> + <event type="service" invoke="createPartyInvitationGroupAssoc"/> + <response name="success" type="view" value="PartyInvitationGroupAssocs"/> + <response name="error" type="view" value="PartyInvitationGroupAssocs"/> + </request-map> + + <request-map uri="createPartyInvitationRoleAssoc"> + <security https="true" auth="true"/> + <event type="service" invoke="createPartyInvitationRoleAssoc"/> + <response name="success" type="view" value="PartyInvitationRoleAssocs"/> + <response name="error" type="view" value="PartyInvitationRoleAssocs"/> + </request-map> + + <request-map uri="deletePartyInvitationGroupAssoc"> + <security https="true" auth="true"/> + <event type="service" invoke="deletePartyInvitationGroupAssoc"/> + <response name="success" type="view" value="PartyInvitationGroupAssocs"/> + <response name="error" type="view" value="PartyInvitationGroupAssocs"/> + </request-map> + + <request-map uri="deletePartyInvitationRoleAssoc"> + <security https="true" auth="true"/> + <event type="service" invoke="deletePartyInvitationRoleAssoc"/> + <response name="success" type="view" value="PartyInvitationRoleAssocs"/> + <response name="error" type="view" value="PartyInvitationRoleAssocs"/> + </request-map> + <!--Party Invitation Group/Role Assoc Services End--> <request-map uri="setPartyLink"> <security https="true" auth="true"/> <event type="service" invoke="linkPartyRecord"/> @@ -994,6 +1048,10 @@ <view-map name="AddressMatchMap" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#AddressMatchMap"/> <view-map name="FindAddressMatch" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#FindAddressMatch"/> <view-map name="EditPartyContents" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#EditPartyContents"/> - <view-map name="editCarrierAccount" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#editCarrierAccount"/> + <view-map name="editCarrierAccount" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#editCarrierAccount"/> + <view-map name="partyInvitation" type="screen" page="component://party/widget/partymgr/PartyInvitationScreens.xml#FindPartyInvitations"/> + <view-map name="editPartyInvitation" type="screen" page="component://party/widget/partymgr/PartyInvitationScreens.xml#EditPartyInvitation"/> + <view-map name="PartyInvitationGroupAssocs" type="screen" page="component://party/widget/partymgr/PartyInvitationScreens.xml#EditPartyInvitationsGroupAssocs"/> + <view-map name="PartyInvitationRoleAssocs" type="screen" page="component://party/widget/partymgr/PartyInvitationScreens.xml#EditPartyInvitationsRoleAssocs"/> <!-- end of view mappings --> </site-conf> Modified: ofbiz/trunk/applications/party/webapp/partymgr/includes/appheader.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/includes/appheader.ftl?rev=607341&r1=607340&r2=607341&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/includes/appheader.ftl (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/includes/appheader.ftl Fri Dec 28 13:54:39 2007 @@ -36,6 +36,7 @@ <li<#if selected == "security"> class="selected"</#if>><a href="<@ofbizUrl>FindSecurityGroup</@ofbizUrl>">${uiLabelMap.CommonSecurity}</a></li> </#if> <li<#if selected == "addrmap"> class="selected"</#if>><a href="<@ofbizUrl>addressMatchMap</@ofbizUrl>">${uiLabelMap.PageTitleAddressMatchMap}</a></li> + <li<#if selected == "partyinv"> class="selected"</#if>><a href="<@ofbizUrl>partyInvitation</@ofbizUrl>">${uiLabelMap.PartyInvitation}</a></li> <#if userLogin?has_content> <li class="opposed"><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></li> <#else> Added: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml?rev=607341&view=auto ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml (added) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml Fri Dec 28 13:54:39 2007 @@ -0,0 +1,149 @@ +<?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="FindPartyInvitations" type="single" default-map-name="partyInvitations" target="partyInvitation"> + <field name="partyInvitationId"><text-find default-option="contains" ignore-case="true"/></field> + <field position="1" name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><lookup target-form-name="LookupPartyName"/></field> + <field position="2" name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPartyName"/></field> + <field position="1" name="emailAddress"><text-find default-option="contains" ignore-case="true"/></field> + <field position="2" name="toName"><text-find default-option="contains" ignore-case="true"/></field> + <field name="statusId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="StatusItem" key-field-name="statusId"> + <entity-constraint name="statusTypeId" operator="equals" value="PARTY_INV_STATUS"/> + <entity-order-by field-name="statusId"/> + </entity-options> + </drop-down> + </field> + <field name="performSearch"><hidden value="Y"/></field> + <field name="noConditionFind"><hidden value="Y"/></field> + <field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field> + </form> + + <form name="ListPartyInvitations" type="list" list-name="listIt" default-entity-name="PartyInvitation"> + <actions> + <service service-name="performFind" result-map-name="result" result-map-list-name="listIt"> + <field-map field-name="inputFields" env-name="parameters"/> + <field-map field-name="entityName" value="PartyInvitation"/> + <field-map field-name="orderBy" value="partyInvitationId"/> + </service> + </actions> + <field name="partyInvitationId" title="${uiLabelMap.PartyInvitationPartyInvitationId}" widget-style="buttontext"> + <hyperlink also-hidden="false" description="${partyInvitationId}" target="editPartyInvitation?partyInvitationId=${partyInvitationId}"/> + </field> + <field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"><display/></field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"><display/></field> + <field name="toName" title="${uiLabelMap.PartyToName}"><display/></field> + <field name="emailAddress" title="${uiLabelMap.PartyEmailAddress}"><display/></field> + <field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field> + <field name="lastInviteDate" title="${uiLabelMap.PartyInvitationLastInviteDate}"><display/></field> + <field name="remove" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"> + <hyperlink target="deletePartyInvitation?partyInvitationId=${partyInvitationId}" description="delete"></hyperlink> + </field> + </form> + + <form name="EditPartyInvitation" type="single" target="updatePartyInvitation" default-map-name="partyInvitation"> + <alt-target use-when="partyInvitation==null" target="createPartyInvitation"/> + <auto-fields-service service-name="updatePartyInvitation"/> + <field name="partyInvitationId"><hidden/></field> + <field name="partyIdFrom" title="${uiLabelMap.PartyPartyFrom}"> + <lookup target-form-name="LookupPartyName"/> + </field> + <field name="partyId" title="${uiLabelMap.PartyPartyId}"> + <lookup target-form-name="LookupPartyName"/> + </field> + <field name="statusId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="StatusItem" key-field-name="statusId"> + <entity-constraint name="statusTypeId" operator="equals" value="PARTY_INV_STATUS"/> + <entity-order-by field-name="statusId"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" use-when="partyInvitation==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> + <field name="submitButton" use-when="partyInvitation!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field> + </form> + + <form name="ListPartyInvitationGroupAssocs" type="list" list-name="partyInvitationGroupAssoc"> + <actions> + <entity-condition entity-name="PartyInvitationGroupAssoc"> + <condition-expr field-name="partyInvitationId" env-name="parameters.partyInvitationId"/> + <order-by field-name="partyInvitationId"/> + </entity-condition> + </actions> + <field name="partyInvitationId" title="${uiLabelMap.PartyInvitationPartyInvitationId}" widget-style="buttontext"> + <hyperlink also-hidden="false" description="${partyInvitationId}" target="editPartyInvitation?partyInvitationId=${partyInvitationId}"/> + </field> + <field name="partyId" widget-style="buttontext" entry-name="partyIdTo"> + <display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}"> + <sub-hyperlink target="/partymgr/control/viewprofile?partyId=${partyIdTo}" target-type="inter-app" description="${partyIdTo}" link-style="buttontext"/> + </display-entity> + </field> + <field name="remove" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"> + <hyperlink target="deletePartyInvitationGroupAssoc?partyInvitationId=${partyInvitationId}&partyIdTo=${partyIdTo}" description="delete"></hyperlink> + </field> + </form> + + <form name="AddPartyInvitationGroupAssoc" type="single" target="createPartyInvitationGroupAssoc" default-map-name="partyInvitationGroupAssoc"> + <auto-fields-service service-name="createPartyInvitationGroupAssoc"/> + <field name="partyInvitationId"><hidden/> </field> + <field name="partyIdTo"> + <drop-down allow-empty="true"> + <entity-options description="${partyId}" entity-name="Party" key-field-name="partyId"> + <entity-constraint name="partyTypeId" operator="equals" value="PARTY_GROUP"/> + <entity-order-by field-name="partyId"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> + </form> + + <form name="ListPartyInvitationRoleAssocs" type="list" list-name="partyInvitationRoleAssoc"> + <actions> + <entity-condition entity-name="PartyInvitationRoleAssoc"> + <condition-expr field-name="partyInvitationId" env-name="parameters.partyInvitationId"/> + <order-by field-name="partyInvitationId"/> + </entity-condition> + </actions> + <field name="partyInvitationId" title="${uiLabelMap.PartyInvitationPartyInvitationId}" widget-style="buttontext"> + <hyperlink also-hidden="false" description="${partyInvitationId}" target="editPartyInvitation?partyInvitationId=${partyInvitationId}"/> + </field> + <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}"><display-entity entity-name="RoleType"/></field> + <field name="remove" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext"> + <hyperlink target="deletePartyInvitationRoleAssoc?partyInvitationId=${partyInvitationId}&roleTypeId=${roleTypeId}" description="delete"></hyperlink> + </field> + </form> + + <form name="AddPartyInvitationRoleAssoc" type="single" target="createPartyInvitationRoleAssoc" title="" default-map-name="partyInvitationGroupAssoc"> + <auto-fields-service service-name="createPartyInvitationRoleAssoc"/> + <field name="partyInvitationId"><hidden/> </field> + <field name="roleTypeId"> + <drop-down allow-empty="true"> + <entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId"> + <entity-order-by field-name="roleTypeId"/> + </entity-options> + </drop-down> + </field> + <field name="submitButton" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field> + </form> +</forms> + Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml?rev=607341&view=auto ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml (added) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml Fri Dec 28 13:54:39 2007 @@ -0,0 +1,178 @@ +<?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="CommonPartyInvitationDecorator"> + <section> + <actions> + <set field="headerItem" value="partyinv"/> + <set field="partyInvitationId" from-field="parameters.partyInvitationId"/> + <entity-one entity-name="PartyInvitation" value-name="partyInvitation"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <!-- do check for PARTYMGR, _VIEW permission --> + <condition> + <if-has-permission permission="PARTYMGR" action="_VIEW"/> + </condition> + <widgets> + <section> + <condition> + <not><if-empty field-name="partyInvitation"/></not> + </condition> + <widgets> + <include-menu name="PartyInvitationTabBar" location="component://party/widget/partymgr/PartyMenus.xml"/> + <container style="button-bar"><link target="editPartyInvitation" text="${uiLabelMap.PartyInvitationNewPartyInvitation}" style="buttontext"/></container> + <container style="button-bar"><label style="head1">${uiLabelMap.${titleProperty}}</label><label style="head2"> ${uiLabelMap.CommonFor} "${partyInvitation.partyIdFrom}" [${partyInvitationId}]</label></container> + </widgets> + </section> + <decorator-section-include name="body"/> + </widgets> + <fail-widgets> + <label style="head3">${uiLabelMap.PartyMgrViewPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="FindPartyInvitations"> + <section> + <actions> + <set field="titleProperty" value="PartyFindPartyInvitations"/> + <set field="headerItem" value="partyinv"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <condition> + <if-has-permission permission="PARTYMGR" action="_VIEW"/> + </condition> + <widgets> + <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container> + <container style="button-bar"><link target="/editPartyInvitation" text="${uiLabelMap.PartyInvitationNewPartyInvitation}" style="buttontext"/></container> + <include-form name="FindPartyInvitations" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </widgets> + <fail-widgets> + <label style="head3">${uiLabelMap.PartyMgrViewPermissionError}</label> + </fail-widgets> + </section> + <section> + <condition> + <if-compare field-name="parameters.performSearch" operator="equals" value="Y"/> + </condition> + <widgets> + <include-form name="ListPartyInvitations" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="PartyInvitations"> + <section> + <actions> + <set field="titleProperty" value="PageTitlePartyInvitation"/> + <set field="headerItem" value="partyinv"/> + </actions> + <widgets> + <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <section> + <condition> + <if-has-permission permission="PARTYMGR" action="_VIEW"/> + </condition> + <widgets> + <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container> + <container style="button-bar"><link target="/editPartyInvitation" text="${uiLabelMap.PartyInvitationNewPartyInvitation}" style="buttontext"/></container> + <include-form name="ListPartyInvitations" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </widgets> + <fail-widgets> + <label style="head3">${uiLabelMap.PartyMgrViewPermissionError}</label> + </fail-widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="EditPartyInvitation"> + <section> + <actions> + <set field="titleProperty" value="PageTitlePartyInvitation"/> + <set field="headerItem" value="partyinv"/> + <set field="tabButtonItem" value="EditPartyInvitation"/> + <set field="partyInvitationId" from-field="parameters.partyInvitationId"/> + <entity-one entity-name="PartyInvitation" value-name="partyInvitation"/> + </actions> + <widgets> + <decorator-screen name="CommonPartyInvitationDecorator"> + <decorator-section name="body"> + <include-form name="EditPartyInvitation" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="EditPartyInvitationsGroupAssocs"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditPartyInvitationGroupAssoc"/> + <set field="tabButtonItem" value="PartyInvitationGroupAssocs"/> + <set field="partyInvitationId" from-field="parameters.partyInvitationId"/> + </actions> + <widgets> + <decorator-screen name="CommonPartyInvitationDecorator"> + <decorator-section name="body"> + <include-form name="ListPartyInvitationGroupAssocs" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + <include-form name="AddPartyInvitationGroupAssoc" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="EditPartyInvitationsRoleAssocs"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditPartyInvitationRoleAssoc"/> + <set field="tabButtonItem" value="PartyInvitationRoleAssocs"/> + <set field="partyInvitationId" from-field="parameters.partyInvitationId"/> + </actions> + <widgets> + <decorator-screen name="CommonPartyInvitationDecorator"> + <decorator-section name="body"> + <include-form name="ListPartyInvitationRoleAssocs" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + <include-form name="AddPartyInvitationRoleAssoc" location="component://party/widget/partymgr/PartyInvitationForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> +</screens> Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/party/widget/partymgr/PartyInvitationScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml?rev=607341&r1=607340&r2=607341&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/PartyMenus.xml Fri Dec 28 13:54:39 2007 @@ -80,5 +80,18 @@ <link target="NewEmployee"/> </menu-item> </menu> + + <menu name="PartyInvitationTabBar" default-selected-style="selected" type="simple" + menu-container-style="button-bar button-style-1" selected-menuitem-context-field-name="tabButtonItem"> + <menu-item name="EditPartyInvitation" title="${uiLabelMap.PartyInvitation}"> + <link target="editPartyInvitation?partyInvitationId=${partyInvitationId}"/> + </menu-item> + <menu-item name="PartyInvitationGroupAssocs" title="${uiLabelMap.PartyInvitationGroupAssoc}"> + <link target="PartyInvitationGroupAssocs?partyInvitationId=${partyInvitationId}"/> + </menu-item> + <menu-item name="PartyInvitationRoleAssocs" title="${uiLabelMap.PartyInvitationRoleAssoc}"> + <link target="PartyInvitationRoleAssocs?partyInvitationId=${partyInvitationId}"/> + </menu-item> + </menu> </menus> |
Free forum by Nabble | Edit this page |