Files
ofbiz-framework/applications/content/widget/CommonScreens.xml
T
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00

386 lines
20 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://ofbiz.apache.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="ContentUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="ProductUiLabels" 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.styleSheets[]" value="/content/images/contentForum.css" global="true"/>
<set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/>
<set field="activeApp" value="contentmgr" global="true"/>
<set field="applicationMenuName" value="ContentAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://content/widget/content/ContentMenus.xml" global="true"/>
<set field="applicationTitle" value="${uiLabelMap.ContentContentManagerApplication}"/>
</actions>
<widgets>
<include-screen name="ApplicationDecorator" location="component://commonext/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="main-decorator">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<include-menu name="cms" location="component://content/webapp/content/cms/CMSMenus.xml"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonContentDecorator">
<section>
<actions>
<set field="headerItem" value="Content"/>
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<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="currentValue.contentId"/></not>
</condition>
<widgets>
<label style="h1" text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor}: ${currentValue.contentName},${currentValue.description} [${currentValue.contentId}] ${uiLabelMap.${extraFunctionName}}"/>
</widgets>
<fail-widgets>
<label style="h1" text="${uiLabelMap.PageTitleAddContent}"/>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="contentDecorator">
<section>
<actions>
<set field="headerItem" value="Content"/>
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<include-menu name="contentTopMenu" location="component://content/widget/content/ContentMenus.xml"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</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="main-decorator">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field="currentValue.dataResourceId"/></not>
</condition>
<widgets>
<include-menu name="dataresourceTopMenu" location="component://content/widget/content/DataResourceMenus.xml"/>
<include-menu name="dataresource" location="component://content/widget/content/DataResourceMenus.xml"/>
<label style="h1" text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor}: ${currentValue.dataResourceName} [${currentValue.dataResourceId}] ${uiLabelMap.${extraFunctionName}}"/>
</widgets>
<fail-widgets>
<include-menu name="dataresourceTopMenu" location="component://content/widget/content/DataResourceMenus.xml"/>
</fail-widgets>
</section>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonCompDocDecorator">
<section>
<actions>
<set field="headerItem" value="CompDoc"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" >
<decorator-section name="body">
<include-menu name="${menuName}" location="component://content/widget/compdoc/CompDocMenus.xml"/>
<label text="${title}" style="h1"/>
<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="main-decorator" location="component://content/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<include-menu name="contentsetup" location="component://content/webapp/content/contentsetup/ContentSetupMenus.xml"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonDataResourceSetupDecorator">
<section>
<actions>
<set field="tabButtonItem" from-field="tabButtonItem" from-scope="user"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<include-menu name="dataresourcesetup" location="component://content/webapp/content/datasetup/DataResourceSetupMenus.xml"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="CommonWebSiteDecorator">
<section>
<actions>
<set field="headerItem" value="websites"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="_VIEW"/>
</condition>
<widgets>
<section>
<condition>
<not><if-empty field="parameters.webSiteId"/></not>
</condition>
<widgets>
<include-menu name="website" location="component://content/widget/content/ContentMenus.xml"/>
</widgets>
</section>
<container style="widget-container">
<link text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.ContentWebSite}" target="EditWebSite" style="buttontext"/>
</container>
<label style="h1" text="${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor}: ${webSite.siteName} [${webSite.webSiteId}] ${uiLabelMap.${extraFunctionName}}"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentViewPermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="commonLayoutDecorator">
<section>
<actions>
<set field="tabButtonItem" from-field="tabButtonItem" from-scope="user"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="component://content/widget/CommonScreens.xml">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="CONTENTMGR" action="UPDATE"/>
</condition>
<widgets>
<include-menu name="layout" location="component://content/webapp/content/layout/LayoutMenus.xml"/>
<decorator-section-include name="body"/>
</widgets>
<fail-widgets>
<label style="h3">${uiLabelMap.ContentUpdatePermissionError}</label>
</fail-widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="main">
<section>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-header">
<label style="boxhead" text="${uiLabelMap.ContentMain}"/>
</container>
<container style="screenlet-body">
<container><label style="tabletext" text="${uiLabelMap.ContentWelcome}"/></container>
</container>
</container>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="responseTreeLine">
<section>
<actions>
<service service-name="getContentAndDataResource" result-map="contentData">
<field-map field-name="contentId" from-field="rsp.contentId"/>
</service>
<set field="textData" from-field="contentData.resultData.electronicText.textData"/>
</actions>
<widgets>
<section>
<condition>
<if-compare-field field="responseContentId" operator="equals" to-field="rsp.contentId"/>
</condition>
<widgets>
<container style="responseSelected">
<label text="${rsp.contentName} - ${rsp.description} [${rsp.contentId}]" style="responseheader"/>
<link text="${uiLabelMap.PartyReply}" target="addForumThreadMessage" style="buttontext">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="forumId" from-field="parameters.forumId"/>
<parameter param-name="forumMessageIdTo" from-field="rsp.contentId"/>
<parameter param-name="contentAssocTypeId" value="RESPONSE"/>
</link>
<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="${uiLabelMap.PartyReply}" target="addForumThreadMessage" style="buttontext">
<parameter param-name="forumGroupId" from-field="parameters.forumGroupId"/>
<parameter param-name="forumId" from-field="parameters.forumId"/>
<parameter param-name="forumMessageIdTo" from-field="rsp.contentId"/>
<parameter param-name="contentAssocTypeId" value="RESPONSE"/>
</link>
<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>
<xsl-fo><html-template location="component://content/webapp/content/fonts.fo.ftl"/></xsl-fo>
</platform-specific>
</widgets>
</section>
</screen>
</screens>