Files
ofbiz-framework/applications/content/widget/CommonScreens.xml
T

270 lines
14 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="mainContentDecorator">
<section>
<actions>
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="layoutSettings.companyName" from-field="uiLabelMap.ContentCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ContentCompanySubtitle" global="true"/>
<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>
<set field="layoutSettings.extraHead" value="&lt;link rel=&quot;stylesheet&quot; href=&quot;/content/images/contentForum.css&quot; type=&quot;text/css&quot;/&gt;"/>
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
<set field="activeApp" value="contentmgr" global="true"/>
<set field="applicationTitle" from-field="uiLabelMap.ContentContentManagerApplication" global="true"/>
<set field="applicationMenuName" value="ContentAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://content/widget/content/ContentMenus.xml" global="true"/>
</actions>
<widgets>
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
</screen>
<screen name="commonCmsDecorator">
<section>
<actions>
<set field="currentCMSMenuItemName" from-field="currentCMSMenuItemName" from-scope="user"/>
<set field="headerItem" value="CMS"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator">
<decorator-section name="body">
<include-menu name="cms" location="component://content/webapp/content/cms/CMSMenus.xml" />
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonContentDecorator">
<section>
<actions>
<set field="headerItem" value="Content"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator">
<decorator-section name="body">
<include-menu name="content" location="component://content/widget/content/ContentMenus.xml"/>
<container>
<include-menu name="contentSub" location="component://content/widget/content/ContentMenus.xml"/>
</container>
<section>
<condition>
<not><if-empty field-name="currentValue.contentId"/></not>
</condition>
<widgets>
<label style="head1" text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor}: ${currentValue.contentName},${currentValue.description} [${currentValue.contentId}] ${uiLabelMap.${extraFunctionName}}"/>
</widgets>
<fail-widgets>
<label style="head1" text="${uiLabelMap.PageTitleAddContent}"/>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonForumDecorator">
<section>
<actions>
<set field="headerItem" value="Forum"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field-name="tabBar"/></not>
</condition>
<widgets>
<include-menu name="${tabBar}" location="component://content/widget/forum/ForumMenus.xml"/>
</widgets>
</section>
<label style="head1" text="${uiLabelMap.${titleProperty}}"></label>
<section>
<condition>
<not><if-empty field-name="objectId"/></not>
</condition>
<widgets>
<label style="head1" text="&quot;${objectName}&quot; [${objectId}]"></label>
</widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="head3">You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonDataResourceDecorator">
<section>
<actions>
<set field="headerItem" value="DataResource"/>
<set field="currentContentMenuItemName" from-field="currentContentMenuItemName" from-scope="user"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator">
<decorator-section name="body">
<section>
<condition>
<not><if-empty field-name="currentValue.dataResourceId"/></not>
</condition>
<widgets>
<label style="head1" text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor}: ${currentValue.dataResourceName} [${currentValue.dataResourceId}] ${uiLabelMap.${extraFunctionName}}"/>
</widgets>
<fail-widgets>
<label style="head1" text="${uiLabelMap.${titleProperty}}"/>
</fail-widgets>
</section>
<include-menu name="dataresource" location="component://content/widget/content/DataResourceMenus.xml"/>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonCompDocDecorator">
<section>
<actions>
<set field="headerItem" value="CompDoc"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator" >
<decorator-section name="body">
<include-menu name="${menuName}" location="component://content/widget/compdoc/CompDocMenus.xml"/>
<label text="${title}" style="head1"/>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonContentSetupDecorator">
<section>
<actions>
<set field="currentMenuItemName" from-field="currentMenuItemName" from-scope="user"/>
</actions>
<widgets>
<decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml">
<decorator-section name="body">
<include-menu name="contentsetup" location="component://content/webapp/content/contentsetup/ContentSetupMenus.xml"/>
<decorator-section-include name="body"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="main">
<section>
<widgets>
<decorator-screen name="mainContentDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-header">
<label style="boxhead" text="Content Manager Main Page"/>
</container>
<container style="screenlet-body">
<container><label style="tabletext" text="Welcome to the Content Manager!"/></container>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="login">
<section>
<widgets>
<decorator-screen name="mainContentDecorator" 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>
<screen name="responseTreeLine">
<section>
<actions>
<service service-name="getContentAndDataResource" result-map-name="contentData">
<field-map field-name="contentId" env-name="rsp.contentId"/>
</service>
<set field="textData" from-field="contentData.resultData.electronicText.textData"/>
</actions>
<widgets>
<section>
<condition>
<if-compare-field field-name="responseContentId" operator="equals" to-field-name="rsp.contentId" />
</condition>
<widgets>
<container style="responseSelected">
<label text="${rsp.contentName} - ${rsp.description} [${rsp.contentId}]" style="responseheader" />
<link text="Reply" target="addForumThreadMessage?forumGroupId=${parameters.forumGroupId}&amp;forumId=${parameters.forumId}&amp;forumMessageIdTo=${rsp.contentId}&amp;contentAssocTypeId=RESPONSE" style="buttontext"/>
<container style="responsetext">
<include-form name="EditForumThreadMessage" location="component://content/widget/forum/ForumForms.xml"/>
</container>
</container>
</widgets>
<fail-widgets>
<container>
<label text="${rsp.contentName} - ${rsp.description} [${rsp.contentId}]" style="responseheader" />
<link text="Reply" target="addForumThreadMessage?forumGroupId=${parameters.forumGroupId}&amp;forumId=${parameters.forumId}&amp;forumMessageIdTo=${rsp.contentId}&amp;contentAssocTypeId=RESPONSE" style="buttontext"/>
<container style="responsetext">
<include-form name="EditForumThreadMessage" location="component://content/widget/forum/ForumForms.xml"/>
</container>
</container>
</fail-widgets>
</section>
</widgets>
</section>
</screen>
<screen name="fonts.fo">
<section>
<widgets>
<platform-specific>
<html><html-template location="component://content/webapp/content/fonts.fo.ftl"/></html>
</platform-specific>
</widgets>
</section>
</screen>
</screens>