UI work in the Example and ExampleExt components. Fixed minor layout issues, tested with Firefox and IE7, formatted the screen widget XML files so they have consistent line spacing, and added some comments to help new users.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -20,7 +20,7 @@ under the License.
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<!-- Decorator Screens Copied from CatalogCommonScreens.xml, since the mainDecoratorLocation now points here -->
|
||||
|
||||
<screen name="main-decorator">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -36,7 +36,6 @@ under the License.
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Example"/>
|
||||
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-name="example"/>
|
||||
</actions>
|
||||
@@ -71,7 +70,6 @@ under the License.
|
||||
<container style="button-bar"><link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext"/></container>
|
||||
</widgets>
|
||||
</section>
|
||||
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
@@ -83,6 +81,7 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleFeatureDecorator">
|
||||
<section>
|
||||
<widgets>
|
||||
@@ -90,4 +89,5 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
|
||||
@@ -19,17 +19,18 @@ under the License.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
<form name="EditExampleExt" type="single"
|
||||
target="updateExample" title="" default-map-name="example" default-entity-name="Example"
|
||||
extends-resource="component://example/widget/example/ExampleForms.xml" extends="EditExample">
|
||||
|
||||
<form name="EditExampleExt" extends="EditExample"
|
||||
extends-resource="component://example/widget/example/ExampleForms.xml">
|
||||
<!-- NOTE: add new fields for the EditExample form here -->
|
||||
<field name="exampleText"><display description="This example text means we are in the extended form."/></field>
|
||||
|
||||
<!-- in order for these to be at the bottom need to hide and then override these, or use the sort-order element which doesn't work well when we want to allow changes in the extended form; so here it is -->
|
||||
<!-- In order for these to be at the bottom of the form, we need to hide the buttons from the
|
||||
original form, and then create new ones. We could use the sort-order element, but that
|
||||
doesn't work well when we want to allow changes in the original form. -->
|
||||
<field name="submitButton" use-when="example!=null"><hidden/></field>
|
||||
<field name="submitButton" use-when="example==null"><hidden/></field>
|
||||
<field name="submitButtonOvrd" title="${uiLabelMap.CommonCreate}" use-when="example==null" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
<field name="submitButtonOvrd" title="${uiLabelMap.CommonUpdate}" use-when="example!=null" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
|
||||
@@ -18,10 +18,12 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
<menu name="EditExample" extends="EditExample" extends-resource="component://example/widget/example/ExampleMenus.xml">
|
||||
<menu-item name="EditExampleOriginal" title="${uiLabelMap.ExampleOriginalExample}">
|
||||
<link target="/example/control/EditExample?exampleId=${exampleId}" url-mode="inter-app"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
</menus>
|
||||
|
||||
@@ -27,7 +27,6 @@ under the License.
|
||||
<set field="titleProperty" value="PageTitleEditExample"/>
|
||||
<set field="tabButtonItem" value="EditExample"/>
|
||||
<set field="labelTitleProperty" value="ExampleExample"/>
|
||||
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-name="example"/>
|
||||
</actions>
|
||||
@@ -40,4 +39,5 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
|
||||
Reference in New Issue
Block a user