The ecommerce component is excluded from this commit. These changes shouldn't break any layout. If you spot something wrong, let me know and I'll fix it. I won't make any more maincss.css changes for a little while. I'll let the dust settle from these two commits, then I'll go through the file and physically remove the deprecated styles. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627051 13f79535-47bb-0310-9956-ffa450edef68
156 lines
8.3 KiB
XML
156 lines
8.3 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="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
|
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
|
|
|
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
|
|
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ExampleCompanySubtitle" global="true"/>
|
|
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
|
|
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
|
|
<!--<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="example" global="true"/>
|
|
<set field="applicationMenuName" value="ExampleAppBar" global="true"/>
|
|
<set field="applicationMenuLocation" value="component://example/widget/example/ExampleMenus.xml" global="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CommonExampleDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Example"/>
|
|
|
|
<set field="exampleId" from-field="parameters.exampleId"/>
|
|
<entity-one entity-name="Example" value-name="example"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for EXAMPLE, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field-name="example"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="EditExample" location="component://example/widget/example/ExampleMenus.xml"/>
|
|
<container style="button-bar"><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
|
|
<container style="button-bar"><label style="h1">${uiLabelMap.${titleProperty}}</label><label style="h2"> ${uiLabelMap.CommonFor} "${example.exampleName}" [${exampleId}]</label></container>
|
|
</widgets>
|
|
</section>
|
|
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CommonExampleFeatureDecorator">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="ExampleFeature"/>
|
|
|
|
<set field="exampleFeatureId" from-field="parameters.exampleFeatureId"/>
|
|
<entity-one entity-name="ExampleFeature" value-name="exampleFeature"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<!-- do check for EXAMPLE, _VIEW permission -->
|
|
<condition>
|
|
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
|
</condition>
|
|
<widgets>
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field-name="exampleFeature"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-menu name="EditExampleFeature" location="component://example/widget/example/ExampleMenus.xml"/>
|
|
<container style="button-bar">
|
|
<link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext"/>
|
|
</container>
|
|
<container style="button-bar">
|
|
<label style="h1">${uiLabelMap.${titleProperty}}</label><label style="h2"> ${uiLabelMap.CommonFor} "${exampleFeature.description}" [${exampleFeatureId}]</label>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
|
|
<decorator-section-include name="body"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</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="${uiLabelMap.ExampleMainPage}"/>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<condition><if-empty field-name="userLogin"/></condition>
|
|
<widgets>
|
|
<container><label text="${uiLabelMap.ExampleMessage}"/></container>
|
|
</widgets>
|
|
</section>
|
|
<container><label text="${uiLabelMap.ExampleWelcome}"/></container>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|