blob: f1c8d7d4e2e438b18053ecd97ee66a1b4701a08c [file] [log] [blame]
<?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://www.ofbiz.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="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.PartyCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.PartyCompanySubtitle" global="true"/>
<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
<!-- TODO: Use transform to specify component URI -->
<set field="layoutSettings.javaScripts[]" value="/partymgr/static/partymgr.js" global="true"/>
<set field="layoutSettings.styleSheets[]" value="/partymgr/static/partymgr.css" global="true"/>
<set field="activeApp" value="partymgr" global="true"/>
<set field="appheaderTemplate" value="component://party/webapp/partymgr/includes/appheader.ftl" global="true"/>
</actions>
<widgets>
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="CommonPartyDecorator">
<section>
<actions>
<set field="partyId" from-field="parameters.partyId"/>
<entity-one entity-name="Party" value-name="party"/>
<entity-one entity-name="Person" value-name="lookupPerson"/>
<entity-one entity-name="PartyGroup" value-name="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-name="partyId"/></not></condition>
<widgets>
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="ProfileTabBar"/>
<container style="button-bar button-style-2">
<link target="/accounting/control/FindBillingAccount?partyId=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingBillingAccount}"/>
<section>
<condition><if-has-permission permission="ORDERMGR" action="_VIEW"/></condition>
<widgets>
<link target="/ordermgr/control/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;externalLoginKey=${externalLoginKey}&amp;viewIndex=1&amp;viewSize=20" url-mode="inter-app"
text="${uiLabelMap.OrderOrders}"/>
<link target="/ordermgr/control/FindQuote?partyId=${partyId}&amp;externalLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.OrderOrderQuotes}" style="buttontext"/>
<link target="/ordermgr/control/FindRequest?lookupFlag=Y&amp;fromPartyId=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.PartyPartyRequests}"/>
</widgets>
</section>
<section>
<condition><if-has-permission permission="ORDERMGR" action="_CREATE"/></condition>
<widgets>
<link target="/ordermgr/control/checkinits?partyId=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.OrderNewOrder}"/>
<link target="/ordermgr/control/EditQuote?partyId=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.OrderNewQuote}" style="buttontext"/>
</widgets>
</section>
<section>
<condition><if-has-permission permission="ACCOUNTING" action="_VIEW"/></condition>
<widgets>
<link target="/accounting/control/findPayments?lookupFlag=Y&amp;hideFields=Y&amp;partyIdTo=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.AccountingPaymentsSent}"/>
<link target="/accounting/control/findPayments?lookupFlag=Y&amp;hideFields=Y&amp;partyIdFrom=${partyId}&amp;externaLoginKey=${externalLoginKey}" url-mode="inter-app"
text="${uiLabelMap.AccountingPaymentsReceived}"/>
<link target="/accounting/control/FindFinAccount?ownerPartyId=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingFinAccounts}"/>
</widgets>
</section>
</container>
<container>
<section>
<condition>
<or>
<not><if-empty field-name="lookupPerson"/></not>
<not><if-empty field-name="lookupGroup"/></not>
</or>
</condition>
<widgets>
<label text="&amp;nbsp;&lt;br/&gt;"/>
<label style="head1" text="${uiLabelMap.PartyTheProfileOf} ${lookupPerson.personalTitle} ${lookupPerson.firstName} ${lookupPerson.middleName} ${lookupPerson.lastName} ${lookupPerson.suffix} ${lookupGroup.groupName}"/>
</widgets>
<fail-widgets>
<label style="head1" text="${uiLabelMap.PartyNewUser}"/>
</fail-widgets>
</section>
<label style="head1" text="[${partyId}]"/>
</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="SecurityGroupDecorator">
<section>
<actions>
<set field="headerItem" value="security"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="SECURITY" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition><not><if-empty field-name="groupId"/></not></condition>
<widgets>
<platform-specific>
<html><html-template location="component://party/webapp/partymgr/security/SecurityGroupTabBar.ftl"/></html>
</platform-specific>
</widgets>
</section>
<container>
<label style="head1" text="${uiLabelMap.${labelTitleProperty}} [${groupId}]"/>
</container>
<container style="button-bar">
<link target="EditSecurityGroup" style="smallSubmit" text="${uiLabelMap.PartyNewSecurityGroup}"/>
</container>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.PartySecurityViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonCommunicationEventDecorator">
<section>
<actions>
<set field="headerItem" value="comm"/>
<set field="communicationEventId" from-field="parameters.communicationEventId"/>
<entity-one entity-name="CommunicationEvent" value-name="communicationEvent"/>
<set field="okayToUpdate" value="true" type="Boolean" global="true"/>
</actions>
<widgets>
<section>
<condition>
<and>
<not><if-empty field-name="communicationEvent.statusId"/></not>
<or>
<if-compare field-name="communicationEvent.statusId" operator="equals" type="String" value="COM_COMPLETE"/>
<if-compare field-name="communicationEvent.statusId" operator="equals" type="String" value="COM_RESOLVED"/>
<if-compare field-name="communicationEvent.statusId" operator="equals" type="String" value="COM_REFERRED"/>
</or>
</and>
</condition>
<actions>
<set field="okayToUpdate" value="false" type="Boolean" global="true"/>
</actions>
<widgets/>
</section>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-has-permission action="_VIEW" permission="PARTYMGR"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="partyId"/></not>
</condition>
<widgets>
<include-menu location="component://party/widget/partymgr/PartyMenus.xml" name="ProfileTabBar"/>
<container style="button-bar button-style-2">
<link target="/accounting/control/FindBillingAccount?partyId=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingBillingAccount}"/>
<section>
<condition><if-has-permission permission="ORDERMGR" action="_VIEW"/></condition>
<widgets>
<link target="/ordermgr/control/searchorders?lookupFlag=Y&amp;hideFields=Y&amp;partyId=${partyId}&amp;viewIndex=1&amp;viewSize=20" url-mode="inter-app"
text="${uiLabelMap.OrderOrders}"/>
</widgets>
</section>
<section>
<condition><if-has-permission permission="ORDERMGR" action="_CREATE"/></condition>
<widgets>
<link target="/ordermgr/control/checkinits?partyId=${partyId}" url-mode="inter-app"
text="${uiLabelMap.OrderNewOrder}"/>
</widgets>
</section>
<section>
<condition><if-has-permission permission="ACCOUNTING" action="_VIEW"/></condition>
<widgets>
<link target="/accounting/control/findPayments?lookupFlag=Y&amp;hideFields=Y&amp;partyIdTo=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingPaymentsSent}"/>
<link target="/accounting/control/findPayments?lookupFlag=Y&amp;hideFields=Y&amp;partyIdFrom=${partyId}" url-mode="inter-app"
text="${uiLabelMap.AccountingPaymentsReceived}"/>
</widgets>
</section>
</container>
</widgets>
</section>
<section>
<condition>
<not><if-empty field-name="communicationEvent"/></not>
</condition>
<widgets>
<include-menu location="component://party/webapp/partymgr/communication/CommMenus.xml" name="CommEventTabBar"/>
</widgets>
</section>
<section>
<widgets>
<decorator-section-include name="body"/>
</widgets>
</section>
</widgets>
<fail-widgets>
<label style="head3">${uiLabelMap.PartyMgrViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/login.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>