Improve widget-form with four elements : include-form, include-grid, include-menu, include-screen to offert more flexibility to define complex display. The main purpose is to complete the screen widget capacity to replace ftl screen.
With these elements, example component have a new FindExample search screen to select the display list type with a example of : * include-form : list examples with their features * include-screen : list examples with their items * include-grid : list examples with their status history The element include-menu is present on FindUtilCache screen. Also a new CommonInlineBarMenu menu type to display menu with specific purpose (in-line) is now present and with this logic adding in-line-bar css class on themes thomawak and flatgrey. This patch is combinate Issues : * OFBIZ-6502 Add support for form/grid embedding within grids * OFBIZ-6501 Add support for screen embedding inside grids * OFBIZ-6404 Allow form/grid widget hyperlinks to be grouped into a single column sub-tasks of master issue OFBIZ-6314 Widget Refactoring - Placeholder issue Thanks to Christian and Adrian for their time git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1686116 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -28,6 +28,11 @@ under the License.
|
||||
<set field="headerItem" value="ExampleMenuItem"/>
|
||||
<set field="titleProperty" value="PageTitleFindExample"/>
|
||||
<set field="exampleCtx" from-field="parameters"/>
|
||||
<set field="formExampleListName" value="${groovy:
|
||||
if (parameters.listOtherElements == 'items') return 'ListExamplesWithItems';
|
||||
else if (parameters.listOtherElements == 'features') return 'ListExamplesWithFeatures';
|
||||
else if (parameters.listOtherElements == 'status') return 'ListExamplesWithStatus';
|
||||
else return 'ListExamples'}"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
@@ -38,14 +43,14 @@ under the License.
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="menu-bar">
|
||||
<decorator-section name="menu-bar"><label>${formExampleListName}</label>
|
||||
<container style="button-bar"><link target="EditExampleLayer" link-type="ajax-window" height="500" width="500" text="${uiLabelMap.ExampleNewExample}" style="buttontext create"/></container>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="FindExamples" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-results">
|
||||
<include-form name="ListExamples" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
<include-form name="${formExampleListName}" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
@@ -129,6 +134,17 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleItemsInLine">
|
||||
<section>
|
||||
<widgets>
|
||||
<link text="${uiLabelMap.CommonEdit}" target="EditExampleItems">
|
||||
<parameter param-name="exampleId" from-field="exampleId"/>
|
||||
</link>
|
||||
<include-form name="ListExampleItemsInLine" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleFeatureAppls">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
Reference in New Issue
Block a user