git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514099 13f79535-47bb-0310-9956-ffa450edef68
114 lines
5.6 KiB
XML
114 lines
5.6 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://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="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
|
|
<set field="layoutSettings.companyName" from-field="uiLabelMap.MarketingCompanyName" global="true"/>
|
|
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.MarketingCompanySubtitle" 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"/> -->
|
|
<set field="activeApp" value="marketing" global="true"/>
|
|
<!-- <set field="applicationTitle" from-field="uiLabelMap.MarketingManagerApplication" global="true"/> -->
|
|
<set field="applicationMenuName" value="MarketingAppBar" global="true"/>
|
|
<set field="applicationMenuLocation" value="component://marketing/widget/MarketingMenus.xml" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonContactListDecorator">
|
|
<section>
|
|
<actions>
|
|
<property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<set field="headerItem" value="ContactList"/>
|
|
<set field="contactListId" from-field="parameters.contactListId"/>
|
|
<entity-one entity-name="ContactList" value-name="contactList"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for MARKETING, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="MARKETING" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition><not><if-empty field-name="contactListId"/></not></condition>
|
|
<widgets>
|
|
<include-menu name="ContactListTabBar" location="component://marketing/webapp/marketing/contact/ContactListMenus.xml"/>
|
|
</widgets>
|
|
</section>
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="head3">${uiLabelMap.MarketingViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="main">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-header">
|
|
<label style="boxhead" text="Marketing Manager Main Page"/>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<container><label style="tabletext" text="Welcome to the Marketing Manager!"/></container>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="login">
|
|
<section>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator">
|
|
<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>
|