IE7 and general layout fixups for the Example and ExampleExt components.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2008-05-01 23:44:31 +00:00
parent 1ef057402c
commit 2992de7456
4 changed files with 46 additions and 12 deletions
@@ -54,6 +54,19 @@ under the License.
</actions>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="pre-body">
<section>
<condition>
<and>
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
<not><if-empty field-name="example"/></not>
</and>
</condition>
<widgets>
<include-menu name="EditExample" location="component://example/widget/example/ExampleMenus.xml"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<!-- do check for EXAMPLE, _VIEW permission -->
@@ -66,9 +79,8 @@ under the License.
<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>
<container style="h1"><label>${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor} "${example.exampleName}" [${exampleId}]</label></container>
</widgets>
</section>
@@ -93,6 +105,19 @@ under the License.
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${mainDecoratorLocation}">
<decorator-section name="pre-body">
<section>
<condition>
<and>
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
<not><if-empty field-name="exampleFeature"/></not>
</and>
</condition>
<widgets>
<include-menu name="EditExampleFeature" location="component://example/widget/example/ExampleMenus.xml"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<section>
<!-- do check for EXAMPLE, _VIEW permission -->
@@ -105,12 +130,11 @@ under the License.
<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 style="h1">
<label>${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor} "${exampleFeature.description}" [${exampleFeatureId}]</label>
</container>
<container style="button-bar">
<label style="h1">${uiLabelMap.${titleProperty}}</label><label style="h2"> ${uiLabelMap.CommonFor} "${exampleFeature.description}" [${exampleFeatureId}]</label>
<link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext"/>
</container>
</widgets>
</section>
@@ -34,7 +34,7 @@ under the License.
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
</condition>
<widgets>
<container><label style="h1">${uiLabelMap.${titleProperty}}</label></container>
<container style="h1"><label>${uiLabelMap.${titleProperty}}</label></container>
<container style="button-bar">
<link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext"/>
</container>