Make layered-window available in forms and menu (OFBIZ-6327), adding example to use on example form and widget example and set new properties to define defaut layered windows size. Thanks Jacques Leroux for the submission

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas Malin
2015-10-05 19:56:28 +00:00
parent 7d1bf43b79
commit dc0ad950db
6 changed files with 30 additions and 3 deletions
@@ -82,7 +82,7 @@ under the License.
<auto-fields-service service-name="updateExampleFeatureAppl"/>
<field name="exampleId" title="${uiLabelMap.ExampleExample}">
<display-entity entity-name="Example" description="${exampleName}">
<sub-hyperlink target="EditExample" description="${exampleId}" link-style="buttontext">
<sub-hyperlink target="EditExampleLayer" description="${exampleId}" link-style="buttontext" link-type="layered-modal">
<parameter param-name="exampleId"/>
</sub-hyperlink>
</display-entity>
+5
View File
@@ -134,6 +134,11 @@ under the License.
<actions>
<entity-condition entity-name="Example"><order-by field-name="exampleName"/></entity-condition>
</actions>
<field name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${exampleId}" target="EditExampleLayer" link-type="layered-modal">
<parameter param-name="exampleId"/>
</hyperlink>
</field>
<field name="exampleName" title="${uiLabelMap.CommonName}" id-name="exampleName">
<display>
<in-place-editor url="/example/control/updateExample" cancel-control="button" saving-text="Updating..." text-between-controls=" ">
+2 -2
View File
@@ -43,8 +43,8 @@ under the License.
</condition>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<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 name="menu-bar">
<container style="button-bar"><link target="EditExampleLayer" link-type="layered-modal" 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"/>
@@ -394,4 +394,13 @@ under the License.
</field>
</form>
<form name="LinksExampleForm" type="single">
<!-- ************************ -->
<!-- *** Layered-modal *** -->
<!-- ************************ -->
<field name="emptyField0" title=" "><display/></field>
<field name="newExample" title=" " widget-style="buttontext">
<hyperlink also-hidden="false" description="${uiLabelMap.ExampleNewExample}" target="EditExampleLayer" link-type="layered-modal"/>
</field>
</form>
</forms>
@@ -114,6 +114,15 @@ under the License.
<include-form name="SelectionBoxesExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
</container>
</container>
<container style="screenlet-body">
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleLinks}</label></container>
<container style="screenlet-body">
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
<label>${uiLabelMap.ExampleDefinitionName} &quot;LinksExampleForm&quot; ${uiLabelMap.ExampleDefinitionFile}</label>
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
<include-form name="LinksExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
</container>
</container>
<container style="screenlet-body">
<container style="button-bar"><label style="h2">${uiLabelMap.ExamplePrintButton}</label></container>
<container style="screenlet-body">