git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766636 13f79535-47bb-0310-9956-ffa450edef68
390 lines
23 KiB
XML
390 lines
23 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
|
<screen name="main-decorator">
|
|
<section>
|
|
<actions>
|
|
<!-- base/top/specific map first, then more common map added for shared labels -->
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/partymgr/static/partymgr.js" global="true"/>
|
|
<set field="layoutSettings.styleSheets[]" value="/partymgr/static/partymgr.css" global="true"/>
|
|
<set field="layoutSettings.companyName" from-field="uiLabelMap.SfaCompanyName" global="true"/>
|
|
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.MarketingCompanySubtitle" global="true"/>
|
|
<set field="applicationMenuName" value="SfaAppBar" global="true"/>
|
|
<set field="applicationMenuLocation" value="component://marketing/widget/sfa/SfaMenus.xml" global="true"/>
|
|
<set field="applicationTitle" value="${uiLabelMap.SfaManagerApplication}" global="true"/>
|
|
<set field="leftbarScreenName" value="leftbar"/>
|
|
<set field="leftbarScreenLocation" value="component://marketing/widget/sfa/CommonScreens.xml"/>
|
|
<set field="MainColumnStyle" value="leftonly"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="main">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Main"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-header">
|
|
<label style="boxhead" text="${uiLabelMap.SfaManagerApplication}"/>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<container><label style="label" text="${uiLabelMap.SfaManagerWelcome}"/></container>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="leftbar">
|
|
<section>
|
|
<condition><not><if-empty field="userLogin"/></not></condition>
|
|
<widgets>
|
|
<container style="left">
|
|
<screenlet id ="SfaQuickAddContactPanel" title="${uiLabelMap.SfaQuickAddContact}" collapsible="true">
|
|
<include-form name="QuickAddContact" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
|
</screenlet>
|
|
<screenlet id= "SfaQuickAddLeadPanel" title="${uiLabelMap.SfaQuickAddLead}" collapsible="true">
|
|
<include-form name="QuickAddLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</screenlet>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonOpportunityDecorator">
|
|
<section>
|
|
<actions>
|
|
<!-- Do action here -->
|
|
<set field="salesOpportunityId" from-field="parameters.salesOpportunityId"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<section>
|
|
<widgets>
|
|
<include-menu name="OpportunityTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ProjectMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonPartyDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="partyId" from-field="parameters.partyId"/>
|
|
<set field="partyTypeId" from-field="parameters.partyTypeId"/>
|
|
<entity-one entity-name="Party" value-field="party"/>
|
|
<entity-one entity-name="Person" value-field="lookupPerson"/>
|
|
<entity-one entity-name="PartyGroup" value-field="lookupGroup"/>
|
|
</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="party"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Accounts"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="AccountTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Leads"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="LeadTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Contacts"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="ContactTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Contacts"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="ContactSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Accounts"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="AccountSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="headerItem" operator="equals" value="Leads"/>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="LeadSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<not><if-empty field="party"/></not>
|
|
<or>
|
|
<not><if-empty field="lookupPerson"/></not>
|
|
<not><if-empty field="lookupGroup"/></not>
|
|
</or>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<label style="h1" text="${uiLabelMap.PartyTheProfileOf} ${lookupPerson.personalTitle} ${lookupPerson.firstName} ${lookupPerson.middleName} ${lookupPerson.lastName} ${lookupPerson.suffix} ${lookupGroup.groupName} [${partyId}]"/>
|
|
</widgets>
|
|
</section>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="ViewProfile">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleViewPartyProfile"/>
|
|
<set field="tabButtonItem" value="profile"/>
|
|
<set field="labelTitleProperty" value="PartyTaxAuthInfos"/>
|
|
|
|
<set field="layoutSettings.javaScripts[]" value="/images/prototypejs/prototype.js" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/images/prototypejs/control.progress_bar.js" global="true"/>
|
|
<set field="layoutSettings.styleSheets[]" value="/images/prototypejs/progress_bar.css" global="true"/>
|
|
<set field="layoutSettings.javaScripts[]" value="/partymgr/js/PartyProfileContent.js" global="true"/>
|
|
|
|
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/ViewProfile.groovy"/>
|
|
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/SetRoleVars.groovy"/>
|
|
<set field="parameters.partyId" from-field="partyId"/>
|
|
<set field="parameters.partyGroupId" from-field="partyGroupId"/>
|
|
</actions>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<or>
|
|
<not><if-empty field="leadDescription"/></not>
|
|
<not><if-empty field="accountLeadDescription"/></not>
|
|
</or>
|
|
</condition>
|
|
<actions>
|
|
<set field="headerItem" value="Leads"/>
|
|
</actions>
|
|
<widgets/>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="contactDescription"/></not>
|
|
</condition>
|
|
<actions>
|
|
<set field="headerItem" value="Contacts"/>
|
|
</actions>
|
|
<widgets/>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="accountDescription"/></not>
|
|
</condition>
|
|
<actions>
|
|
<set field="headerItem" value="Accounts"/>
|
|
</actions>
|
|
<widgets/>
|
|
</section>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="party"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<if-compare field="showOld" operator="equals" value="true" type="Boolean"/>
|
|
</condition>
|
|
<widgets>
|
|
<container style="button-bar button-style-2">
|
|
<link target="viewprofile" text="${uiLabelMap.PartyHideOld}">
|
|
<parameter param-name="partyId" from-field="party.partyId"/>
|
|
</link>
|
|
</container>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="button-bar button-style-2">
|
|
<link target="viewprofile" text="${uiLabelMap.PartyShowOld}">
|
|
<parameter param-name="partyId" from-field="party.partyId"/>
|
|
<parameter param-name="SHOW_OLD" value="true"/>
|
|
</link>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="accountDescription"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="profile-left">
|
|
<include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="PaymentMethods" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</container>
|
|
<container style="profile-right">
|
|
<include-screen name="FinAccounts" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Attributes" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<and>
|
|
<or>
|
|
<not><if-empty field="leadDescription"/></not>
|
|
<not><if-empty field="accountLeadDescription"/></not>
|
|
</or>
|
|
<if-compare field="headerItem" operator="equals" value="Leads"/>
|
|
</and>
|
|
</condition>
|
|
<widgets>
|
|
<container style="profile-left">
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.partyId" from-field="partyId"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="partyGroupId"/></not>
|
|
</condition>
|
|
<actions>
|
|
<set field="parameters.partyId" from-field="partyGroupId"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.partyId" from-field="partyId"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="profile-right">
|
|
<section>
|
|
<actions>
|
|
<set field="parameters.partyId" from-field="partyId"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="contactDescription"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<container style="profile-left">
|
|
<include-screen name="Party" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Contact" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</container>
|
|
<container style="profile-right">
|
|
<include-screen name="UserLogin" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Attributes" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Visits" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Subscriptions" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Content" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
<include-screen name="Notes" location="component://party/widget/partymgr/ProfileScreens.xml"/>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container>
|
|
<label style="h3">${uiLabelMap.PartyNoPartyFoundWithPartyId}: ${parameters.partyId}</label>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|