Files
ofbiz-framework/applications/marketing/widget/CommonScreens.xml
T
Jacopo Cappellato 6514683412 Conversion from MIT to ASL2.0 for all the files of the marketing component.
Many thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422379 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 05:50:40 +00:00

112 lines
5.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2001-2006 The Apache Software Foundation
Licensed 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>