Moving example* applications to specialpurpose OFBIZ-4790
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1328503 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="EditMail" type="single" target="sendBirtMail">
|
||||
<field name="sendFrom"><text/></field>
|
||||
<field name="sendTo"><text/></field>
|
||||
<field name="subject"><text/></field>
|
||||
<field name="birtReportLocation" tooltip="Example is component://example/webapp/birt/report/example.rptdesign"><text/></field>
|
||||
<field name="birtContentType">
|
||||
<drop-down>
|
||||
<option key="text/html" description="text/html"/>
|
||||
<option key="application/pdf" description="application/pdf"/>
|
||||
<option key="application/postscript" description="application/postscript"/>
|
||||
<option key="application/vnd.ms-excel" description="application/vnd.ms-excel"/>
|
||||
<option key="application/vnd.ms-word" description="application/vnd.ms-word"/>
|
||||
<option key="application/vnd.ms-powerpoint" description="application/vnd.ms-powerpoint"/>
|
||||
<option key="application/vnd.oasis.opendocument.text" description="application/vnd.oasis.opendocument.text"/>
|
||||
<option key="application/vnd.oasis.opendocument.spreadsheet" description="application/vnd.oasis.opendocument.spreadsheet"/>
|
||||
<option key="application/vnd.oasis.opendocument.presentation" description="application/vnd.oasis.opendocument.presentation"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="attachmentName"><text/></field>
|
||||
<field name="sendButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -0,0 +1,113 @@
|
||||
<?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">
|
||||
<section>
|
||||
<actions>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/>
|
||||
<label style="h3" text="This application provides you with a sample example report."/>
|
||||
<label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/>
|
||||
<link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="Report">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Report"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://example/webapp/birt/birt/report.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditMail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Mail"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Send BIRT report by mail">
|
||||
<include-form location="component://example/widget/example/BirtForms.xml" name="EditMail"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="chartReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="chartReport"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/birt/birt/chartReport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -0,0 +1,337 @@
|
||||
<?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.gif" global="true"/>-->
|
||||
|
||||
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- TODO: Use transform to specify component URI -->
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ExampleCompanySubtitle" 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"/>
|
||||
<!--set field="appheaderTemplate" value="component://example/webapp/appheader.ftl"/-->
|
||||
<set field="applicationTitle" value="${uiLabelMap.ExampleApplication}" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleDecorator">
|
||||
<!-- The CommonExampleDecorator screen decorates a small group of screens that all have
|
||||
something in common. It is decorated by the main-decorator screen. To see how the
|
||||
various decorators are combined to build a screen, view the page source of any
|
||||
Example component screen. HTML comments indicate the start and end points of each
|
||||
screen and decorator. -->
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleMenuItem"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</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="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 -->
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="example"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="h1"><label>${uiLabelMap[titleProperty]} ${uiLabelMap.CommonFor} ${example.exampleName} [${exampleId}]</label></container>
|
||||
<container style="button-bar">
|
||||
<link target="EditExample" text="${uiLabelMap.ExampleNewExample}" style="buttontext create">
|
||||
<image url-mode="raw" src="${iconsLocation}/add.png"/>
|
||||
</link>
|
||||
<link target="ExampleReportHtml" text="${uiLabelMap.CommonPrinterFriendly}" style="buttontext">
|
||||
<parameter param-name="exampleId"/>
|
||||
<image url-mode="raw" src="${iconsLocation}/printer.png"/>
|
||||
</link>
|
||||
<link target="ExampleReportPdf" text="${uiLabelMap.CommonPdf}" style="buttontext">
|
||||
<parameter param-name="exampleId"/>
|
||||
<image url-mode="raw" src="${iconsLocation}/page_white_acrobat.png"/>
|
||||
</link>
|
||||
<link target="help" text="${uiLabelMap.CommonHelp}" style="buttontext" target-window="_blank">
|
||||
<parameter param-name="topic" value="ExampleEditHelp"/>
|
||||
<image url-mode="raw" src="${iconsLocation}/help.png"/>
|
||||
</link>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<container style="h1"><label>${uiLabelMap.ExampleNewExample}</label></container>
|
||||
</fail-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-field="exampleFeature"/>
|
||||
</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="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 -->
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="exampleFeature"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="h1">
|
||||
<label>${uiLabelMap[titleProperty]} ${uiLabelMap.CommonFor} ${exampleFeature.description} [${exampleFeatureId}]</label>
|
||||
</container>
|
||||
<container style="button-bar">
|
||||
<link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext">
|
||||
<image url-mode="raw" src="${iconsLocation}/add.png"/>
|
||||
</link>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<container style="h1"><label>${uiLabelMap.ExampleNewExampleFeature}</label></container>
|
||||
</fail-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="CommonExampleGeoLocationDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleGeoLocation"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_GOOGLE"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleOsmGeoLocationDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleGeoLocation"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_OSM"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Birt"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="BirtTabBar" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleChartsDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleCharts"/>
|
||||
<entity-condition entity-name="ExampleCountByType" list="chartData">
|
||||
<order-by field-name="exampleTypeId"/>
|
||||
</entity-condition>
|
||||
<set field="labelFieldName" value="exampleTypeId"/>
|
||||
<set field="dataFieldName" value="total"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleCharts" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<include-screen name="FlotChart" location="component://common/widget/flotScreens.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleJackrabbitDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleJackrabbit" />
|
||||
<set field="labelFieldName" value="exampleTypeId" />
|
||||
<set field="dataFieldName" value="total" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator"
|
||||
location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleJackrabbit" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-section-include name="body" />
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="main">
|
||||
<!-- This is the screen for the Main page in the Example component. A common pattern
|
||||
in OFBiz is to have each component include a Main page as a starting point for
|
||||
the user. -->
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="main"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="FindExample" location="component://example/widget/example/ExampleScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
@@ -0,0 +1,101 @@
|
||||
<?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="AjaxExample">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="AjaxExample"/>
|
||||
<set field="titleProperty" value="PageTitleFindExample"/>
|
||||
<set field="exampleCtx" from-field="parameters"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="h1"><label>${uiLabelMap[titleProperty]}</label></container>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare field="javaScriptEnabled" value="true" operator="equals"/>
|
||||
</condition>
|
||||
<widgets/>
|
||||
<fail-widgets>
|
||||
<container style="button-bar"><label>${uiLabelMap.ExampleAjaxIntro}</label></container>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
<container id="ListExamplesAjax">
|
||||
<include-screen name="ListExampleFormOnly"/>
|
||||
</container>
|
||||
<container style="h2"><label>${uiLabelMap.ExampleNewExample}</label></container>
|
||||
<container id="EditExampleAjax">
|
||||
<include-screen name="CreateExampleFormOnly"/>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ListExampleFormOnly">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<actions>
|
||||
<!-- NOTE: these are needed because this may be run as a top level screen and would have no decorator -->
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-form name="ListExamplesAjax" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CreateExampleFormOnly">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<actions>
|
||||
<!-- these are only needed so that when bsh evaluates use-when attributes these will exist and not cause an error -->
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-form name="EditExampleBackgroundSubmit" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindExampleFeatures" type="single" target="FindExampleFeature" default-entity-name="ExampleFeature">
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><text-find/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><text-find/></field>
|
||||
<field name="searchButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
|
||||
<form name="ListExampleFeatures" type="list" list-name="listIt" paginate-target="FindExampleFeature" default-entity-name="ExampleFeature"
|
||||
separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<actions>
|
||||
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
||||
<field-map field-name="inputFields" from-field="exampleFeatureCtx"/>
|
||||
<field-map field-name="entityName" value="ExampleFeature"/>
|
||||
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
||||
<field-map field-name="viewSize" from-field="viewSize"/>
|
||||
</service>
|
||||
</actions>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${exampleFeatureId}" target="EditExampleFeature">
|
||||
<parameter param-name="exampleFeatureId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><display/></field>
|
||||
</form>
|
||||
|
||||
<form name="EditExampleFeature" type="single" target="updateExampleFeature" title="" default-map-name="exampleFeature">
|
||||
<actions>
|
||||
<entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false">
|
||||
<field-map field-name="statusId" from-field="example.statusId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<alt-target use-when="exampleFeature==null" target="createExampleFeature"/>
|
||||
<auto-fields-service service-name="updateExampleFeature"/>
|
||||
<field use-when="exampleFeature!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
||||
<field use-when="exampleFeature==null @and exampleFeatureId==null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><ignored/></field>
|
||||
<field use-when="exampleFeature==null @and exampleFeatureId!=null" name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleFeatureId}]" also-hidden="false"/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]">
|
||||
<entity-constraint name="enumTypeId" value="EXMPL_FEAT_SOURCE"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" use-when="exampleFeature==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
||||
<field name="submitButton" use-when="exampleFeature!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<!-- ExampleFeatureAppl -->
|
||||
<form name="ListExampleFeatureAppls" type="list" list-name="exampleFeatureAppls" target="feature_updateExampleFeatureAppl">
|
||||
<actions>
|
||||
<entity-condition entity-name="ExampleFeatureAppl">
|
||||
<condition-expr field-name="exampleFeatureId" from-field="exampleFeatureId"/>
|
||||
<order-by field-name="sequenceNum"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<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">
|
||||
<parameter param-name="exampleId"/>
|
||||
</sub-hyperlink>
|
||||
</display-entity>
|
||||
</field>
|
||||
<field name="exampleFeatureId"><hidden/></field>
|
||||
<field name="fromDate"><display/></field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
<field name="deleteLink" title="" widget-style="buttontext">
|
||||
<hyperlink target="feature_deleteExampleFeatureAppl" description="${uiLabelMap.CommonDelete}" also-hidden="false">
|
||||
<parameter param-name="exampleId"/>
|
||||
<parameter param-name="exampleFeatureId"/>
|
||||
<parameter param-name="fromDate"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="AddExampleFeatureAppl" type="single" target="feature_createExampleFeatureAppl" title="">
|
||||
<auto-fields-service service-name="createExampleFeatureAppl"/>
|
||||
<field name="exampleId" title="${uiLabelMap.ExampleExample}">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="Example" description="${exampleName} [${exampleId}]">
|
||||
<entity-order-by field-name="exampleName"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="exampleFeatureId"><hidden/></field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="LookupFindExampleFeature" target="LookupExampleFeature" title="" type="single">
|
||||
<auto-fields-entity entity-name="ExampleFeature" default-field-type="find"/>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}"/> <!-- <text-find/> -->
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]">
|
||||
<entity-constraint name="enumTypeId" value="EXMPL_FEAT_SOURCE"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonFind}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="LookupListExampleFeature" list-name="listIt" title="" type="list"
|
||||
paginate-target="LookupExampleFeature">
|
||||
<actions>
|
||||
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
||||
<field-map field-name="inputFields" from-field="parameters"/>
|
||||
<field-map field-name="orderBy" value="description"/>
|
||||
<field-map field-name="entityName" value="ExampleFeature"/>
|
||||
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
||||
<field-map field-name="viewSize" from-field="viewSize"/>
|
||||
</service>
|
||||
</actions>
|
||||
<!--<auto-fields-entity entity-name="ExampleFeature" default-field-type="display"/>-->
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleExampleFeatureId}" widget-style="buttontext">
|
||||
<hyperlink description="${exampleFeatureId}" also-hidden="false" target-type="plain" target="javascript:set_value('${exampleFeatureId}')"/>
|
||||
</field>
|
||||
<field name="featureSourceEnumId" title="${uiLabelMap.ExampleFeatureSource}">
|
||||
<display-entity entity-name="Enumeration" key-field-name="enumId" description="${description} [${enumCode}]" also-hidden="false"/>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><display also-hidden="false"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
@@ -0,0 +1,138 @@
|
||||
<?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">
|
||||
|
||||
<!-- list all examplefeatures in a tabular format -->
|
||||
<screen name="FindExampleFeature">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleFeature"/>
|
||||
<set field="titleProperty" value="PageTitleFindExampleFeature"/>
|
||||
<set field="exampleFeatureCtx" from-field="parameters"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="menu-bar">
|
||||
<container style="button-bar"><link target="EditExampleFeature" text="${uiLabelMap.ExampleNewExampleFeature}" style="buttontext create"/></container>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="FindExampleFeatures" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-results">
|
||||
<include-form name="ListExampleFeatures" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleFeature">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExampleFeature"/>
|
||||
<set field="tabButtonItem" value="EditExampleFeature"/>
|
||||
<set field="exampleFeatureId" from-field="parameters.exampleFeatureId"/>
|
||||
<entity-one entity-name="ExampleFeature" value-field="exampleFeature"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleFeatureDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="EditExampleFeature" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleFeatureExampleAppls">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExampleFeatureExampleAppls"/>
|
||||
<set field="tabButtonItem" value="EditExampleFeatureExampleAppls"/>
|
||||
<set field="exampleFeatureId" from-field="parameters.exampleFeatureId"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleFeatureDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="ListExampleFeatureAppls" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
<include-form name="AddExampleFeatureAppl" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="LookupExampleFeature">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="title" value="${uiLabelMap.PageTitleLookupExampleFeature}"/>
|
||||
<set field="queryString" from-field="result.queryString"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="10"/>
|
||||
|
||||
<!-- entries needed for lookup ajax auto completer -->
|
||||
<!-- required: entity to search in -->
|
||||
<set field="entityName" value="ExampleFeature"/>
|
||||
|
||||
<!-- required: fields to search a match -->
|
||||
<set field="searchFields" value="[exampleFeatureId, description]"/>
|
||||
|
||||
<!-- optional: field to return after user selection, default is first element of searchFields -->
|
||||
<!-- return field might be hidden based on widget.autocompleter.displayReturnField property in widget.properties -->
|
||||
<!--set field="returnField" value="exampleFeatureId"/-->
|
||||
|
||||
<!-- optional: fields to display, default are searchFields -->
|
||||
<!--set field="displayFields" value="[exampleFeatureId, description]"/-->
|
||||
|
||||
</actions>
|
||||
|
||||
<widgets>
|
||||
<decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="LookupFindExampleFeature" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-results">
|
||||
<include-form name="LookupListExampleFeature" location="component://example/widget/example/ExampleFeatureForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -0,0 +1,252 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindExamples" type="single" target="FindExample" default-entity-name="Example">
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="exampleId" title="${uiLabelMap.ExampleExampleId}"><text-find/></field>
|
||||
<field name="exampleName" title="${uiLabelMap.CommonName}"><text-find/></field>
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="true" current-description="">
|
||||
<entity-options description="${description}" key-field-name="exampleTypeId" entity-name="ExampleType">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="statusId" title="${uiLabelMap.CommonStatus}">
|
||||
<drop-down allow-empty="true" current-description="">
|
||||
<entity-options description="${description}" key-field-name="statusId" entity-name="ExampleStatusItem"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="searchButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button" image-location="/images/icons/magnifier.png"/></field>
|
||||
</form>
|
||||
|
||||
<form name="ListExamples" type="list" list-name="listIt" paginate-target="FindExample" default-entity-name="Example" separate-columns="true"
|
||||
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<actions>
|
||||
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
||||
<field-map field-name="inputFields" from-field="exampleCtx"/>
|
||||
<field-map field-name="entityName" value="Example"/>
|
||||
<field-map field-name="orderBy" from-field="parameters.sortField"/>
|
||||
<field-map field-name="viewIndex" from-field="viewIndex"/>
|
||||
<field-map field-name="viewSize" from-field="viewSize"/>
|
||||
</service>
|
||||
</actions>
|
||||
<alt-row-style use-when=""EXST_APPROVED".equals(statusId)" style="Validate"/>
|
||||
<alt-row-style use-when=""EXST_CANCELLED".equals(statusId)" style="Warn"/>
|
||||
<field name="exampleId" title="${uiLabelMap.ExampleExampleId}" widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${exampleId}" target="EditExample">
|
||||
<parameter param-name="exampleId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="exampleName" title="${uiLabelMap.CommonName}" sort-field="true"><display/></field>
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}"><display-entity entity-name="ExampleType"/></field>
|
||||
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}" sort-field="true"><display/></field>
|
||||
</form>
|
||||
|
||||
<!-- Typically, this extended form wouldn't be necessary. The parent form (ListExamples) would
|
||||
have these attributes.
|
||||
For the Ajax example we want all example entities listed, so the we use the entity-condition
|
||||
instead of the performFind service. -->
|
||||
<form name="ListExamplesAjax" extends="ListExamples" type="list" paginate-target="authview/findExampleAjax">
|
||||
<actions>
|
||||
<entity-condition entity-name="Example"><order-by field-name="exampleName"/></entity-condition>
|
||||
</actions>
|
||||
<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=" ">
|
||||
<simple-editor/>
|
||||
<field-map field-name="exampleId" from-field="exampleId"/>
|
||||
<field-map field-name="statusId" from-field="statusId"/>
|
||||
</in-place-editor>
|
||||
</display>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}" id-name="description">
|
||||
<display>
|
||||
<in-place-editor url="/example/control/updateExample" cancel-control="button" saving-text="Updating..." text-between-controls=" ">
|
||||
<simple-editor/>
|
||||
<field-map field-name="exampleId" from-field="exampleId"/>
|
||||
<field-map field-name="statusId" from-field="statusId"/>
|
||||
</in-place-editor>
|
||||
</display>
|
||||
</field>
|
||||
<on-event-update-area event-type="paginate" area-id="ListExamplesAjax" area-target="ListExampleFormOnly"/>
|
||||
</form>
|
||||
|
||||
<form name="EditExample" type="single" target="updateExample" title="" default-map-name="example" default-entity-name="Example">
|
||||
<actions>
|
||||
<entity-one entity-name="StatusItem" value-field="currentStatus" auto-field-map="false">
|
||||
<field-map field-name="statusId" from-field="example.statusId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<alt-target use-when="example==null" target="createExample"/>
|
||||
<auto-fields-service service-name="updateExample"/>
|
||||
<field use-when="example!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
|
||||
<field use-when="example==null @and exampleId==null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><ignored/></field>
|
||||
<field use-when="example==null @and exampleId!=null" name="exampleId" title="${uiLabelMap.ExampleExampleId}"><display description="${uiLabelMap.CommonCannotBeFound}: [${exampleId}]" also-hidden="false"/></field>
|
||||
<field name="exampleTypeId" title="${uiLabelMap.CommonType}" id-name="exampleTypeId" widget-style="required">
|
||||
<drop-down allow-empty="false">
|
||||
<!-- this is a neat feature, but not good for the type because the user would have to know the possible types in order to enter at least the first letter, so leaving it out by default; just uncomment to enable: <auto-complete/> -->
|
||||
<entity-options entity-name="ExampleType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="statusId" use-when="example==null" title="${uiLabelMap.CommonStatus}" widget-style="required">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleStatusItem" description="${description}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="statusId" use-when="example!=null" title="${uiLabelMap.CommonStatus}" widget-style="required">
|
||||
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
||||
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
||||
<entity-constraint name="statusId" env-name="example.statusId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="exampleName" required-field="true" widget-style="required"></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"/>
|
||||
<field name="longDescription" title="${uiLabelMap.ExampleLongDescription}"/>
|
||||
<field name="anotherText">
|
||||
<drop-down allow-empty="true">
|
||||
<option key="Explicit Option" description="${uiLabelMap.ExampleExplicitOption}"/>
|
||||
<entity-options entity-name="ExampleType" description="${description}" key-field-name="exampleTypeId">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="displayAnotherText" use-when="example!=null @and example.get("anotherText")!=null">
|
||||
<display description="${example.anotherText}"/>
|
||||
</field>
|
||||
<field name="submitButton" use-when="example==null" title="${uiLabelMap.CommonCreate}"><submit button-type="button"/></field>
|
||||
<field name="submitButton" use-when="example!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<!-- Typically, this extended form wouldn't be necessary. The parent form (EditExample) would
|
||||
have these settings. -->
|
||||
<form name="EditExampleBackgroundSubmit" type="single" extends="EditExample" target="updateExampleAjax">
|
||||
<alt-target use-when="example==null" target="createExampleAjax"/>
|
||||
<field name="statusId" use-when="example==null" title="${uiLabelMap.CommonStatus}" id-name="statusId">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleStatusItem" description="${description}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<on-event-update-area event-type="submit" area-id="ListExamplesAjax" area-target="ListExampleFormOnly"/>
|
||||
<!--on-event-update-area event-type="submit" area-id="EditExampleAjax" area-target="CreateExampleFormOnly"/--><!-- JLR: this does not seem to be useful -->
|
||||
</form>
|
||||
|
||||
<!-- ExampleItem -->
|
||||
<form name="ListExampleItems" type="list" list-name="exampleItems" target="updateExampleItem">
|
||||
<actions>
|
||||
<entity-condition entity-name="ExampleItem">
|
||||
<condition-expr field-name="exampleId" from-field="exampleId"/>
|
||||
<order-by field-name="exampleItemSeqId"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<auto-fields-service service-name="updateExampleItem"/>
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleItemSeqId" title="${uiLabelMap.CommonItem}"><display/></field>
|
||||
<field name="description"><text size="30"/></field>
|
||||
<field name="amountUomId" title="${uiLabelMap.CommonUom}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="UomAndType" key-field-name="uomId" description="${typeDescription}: ${description} (${abbreviation})">
|
||||
<entity-order-by field-name="typeDescription"/>
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
||||
<hyperlink target="deleteExampleItem" description="${uiLabelMap.CommonDelete}" also-hidden="false" confirmation-message="${uiLabelMap.CommonConfirmDelete}" image-location="${iconsLocation}/delete.png">
|
||||
<parameter param-name="exampleId"/>
|
||||
<parameter param-name="exampleItemSeqId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="AddExampleItem" type="single" target="createExampleItem" title="">
|
||||
<auto-fields-service service-name="createExampleItem"/>
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleItemSeqId"><ignored/><!-- this will be auto-sequenced --></field>
|
||||
<field name="amountUomId" title="${uiLabelMap.CommonUom}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="UomAndType" key-field-name="uomId" description="${typeDescription}: ${description} (${abbreviation})">
|
||||
<entity-order-by field-name="typeDescription"/>
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button" request-confirmation="true"/></field>
|
||||
</form>
|
||||
|
||||
<!-- ExampleFeatureAppl -->
|
||||
<form name="ListExampleFeatureAppls" type="list" list-name="exampleFeatureAppls" target="example_updateExampleFeatureAppl">
|
||||
<actions>
|
||||
<entity-condition entity-name="ExampleFeatureAppl">
|
||||
<condition-expr field-name="exampleId" from-field="exampleId"/>
|
||||
<order-by field-name="sequenceNum"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<auto-fields-service service-name="updateExampleFeatureAppl"/>
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleFeature}">
|
||||
<display-entity entity-name="ExampleFeature" description="${description}">
|
||||
<sub-hyperlink target="EditExampleFeature" description="${exampleFeatureId}" link-style="buttontext">
|
||||
<parameter param-name="exampleFeatureId"/>
|
||||
</sub-hyperlink>
|
||||
</display-entity>
|
||||
</field>
|
||||
<field name="fromDate"><display/></field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
|
||||
<hyperlink target="example_deleteExampleFeatureAppl" description="${uiLabelMap.CommonDelete}" also-hidden="false" image-location="${iconsLocation}/delete.png">
|
||||
<parameter param-name="exampleId"/>
|
||||
<parameter param-name="exampleFeatureId"/>
|
||||
<parameter param-name="fromDate"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="AddExampleFeatureAppl" type="single" target="example_createExampleFeatureAppl" title="">
|
||||
<auto-fields-service service-name="createExampleFeatureAppl"/>
|
||||
<field name="exampleId"><hidden/></field>
|
||||
<field name="exampleFeatureId" title="${uiLabelMap.ExampleFeature}">
|
||||
<lookup target-form-name="LookupExampleFeature"/>
|
||||
</field>
|
||||
<field name="exampleFeatureApplTypeId" title="${uiLabelMap.CommonType}">
|
||||
<drop-down allow-empty="false">
|
||||
<entity-options entity-name="ExampleFeatureApplType" description="${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="ListRepositoryData" type="list" list-name="repositoryContent" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path">
|
||||
<hyperlink target="EditRepositoryContent" description="${path}">
|
||||
<parameter param-name="contentId" from-field="contentId" />
|
||||
<parameter param-name="path" from-field="path" />
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="contentId">
|
||||
<hyperlink target="EditRepositoryContent" description="${contentId}">
|
||||
<parameter param-name="contentId" from-field="contentId" />
|
||||
<parameter param-name="path" from-field="path" />
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="contentTypeId">
|
||||
<display />
|
||||
</field>
|
||||
<field name="statusId">
|
||||
<display />
|
||||
</field>
|
||||
<field name="statusId">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="SelectContentObject" type="single" target="">
|
||||
<field name="contentDropDown" position="1">
|
||||
<drop-down ><list-options key-name="contentList" description="${contentList}" list-name="parameters.contentList" list-entry-name="contentList"/></drop-down>
|
||||
</field>
|
||||
|
||||
<!--
|
||||
<field name="languageDropDown" position="2" title="">
|
||||
<drop-down><list-options key-name="languageList" list-name="parameters.languageList"/></drop-down>
|
||||
</field>
|
||||
-->
|
||||
<field name="submit" position="2"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="AddRepositoryData" type="single" target="StoreNewRepositoryData">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" tooltip="${uiLabelMap.ExampleAddNewNodePath}">
|
||||
<text />
|
||||
</field>
|
||||
<field name="msgLocale" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down>
|
||||
</field>
|
||||
<field name="title">
|
||||
<text />
|
||||
</field>
|
||||
<field name="message" title="${uiLabelMap.ExampleRepositoryMessage}">
|
||||
<textarea visual-editor-enable="true" />
|
||||
</field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="UploadRepositoryFileData" type="upload" target="StoreNewRepositoryFileData">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryFolder}" tooltip="${uiLabelMap.ExampleAddNewNodePath}">
|
||||
<text></text>
|
||||
</field>
|
||||
<field name="fileData" title="${uiLabelMap.ExampleRepositoryFile}">
|
||||
<file size="28"></file>
|
||||
</field>
|
||||
<field name="fileLocale" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down>
|
||||
</field>
|
||||
<field name="description"><textarea cols="30"/></field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="EditRepositoryDataChangeLanguage" type="single" target="EditRepositoryContent" default-entity-name="Content">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" map-name="content">
|
||||
<hidden />
|
||||
</field>
|
||||
<field name="language" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="false" current="first-in-list" current-description="${parameters.selectedLanguage}"><list-options key-name="languageList" description="${languageList}" list-name="parameters.languageList" list-entry-name="languageList"/></drop-down>
|
||||
</field>
|
||||
<field name="versions" >
|
||||
<drop-down allow-empty="true" current="selected" no-current-selected-key="${parameters.version}"><list-options key-name="versionList" description="${versionList}" list-name="parameters.versionList" list-entry-name="versionList"/></drop-down>
|
||||
</field>
|
||||
<field name="submit" ><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="EditRepositoryData" type="single" target="UpdateRepositoryData" >
|
||||
<field name="title">
|
||||
<display />
|
||||
</field>
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="language" title="${uiLabelMap.CommonLanguageTitle}">
|
||||
<display />
|
||||
</field>
|
||||
<field name="pubDate" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="createDate" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="version" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="content" title="${uiLabelMap.ExampleRepositoryMessage}" >
|
||||
<textarea visual-editor-enable="true" default-value="${parameters.message}"/>
|
||||
</field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="ScanRepositoryStructure" type="list" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path">
|
||||
<display />
|
||||
</field>
|
||||
<field name="primaryNodeType">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="ExampleJackrabbitShowFileInformation" type="single" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="fileName">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileMimeType" use-when="parameters.get("fileMimeType")!=null">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileLastModified" use-when="parameters.get("fileLastModified")!=null">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileCreationDate">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="QueryRepositoryDataForm" type="single" target="QueryRepositoryData">
|
||||
<field name="queryData" ><text /></field>
|
||||
<field name="submit"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="ExampleJackrabbitShowQueryResults" type="list" target="EditRepositoryContent" list-name="queryResult" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" ><hyperlink target="EditRepositoryContent" description="${path}"><parameter param-name="path"/></hyperlink></field>
|
||||
<field name="score" ><display /></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -0,0 +1,213 @@
|
||||
<?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="ListRepositoryData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitListNodes" />
|
||||
<entity-condition list="repositoryContent" entity-name="Content">
|
||||
<condition-expr field-name="contentTypeId" operator="equals" value="REPOSITORY"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ListRepositoryData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowContentData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowContentData" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/ContentChooser.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitQueryForContent}</label>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="QueryRepositoryDataForm" />
|
||||
</container>
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitDataTree.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitAddData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitAddData" />
|
||||
<script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="AddRepositoryData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitUploadFileData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitUploadFileData" />
|
||||
<script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="UploadRepositoryFileData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitScanRepositoryStructure">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitScanRepositoryStrukture" />
|
||||
<set field="listIt" from-field="parameters.listIt"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ScanRepositoryStructure" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitEditRepositoryContent">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitMainPage" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryDataChangeLanguage" />
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryData" />
|
||||
<link target="RemoveRepositoryNode" text="remove" style="buttontext">
|
||||
<parameter param-name="repositoryNode" from-field="content.repositoryNode" />
|
||||
<parameter param-name="contentId" from-field="content.contentId"/>
|
||||
</link>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowUploadedFiles">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitFileTree.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowFileInformation">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowFileInformation" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowQueryResult">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowContentData" />
|
||||
<set field="queryResult" from-field="parameters.queryResult"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowQueryResults" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
@@ -0,0 +1,113 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
<menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleMenuItem" title="${uiLabelMap.ExampleExample}">
|
||||
<link target="FindExample"/>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}">
|
||||
<link target="FindExampleFeature"/>
|
||||
</menu-item>
|
||||
<menu-item name="FormWidgetExamples" title="${uiLabelMap.ExampleFormWidgetExamples}">
|
||||
<link target="FormWidgetExamples"/>
|
||||
</menu-item>
|
||||
<menu-item name="AjaxExample" title="${uiLabelMap.ExampleAjaxExamples}">
|
||||
<link target="authview/findExampleAjax"/>
|
||||
</menu-item>
|
||||
<menu-item name="portalPage" parent-portal-page-value="EXAMPLE"/>
|
||||
<menu-item name="Dashboard" title="${uiLabelMap.ExampleDashboard}" align-style="opposed">
|
||||
<link target="ManagePortalPages">
|
||||
<parameter param-name="parentPortalPageId" value="EXAMPLE"/>
|
||||
</link>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleGeoLocation" title="${uiLabelMap.CommonGeoLocation}">
|
||||
<link target="ExampleGeoLocationPointSet1"/>
|
||||
</menu-item>
|
||||
<menu-item name="Birt" title="${uiLabelMap.ExampleBirtExamples}">
|
||||
<link target="BirtMain"/>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleCharts" title="Chart examples">
|
||||
<link target="ExampleBarChart"/>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleJackrabbit" title="${uiLabelMap.PageTitleExampleJackrabbit}"><link target="ExampleJackrabbitShowContentData"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="EditExample" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="EditExample" title="${uiLabelMap.ExampleExample}">
|
||||
<link target="EditExample"/>
|
||||
</menu-item>
|
||||
<menu-item name="EditExampleItems" title="${uiLabelMap.CommonItems}">
|
||||
<link target="EditExampleItems">
|
||||
<parameter param-name="exampleId"/>
|
||||
</link>
|
||||
</menu-item>
|
||||
<menu-item name="EditExampleFeatureAppls" title="${uiLabelMap.ExampleFeatures}">
|
||||
<link target="EditExampleFeatureAppls">
|
||||
<parameter param-name="exampleId"/>
|
||||
</link>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="EditExampleFeature" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="EditExampleFeature" title="${uiLabelMap.ExampleFeature}">
|
||||
<link target="EditExampleFeature"/>
|
||||
</menu-item>
|
||||
<menu-item name="EditExampleFeatureExampleAppls" title="${uiLabelMap.ExampleExamples}">
|
||||
<link target="EditExampleFeatureExampleAppls"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="ExampleGeoLocation" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleGeoLocationPointSet1" title="${uiLabelMap.PointSet1}"><link target="ExampleGeoLocationPointSet1"/></menu-item>
|
||||
<menu-item name="ExampleGeoLocationPointSet2" title="${uiLabelMap.PointSet2}"><link target="ExampleGeoLocationPointSet2"/></menu-item>
|
||||
<menu-item name="ExampleGeoLocationPointSet3" title="${uiLabelMap.PointSet3}"><link target="ExampleGeoLocationPointSet3"/></menu-item>
|
||||
<menu-item name="ExampleGeoLocationPointSet4" title="${uiLabelMap.PointSet4}"><link target="ExampleGeoLocationPointSet4"/></menu-item>
|
||||
<menu-item name="ExampleGeoLocationAddress" title="${uiLabelMap.ExamplePointAddress}"><link target="ExampleGeoLocationAddress"/></menu-item>
|
||||
<!--Examples using openstreetmap -->
|
||||
<menu-item name="ExampleOsmGeoLocationPointSet1" title="${uiLabelMap.OsmPointSet1}"><link target="ExampleOsmGeoLocationPointSet1"/></menu-item>
|
||||
<menu-item name="ExampleOsmGeoLocationPointSet2" title="${uiLabelMap.OsmPointSet2}"><link target="ExampleOsmGeoLocationPointSet2"/></menu-item>
|
||||
<menu-item name="ExampleOsmGeoLocationPointSet3" title="${uiLabelMap.OsmPointSet3}"><link target="ExampleOsmGeoLocationPointSet3"/></menu-item>
|
||||
<menu-item name="ExampleOsmGeoLocationPointSet4" title="${uiLabelMap.OsmPointSet4}"><link target="ExampleOsmGeoLocationPointSet4"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="BirtTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="Report" title="${uiLabelMap.ExampleBirtReport}"><link target="Report"/></menu-item>
|
||||
<menu-item name="Export" title="${uiLabelMap.ExampleBirtViewHandler}"><link target="ViewHandler"/></menu-item>
|
||||
<menu-item name="Mail" title="${uiLabelMap.ExampleBirtMail}"><link target="Mail"/></menu-item>
|
||||
<!-- Reports using charts-->
|
||||
<menu-item name="chartReport" title="${uiLabelMap.ExampleBirtChartReport}"><link target="chartReport"/></menu-item>
|
||||
<menu-item name="chartExport" title="${uiLabelMap.ExampleBirtChartViewHandler}"><link target="chartViewHandler"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="ExampleCharts" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleBarChart" title="Bar chart"><link target="ExampleBarChart"/></menu-item>
|
||||
<menu-item name="ExamplePieChart" title="Pie chart"><link target="ExamplePieChart"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="ExampleJackrabbit" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleJackrabbitShowContentData" title="${uiLabelMap.ExampleJackrabbitShowContentData}"><link target="ExampleJackrabbitShowContentData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitAddData" title="${uiLabelMap.ExampleAddNewContentEntry}"><link target="ExampleJackrabbitAddData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitUploadFileData" title="${uiLabelMap.ExampleJackrabbitUploadFileData}"><link target="ExampleJackrabbitUploadFileData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitShowUploadedFiles" title="${uiLabelMap.ExampleJackrabbitShowUploadedFiles}"><link target="ExampleJackrabbitShowUploadedFiles"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitScanRepositoryStrukture" title="${uiLabelMap.ExampleScanRepositoryStrukture}"><link target="ExampleJackrabbitScanRepositoryStructure"/></menu-item>
|
||||
</menu>
|
||||
</menus>
|
||||
@@ -0,0 +1,481 @@
|
||||
<?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">
|
||||
|
||||
<!-- list all examples in a tabular format -->
|
||||
<screen name="FindExample">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleMenuItem"/>
|
||||
<set field="titleProperty" value="PageTitleFindExample"/>
|
||||
<set field="exampleCtx" from-field="parameters"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="menu-bar">
|
||||
<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"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleLayer">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="titleProperty" value="PageTitleEditExample"/>
|
||||
<set field="tabButtonItem" value="EditExample"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExample">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExample"/>
|
||||
<set field="tabButtonItem" value="EditExample"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExample"/>
|
||||
<set field="tabButtonItem" value="EditExample"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-field="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="body">
|
||||
<include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleItems">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExampleItems"/>
|
||||
<set field="tabButtonItem" value="EditExampleItems"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="ListExampleItems" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
<include-form name="AddExampleItem" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleFeatureAppls">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExampleFeatureAppls"/>
|
||||
<set field="tabButtonItem" value="EditExampleFeatureAppls"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-form name="ListExampleFeatureAppls" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
<include-form name="AddExampleFeatureAppl" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="help">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleHelpUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<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"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="help" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleGeoLocationPointSet1">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleGeoLocationPointSet1"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4419" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4719" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1319" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="13"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleGeoLocationPointSet2">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleGeoLocationPointSet2"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4459" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1489" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4829" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1599" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4769" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1219" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="12"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleGeoLocationPointSet3">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleGeoLocationPointSet3"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4379" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1119" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4229" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1369" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="11"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleGeoLocationPointSet4">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleGeoLocation"/>
|
||||
<set field="tabButtonItem" value="ExampleGeoLocationPointSet4"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_GOOGLE"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<section>
|
||||
<actions>
|
||||
<set field="geoPoints[+0].lat" value="37.4459" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1489" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4829" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1599" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4769" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1219" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="12"/>
|
||||
<set field="geoChart.id" value="chart1"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_GOOGLE"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<container style="clear" />
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<section>
|
||||
<actions>
|
||||
<set field="geoPoints" value=""/>
|
||||
<set field="geoPoints[+0].lat" value="37.4379" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1119" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4229" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1369" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="11"/>
|
||||
<set field="geoChart.id" value="chart2"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_GOOGLE"/>
|
||||
<set field="geoChart.width" value="800px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleGeoLocationAddress">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleGeoLocation"/>
|
||||
<set field="tabButtonItem" value="ExampleGeoLocationAddress"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_ADDRESS_GOOGLE"/>
|
||||
<set field="geoChart.width" value="800px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
|
||||
<set field="contactMechId" value="9015"/>
|
||||
<entity-one entity-name="PostalAddress" value-field="address"/>
|
||||
<set field="pointAddress" value="${address.address1} ${address.address2} ${address.postalCode} ${address.city} ${address.stateProvinceGeoId} ${address.countryGeoId}"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<container style="clear" />
|
||||
<label>Using Google geocoding services may need to register for an individual key. Please visit this website to have more details :</label>
|
||||
<link target="http://code.google.com/intl/fr/apis/maps/signup.html" url-mode="plain" text="Google Maps API"/>
|
||||
<label style="h3">Geolocation of DemoCustomer, living at ${pointAddress}</label>
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExamplePieChart">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExamplePieChart"/>
|
||||
<set field="chartType" value="Pie"/>
|
||||
<set field="chartId" value="pieChartDiv"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleChartsDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleBarChart">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleBarChart"/>
|
||||
<set field="chartType" value="Bars"/>
|
||||
<set field="chartId" value="barChartDiv"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleChartsDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleOsmGeoLocationPointSet1">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleOsmGeoLocationPointSet1"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4419" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4719" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1319" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="13"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleOsmGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleOsmGeoLocationPointSet2">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleOsmGeoLocationPointSet2"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4459" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1489" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4829" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1599" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4769" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1219" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="12"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleOsmGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleOsmGeoLocationPointSet3">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ExampleOsmGeoLocationPointSet3"/>
|
||||
<set field="geoPoints[+0].lat" value="37.4379" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1119" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4229" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1369" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="11"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="CommonExampleOsmGeoLocationDecorator" location="${parameters.mainDecoratorLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ExampleOsmGeoLocationPointSet4">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleGeoLocation"/>
|
||||
<set field="tabButtonItem" value="ExampleOsmGeoLocationPointSet4"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_GOOGLE"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<section>
|
||||
<actions>
|
||||
<set field="geoPoints[+0].lat" value="37.4459" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1489" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4829" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1599" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4769" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1219" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="12"/>
|
||||
<set field="geoChart.id" value="chart1"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_OSM"/>
|
||||
<set field="geoChart.width" value="600px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<container style="clear" />
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<section>
|
||||
<actions>
|
||||
<set field="geoPoints" value=""/>
|
||||
<set field="geoPoints[+0].lat" value="37.4379" type="Float"/>
|
||||
<set field="geoPoints[0].lon" value="-122.1119" type="Float"/>
|
||||
<set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
|
||||
<set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
|
||||
<set field="geoPoints[+2].lat" value="37.4229" type="Float"/>
|
||||
<set field="geoPoints[2].lon" value="-122.1369" type="Float"/>
|
||||
<set field="geoCenter.lat" value="37.4419" type="Float"/>
|
||||
<set field="geoCenter.lon" value="-122.1419" type="Float"/>
|
||||
<set field="geoCenter.zoom" value="11"/>
|
||||
<set field="geoChart.id" value="chart2"/>
|
||||
<set field="geoChart.dataSourceId" value="GEOPT_OSM"/>
|
||||
<set field="geoChart.width" value="800px"/>
|
||||
<set field="geoChart.height" value="500px"/>
|
||||
<set field="geoChart.points" from-field="geoPoints"/>
|
||||
<set field="geoChart.center" from-field="geoCenter"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -0,0 +1,374 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="DateTimeFieldsExampleForm" type="single" title="">
|
||||
<actions>
|
||||
<set field="exampleDateField" value="${date:nowTimestamp()}" type="Timestamp"/>
|
||||
</actions>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field1 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field1"
|
||||
title="${uiLabelMap.ExampleDateField1Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<date-time mask="Y"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field9 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field9"
|
||||
title="${uiLabelMap.ExampleDateField9Title}">
|
||||
<!--tooltip="${uiLabelMap.ExampleDateField9Tooltip}"-->
|
||||
<date-time default-value="${groovy:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field10 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field10"
|
||||
title="${uiLabelMap.ExampleDateField10Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField10Tooltip}">
|
||||
<date-time default-value="${nowTimestamp}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field11 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field11"
|
||||
title="${uiLabelMap.ExampleDateField11Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField11Tooltip}">
|
||||
<date-time default-value="${date:dayStart(nowTimestamp, timeZone, locale)}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field2 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field2"
|
||||
title="${uiLabelMap.ExampleDateField2Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<date-time type="date"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field3 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field3"
|
||||
title="${uiLabelMap.ExampleDateField3Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<date-time type="time"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field4 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field4"
|
||||
title="${uiLabelMap.ExampleDateField4Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField4Tooltip}">
|
||||
<date-time input-method="time-dropdown" clock="24" default-value="${exampleDateField}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field5 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field5"
|
||||
title="${uiLabelMap.ExampleDateField5Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField4Tooltip}">
|
||||
<date-time input-method="time-dropdown" clock="12" default-value="${exampleDateField}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field6 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field6"
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField6Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<display type="date-time"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field7 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field7"
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField7Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField7Tooltip}">
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MM/dd/yyyy");}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field8 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field8"
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField8Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField8Tooltip}">
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MMMM,dd,yyyy");}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field12 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field12"
|
||||
title="${uiLabelMap.ExampleDateField12Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField12Tooltip}">
|
||||
<date-time input-method="time-dropdown" clock="24" default-value="${exampleDateField}" step="5"/>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="DropDownFieldsExampleForm" type="single" title="">
|
||||
<field name="dropDownFields1" title="${uiLabelMap.ExampleDropDown}">
|
||||
<display description="${uiLabelMap.ExampleDropDownTooltip}" also-hidden="false"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field1 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field1"
|
||||
title="${uiLabelMap.ExampleDropDownField1Title}"
|
||||
tooltip="${uiLabelMap.ExampleDropDownField1Tooltip}">
|
||||
<drop-down allow-empty="true">
|
||||
<option key="Y" description="${uiLabelMap.CommonY}"/>
|
||||
<option key="N" description="${uiLabelMap.CommonN}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field2 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field2"
|
||||
title="${uiLabelMap.ExampleDropDownField2Title}"
|
||||
tooltip="${uiLabelMap.ExampleDropDownField2Tooltip}">
|
||||
<drop-down allow-empty="false"> <!-- allow-empty="false" is also the default value, so you can also not specify this attribute here -->
|
||||
<option key="Y" description="${uiLabelMap.CommonY}"/>
|
||||
<option key="N" description="${uiLabelMap.CommonN}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field5 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field5"
|
||||
title="${uiLabelMap.ExampleDropDownField5Title}"
|
||||
tooltip="${uiLabelMap.ExampleDropDownField5Tooltip}">
|
||||
<drop-down no-current-selected-key="N">
|
||||
<option key="Y" description="${uiLabelMap.CommonY}"/>
|
||||
<option key="N" description="${uiLabelMap.CommonN}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field8 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field8"
|
||||
title="${uiLabelMap.ExampleDropDownField8Title}"
|
||||
event="onchange"
|
||||
action="return showErrorAlert('${uiLabelMap.CommonErrorMessage2}','${uiLabelMap.YouChangedTheSelectBoxValue}');"
|
||||
tooltip="${uiLabelMap.ExampleDropDownField8Tooltip}">
|
||||
<drop-down>
|
||||
<option key="Y" description="${uiLabelMap.CommonY}"/>
|
||||
<option key="N" description="${uiLabelMap.CommonN}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
|
||||
<field name="entityOptionsFields1" title="${uiLabelMap.ExampleDropDownEntityOptions}"><display description="${uiLabelMap.ExampleDropDownEntityOptionsTooltip1}" also-hidden="false"/></field>
|
||||
<field name="entityOptionsFields2" title="${uiLabelMap.CommonEmptyHeader}"><display description="${uiLabelMap.ExampleDropDownEntityOptionsTooltip2}" also-hidden="false"/></field>
|
||||
<field name="entityOptionsFields3" title="${uiLabelMap.CommonEmptyHeader}"><display description="${uiLabelMap.ExampleDropDownEntityOptionsTooltip3}" also-hidden="false"/></field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field3 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field3"
|
||||
title="${uiLabelMap.ExampleDropDownField3Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="ExampleType"
|
||||
key-field-name="exampleTypeId"
|
||||
description="${description}">
|
||||
<entity-order-by field-name="-description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field4 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field4"
|
||||
title="${uiLabelMap.ExampleDropDownField4Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="ExampleType"
|
||||
key-field-name="exampleTypeId"
|
||||
description="${exampleTypeId} - ${description}">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field6 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="exampleTypeId"
|
||||
title="${uiLabelMap.ExampleDropDownField6Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="ExampleType"
|
||||
description="${description}"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field7 *** -->
|
||||
<!-- ***************** -->
|
||||
<field name="field7"
|
||||
title="${uiLabelMap.ExampleDropDownField7Title}"
|
||||
tooltip="${uiLabelMap.ExampleToDo}">
|
||||
<drop-down>
|
||||
<entity-options entity-name="ExampleType"
|
||||
key-field-name="exampleTypeId"
|
||||
description="${description}">
|
||||
<entity-constraint name="exampleTypeId"
|
||||
value="INSPIRED"
|
||||
operator="greater"/>
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ****************************** -->
|
||||
<!-- *** Autocomplete dropdown *** -->
|
||||
<!-- ****************************** -->
|
||||
<!-- TODO : return only the Id, else you need to edit the field to remove the description -->
|
||||
<field name="emptyField1" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="geoId" title="${uiLabelMap.ExampleAutocompleteDropdown}"
|
||||
tooltip="${uiLabelMap.ExampleAutocompleteTooltip}">
|
||||
<drop-down>
|
||||
<auto-complete/>
|
||||
<entity-options entity-name="Geo" description="${geoId}: ${geoName}">
|
||||
<entity-constraint name="geoTypeId" value="COUNTRY"/>
|
||||
<entity-order-by field-name="geoName"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<!-- ****************************** -->
|
||||
<!-- *** Dependent dropdowns *** -->
|
||||
<!-- ****************************** -->
|
||||
<field name="emptyField2" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="dependendDropDownFields" title="${uiLabelMap.ExampleDependentDropDowns}">
|
||||
<display description="${uiLabelMap.ExampleDependentDropDownTooltip}"/>
|
||||
</field>
|
||||
<field name="stateProvinceGeoId" title="${uiLabelMap.CommonState}" widget-style="required"><drop-down allow-empty="false"/></field>
|
||||
<field name="countryGeoId" title="${uiLabelMap.CommonCountry}" tooltip="${uiLabelMap.CommonRequired}" widget-style="required">
|
||||
<drop-down no-current-selected-key="USA">
|
||||
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName}">
|
||||
<entity-constraint name="geoTypeId" value="COUNTRY"/>
|
||||
<entity-order-by field-name="geoName"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<!-- ****************************** -->
|
||||
<!-- *** Multiple Dropdown *** -->
|
||||
<!-- ****************************** -->
|
||||
<!-- See why this is used here http://www.ryancramer.com/journal/entries/select_multiple/ -->
|
||||
<form name="DropDownMultipleFieldExampleForm" type="single" title="">
|
||||
<field name="emptyField1" title="${uiLabelMap.CommonEmptyHeader}"><display/></field>
|
||||
<field name="multipleDropDownFields" title="${uiLabelMap.ExampleMultipleDropDowns}">
|
||||
<display description="${uiLabelMap.ExampleMultipleDropDownTooltip}"/>
|
||||
</field>
|
||||
<field name="countryGeoIdMultiple" title="${uiLabelMap.CommonCountry}">
|
||||
<drop-down no-current-selected-key="USA">
|
||||
<entity-options entity-name="Geo" key-field-name="geoId" description="${geoName}">
|
||||
<entity-constraint name="geoTypeId" value="COUNTRY"/>
|
||||
<entity-order-by field-name="geoName"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<!-- Simple form to print a FOP PDF file with the fonts available in OFBiz Project -->
|
||||
<form name="FOPFontsExampleForm" type="single" target="printExampleFOPFonts">
|
||||
<field name="printButton" title="${uiLabelMap.ExamplePrintButton}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="FieldGroupExampleForm" type="single" title="">
|
||||
<field name="field1" title="${uiLabelMap.ExampleField} 1"><text/></field>
|
||||
<field name="field2" title="${uiLabelMap.ExampleField} 2"><text/></field>
|
||||
<field name="field3" title="${uiLabelMap.ExampleField} 3"><text/></field>
|
||||
<field name="field4" title="${uiLabelMap.ExampleField} 4"><text/></field>
|
||||
<field name="field5" title="${uiLabelMap.ExampleField} 5"><text/></field>
|
||||
<field name="field6" title="${uiLabelMap.ExampleField} 6"><text/></field>
|
||||
<field name="field7" title="${uiLabelMap.ExampleField} 7"><text/></field>
|
||||
<field name="field8" title="${uiLabelMap.ExampleField} 8"><text/></field>
|
||||
<field name="field9" title="${uiLabelMap.ExampleField} 9"><text/></field>
|
||||
<field name="field10" title="${uiLabelMap.ExampleField} 10"><text/></field>
|
||||
<field name="field11" title="${uiLabelMap.ExampleField} 11"><text/></field>
|
||||
<field name="field12" title="${uiLabelMap.ExampleField} 12"><text/></field>
|
||||
<field name="field13" title="${uiLabelMap.ExampleField} 13"><text/></field>
|
||||
<field name="field14" title="${uiLabelMap.ExampleField} 14"><text/></field>
|
||||
<field name="field14" title="${uiLabelMap.ExampleField} 15"><text/></field>
|
||||
|
||||
<sort-order>
|
||||
<field-group title="${uiLabelMap.ExampleGroupField} 1" collapsible="true" initially-collapsed="true">
|
||||
<sort-field name="field1"/>
|
||||
<sort-field name="field2"/>
|
||||
<sort-field name="field3"/>
|
||||
<sort-field name="field4"/>
|
||||
<sort-field name="field5"/>
|
||||
</field-group>
|
||||
|
||||
<field-group title="${uiLabelMap.ExampleGroupField} 2" collapsible="true">
|
||||
<sort-field name="field6"/>
|
||||
<sort-field name="field7"/>
|
||||
<sort-field name="field8"/>
|
||||
<sort-field name="field9"/>
|
||||
<sort-field name="field10"/>
|
||||
</field-group>
|
||||
|
||||
<field-group title="${uiLabelMap.ExampleGroupField} 3">
|
||||
<sort-field name="field11"/>
|
||||
<sort-field name="field12"/>
|
||||
<sort-field name="field13"/>
|
||||
<sort-field name="field14"/>
|
||||
<sort-field name="field15"/>
|
||||
</field-group>
|
||||
</sort-order>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- Lookup Examples -->
|
||||
<form name="ExampleLookupFields" type="single" title="">
|
||||
<!-- Old style lookup (in a popup window without autocompletion), geoIdAlone because we have another geoId below -->
|
||||
<field name="geoIdAlone" title="${uiLabelMap.CommonGeoId}">
|
||||
<lookup target-form-name="LookupGeo" presentation="window"/>
|
||||
</field>
|
||||
<!-- Standard lookup (in a layer with autocompletion) -->
|
||||
<!-- passes the name in one field and the id in another, passing the id in the other field does not work yet with autocompletion, WIP... -->
|
||||
<field name="geoName" title="${uiLabelMap.CommonGeoName}">
|
||||
<lookup target-form-name="LookupGeoName" description-field-name="geoId"/>
|
||||
</field>
|
||||
<!-- This field may be hidden and the name rendered in geoName using default-value if geoId is known when loading the form-->
|
||||
<field name="geoId" title="${uiLabelMap.CommonGeoId}"><text/></field><!-- the text field is only used for rendering. In the "real life" you would use the hidden field commented below to pass the data to the request -->
|
||||
<!--field name="geoId"><hidden/></field-->
|
||||
<sort-order>
|
||||
<field-group>
|
||||
<sort-field name="geoIdAlone"/>
|
||||
</field-group>
|
||||
<field-group>
|
||||
<sort-field name="geoName"/>
|
||||
<sort-field name="geoId"/>
|
||||
</field-group>
|
||||
</sort-order>
|
||||
</form>
|
||||
|
||||
<form name="SelectionBoxesExampleForm" type="single">
|
||||
<field name="ExampleTypeId">
|
||||
<check>
|
||||
<entity-options key-field-name="exampleTypeId" description="${description}" entity-name="ExampleType"/>
|
||||
</check>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
@@ -0,0 +1,140 @@
|
||||
<?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="FormWidgetExamples">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="FormWidgetExamples"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EXAMPLE" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="h1"><label>${uiLabelMap.PageTitleFormWidgetExamples}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleDateTimeFields}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
|
||||
<label>${uiLabelMap.ExampleDefinitionName} "DateTimeFieldsExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
|
||||
<include-form name="DateTimeFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleDropDownFields}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
|
||||
<label>${uiLabelMap.ExampleDefinitionName} "DropDownFieldsExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
|
||||
</container>
|
||||
<section>
|
||||
<actions>
|
||||
<!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization,
|
||||
if you need an example with more than one dropdown in a form have a look at
|
||||
EditProductPriceRules screen in PriceScreens.xml-->
|
||||
<set field="dependentForm" value="DropDownFieldsExampleForm"/>
|
||||
<set field="paramKey" value="countryGeoId"/>
|
||||
<set field="mainId" value="countryGeoId"/>
|
||||
<set field="dependentId" value="stateProvinceGeoId"/>
|
||||
<set field="requestName" value="getAssociatedStateList"/>
|
||||
<set field="responseName" value="stateList"/>
|
||||
<set field="dependentKeyName" value="geoId"/>
|
||||
<set field="descName" value="geoName"/>
|
||||
<set field="selectedDependentOption" from-field="postalAddress.stateProvinceGeoId" default-value="_none_"/><!-- postalAddress.stateProvinceGeoId does not make much sense here, only to get the idea -->
|
||||
|
||||
<!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl -->
|
||||
<set field="asm_multipleSelectForm" value="DropDownMultipleFieldExampleForm"/>
|
||||
<set field="asm_multipleSelect" value="DropDownMultipleFieldExampleForm_countryGeoIdMultiple"/>
|
||||
<set field="asm_formSize" value="600"/>
|
||||
<set field="asm_asmListItemPercentOfForm" value="95"/>
|
||||
<set field="asm_sortable" value="false"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/></html></platform-specific>
|
||||
<platform-specific><html><html-template location="component://common/webcommon/includes/setMultipleSelectJs.ftl"/></html></platform-specific>
|
||||
<include-form name="DropDownFieldsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
<include-form name="DropDownMultipleFieldExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleLookupFieldsTitle}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
|
||||
<label>${uiLabelMap.ExampleDefinitionName} "ExampleLookupFields" ${uiLabelMap.ExampleDefinitionFile}</label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
|
||||
<label>${uiLabelMap.ExampleLookupFields}</label>
|
||||
<include-form name="ExampleLookupFields" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleGroupFields}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
|
||||
<label>${uiLabelMap.ExampleDefinitionName} "FieldGroupExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
|
||||
<container style="button-bar">
|
||||
<link target="javascript:expandAll(true);" text="${uiLabelMap.CommonExpandAll}" style="buttontext expand-all" url-mode="plain"/>
|
||||
<link target="javascript:expandAll(false);" text="${uiLabelMap.CommonCollapseAll}" style="buttontext collapse-all" url-mode="plain"/>
|
||||
</container>
|
||||
<include-form name="FieldGroupExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<container style="button-bar"><label style="h2">${uiLabelMap.ExampleSelectionBoxes}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label style="h3">${uiLabelMap.ExampleSourceCode}</label>
|
||||
<label>${uiLabelMap.ExampleDefinitionName} "SelectionBoxesExampleForm" ${uiLabelMap.ExampleDefinitionFile}</label>
|
||||
<link target="http://svn.apache.org/repos/asf/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml" url-mode="plain" target-window="svnPage" text="${uiLabelMap.ExampleDefinitionFileTooltip}" style="buttontext"/>
|
||||
<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.ExamplePrintButton}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<label>${uiLabelMap.ExampleFopFonts}</label>
|
||||
</container>
|
||||
<include-form name="FOPFontsExampleForm" location="component://example/widget/example/FormWidgetExampleForms.xml"/>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ExampleViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="printExampleFOPFonts">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific><xsl-fo><html-template location="component://example/webapp/example/reports/fonts.fo.ftl"/></xsl-fo></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="ExamplePortlet1Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
||||
<field name="ItemsToShow">
|
||||
<drop-down allow-empty="false">
|
||||
<option key="5"/>
|
||||
<option key="15"/>
|
||||
<option key="20"/>
|
||||
<option key="25"/>
|
||||
<option key="30"/>
|
||||
<option key="35"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="SpecificTitle">
|
||||
<text/>
|
||||
</field>
|
||||
<field name="updateButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="ExamplePortlet2Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
||||
<field name="nextPortalPageId">
|
||||
<lookup target-form-name="LookupPortalPage"/>
|
||||
</field>
|
||||
<field name="nextParentPortalPageId">
|
||||
<lookup target-form-name="LookupPortalPage"/>
|
||||
</field>
|
||||
<field name="updateButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="ExamplePortlet3Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
||||
<field name="SpecificTitle">
|
||||
<text/>
|
||||
</field>
|
||||
<field name="SpecificSubTitle">
|
||||
<text/>
|
||||
</field>
|
||||
<field name="updateButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
@@ -0,0 +1,99 @@
|
||||
<?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="ExamplePortlet1">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.ExamplePortletFirst}">
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="SpecificTitle"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<label style="h2">${SpecificTitle}</label>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h2">${uiLabelMap.ExampleNoAttributeSet}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExamplePortlet2">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="nextPortalPageId" from-field="nextPortalPageId" default-value=""/>
|
||||
<set field="nextParentPortalPageId" from-field="nextParentPortalPageId" default-value="EXAMPLE"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.ExamplePortletSecond}">
|
||||
<section>
|
||||
<condition><not><if-empty field="nextPortalPageId"/></not></condition>
|
||||
<widgets>
|
||||
<link target="showPortalPage" text="${uiLabelMap.ExamplePortletGoToConfiguredPortalPage} : ${nextPortalPageId} ${uiLabelMap.CommonOf} ${nextParentPortalPageId}" >
|
||||
<parameter param-name="portalPageId" from-field="nextPortalPageId"/>
|
||||
<parameter param-name="parentPortalPageId" from-field="nextParentPortalPageId"/>
|
||||
<image src="${iconsLocation}/application_go.png"/>
|
||||
</link>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<link target="editPortalPortletAttributes" text="${uiLabelMap.ExamplePortletAttributNeedToBeDefineClickHere}" >
|
||||
<parameter param-name="portalPageId" from-field="parameters.portalPageId"/>
|
||||
<parameter param-name="portalPortletId" value="EXAMPLE_2"/>
|
||||
<parameter param-name="portletSeqId" value="00001"/>
|
||||
<image src="${iconsLocation}/wrench_orange.png"/>
|
||||
</link>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExamplePortlet3">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.ExamplePortletThird}">
|
||||
<container style="leftclear">
|
||||
<label style="h1" text="${uiLabelMap.ExamplePortletThird}"/>
|
||||
</container>
|
||||
<container style="leftclear">
|
||||
<label style="h2" text="${uiLabelMap.ExamplePortletSpecificTitle}: ${SpecificTitle}"/>
|
||||
</container>
|
||||
<container style="leftclear">
|
||||
<label style="h2" text="${uiLabelMap.ExamplePortletSpecificSubTitle}: ${SpecificSubTitle}"/>
|
||||
</container>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
Reference in New Issue
Block a user