blob: 073c03cc7f8fcff78ef4aa1aff7f3282f8b52a5f [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"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="CommonMarketingCampaignDecorator">
<section>
<actions>
<property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
<set field="marketingCampaignId" from-field="parameters.marketingCampaignId"/>
<set field="headerItem" value="Campaign"/>
<entity-one entity-name="MarketingCampaign" value-field="marketingCampaign"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
<section>
<!-- do check for MARKETING, _VIEW permission -->
<condition>
<and>
<if-has-permission permission="MARKETING" action="_VIEW"/>
<not><if-empty field="marketingCampaignId"/></not>
</and>
</condition>
<widgets>
<include-menu name="MarketingCampaignTabBar" location="${parameters.mainMenuLocation}"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<!-- do check for MARKETING, _VIEW permission -->
<condition>
<if-has-permission permission="MARKETING" action="_VIEW"/>
</condition>
<widgets>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.MarketingViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditMarketingCampaign">
<section>
<actions>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" />
<set field="titleProperty" value="PageTitleEditMarketingCampaign" />
<set field="campaignTabButtonItem" value="MarketingCampaign" />
<set field="labelTitleProperty" value="PageTitleEditMarketingCampaign" />
<set field="donePage" from-field="parameters.DONE_PAGE" default-value="FindMarketingCampaign" />
<set field="marketingCampaignId" from-field="parameters.marketingCampaignId" />
<entity-one entity-name="MarketingCampaign" value-field="marketingCampaign" />
</actions>
<widgets>
<decorator-screen name="CommonMarketingCampaignDecorator">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}" />
</container>
<section>
<condition>
<not><if-empty field="marketingCampaign" /></not>
</condition>
</section>
<screenlet>
<include-form name="EditMarketingCampaign" location="component://marketing/widget/MarketingCampaignForms.xml" />
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListMarketingCampaign">
<section>
<actions>
<set field="titleProperty" value="PageTitleListMarketingCampaign" />
<set field="labelTitleProperty" value="PageTitleListMarketingCampaign" />
<set field="donePage" from-field="parameters.DONE_PAGE" default-value="FindMarketingCampaign" />
<set field="marketingCampaignId" from-field="parameters.marketingCampaignId" />
<set field="entityName" value="MarketingCampaign" />
</actions>
<widgets>
<decorator-screen name="CommonMarketingCampaignDecorator">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}" />
</container>
<screenlet>
<include-form name="ListMarketingCampaign" location="component://marketing/widget/MarketingCampaignForms.xml" />
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditMarketingCampaignRoles">
<section>
<actions>
<set field="titleProperty" value="MarketingCampaignRoleCreate" />
<set field="campaignTabButtonItem" value="MarketingCampaignRole" />
<set field="labelTitleProperty" value="PageTitleEditMarketingCampaignRole" />
<set field="donePage" value="ListMarketingCampaignRoles" />
<set field="marketingCampaignId" from-field="parameters.marketingCampaignId" />
<set field="partyId" from-field="parameters.partyId" />
<set field="roleTypeId" from-field="parameters.roleTypeId" />
<set field="fromDate" from-field="parameters.fromDate" />
<entity-one entity-name="MarketingCampaignRole" value-field="marketingCampaignRole" />
</actions>
<widgets>
<decorator-screen name="CommonMarketingCampaignDecorator">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}" />
</container>
<screenlet>
<include-form name="EditMarketingCampaignRoles" location="component://marketing/widget/MarketingCampaignForms.xml" />
</screenlet>
<!--
<container>
<label style="h2" text="${uiLabelMap.CommonStatusHistory}" />
</container>
-->
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListMarketingCampaignRoles">
<section>
<actions>
<set field="titleProperty" value="PageTitleListMarketingCampaignRole" />
<set field="campaignTabButtonItem" value="MarketingCampaignRole" />
<set field="labelTitleProperty" value="PageTitleListMarketingCampaignRole" />
<set field="donePage" from-field="parameters.DONE_PAGE" default-value="FindMarketingCampaign" />
<set field="marketingCampaignId" from-field="parameters.marketingCampaignId" />
</actions>
<widgets>
<decorator-screen name="CommonMarketingCampaignDecorator">
<decorator-section name="body">
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}" />
</container>
<container style="button-bar">
<link text="${uiLabelMap.MarketingCampaignRoleCreate}" target="EditMarketingCampaignRoles" style="buttontext create">
<parameter param-name="marketingCampaignId" />
<parameter param-name="DONE_PAGE" from-field="donePage" />
</link>
</container>
<screenlet>
<include-form name="ListMarketingCampaignRoles" location="component://marketing/widget/MarketingCampaignForms.xml" />
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>