From 4e78c6d9748aca95a7a3a22ef950b3a24a235720 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Thu, 28 Jan 2010 11:57:12 +0000 Subject: [PATCH] A patch from Sascha Rodekamp "UI upgrade, new lookups" (https://issues.apache.org/jira/browse/OFBIZ-3374) - OFBIZ-3374 It's not perfect, but hopefully this time I will not have to revert it. I think it's time to introduce it, to let everybody have an idea and test. Anyway, it can't hurt as it's only used in the Form Widget Examples screen for now. To test: https://localhost:8443/example/control/FormWidgetExamples I find that the positioning mechanism is only working with the bizznesstime theme (at list centering, the only case I tried with all themes). But it should not be a big deal to fix since it works already in one theme. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904047 13f79535-47bb-0310-9956-ffa450edef68 --- framework/common/widget/CommonScreens.xml | 50 +- .../webapp/example/WEB-INF/controller.xml | 9 +- .../widget/example/FormWidgetExampleForms.xml | 6 + .../example/FormWidgetExampleLookupForms.xml | 103 ++++ .../FormWidgetExampleLookupScreens.xml | 141 ++++++ .../example/FormWidgetExampleScreens.xml | 4 + framework/images/webapp/images/fieldlookup.js | 472 +++++++++++++++++- .../webapp/images/prototypejs/resize.js | 216 ++++++++ framework/widget/dtd/widget-form.xsd | 28 ++ .../ofbiz/widget/form/MacroFormRenderer.java | 30 +- .../org/ofbiz/widget/form/ModelFormField.java | 40 ++ .../widget/templates/csvFormMacroLibrary.ftl | 2 +- .../widget/templates/foFormMacroLibrary.ftl | 2 +- .../widget/templates/htmlFormMacroLibrary.ftl | 14 +- .../widget/templates/textFormMacroLibrary.ftl | 2 +- .../widget/templates/xmlFormMacroLibrary.ftl | 2 +- .../webapp/bizznesstime/css/style.css | 72 +++ themes/bluelight/webapp/bluelight/style.css | 68 +++ .../webapp/droppingcrumbs/css/style.css | 69 +++ themes/flatgrey/webapp/flatgrey/maincss.css | 71 +++ 20 files changed, 1359 insertions(+), 42 deletions(-) create mode 100644 framework/example/widget/example/FormWidgetExampleLookupForms.xml create mode 100644 framework/example/widget/example/FormWidgetExampleLookupScreens.xml create mode 100644 framework/images/webapp/images/prototypejs/resize.js diff --git a/framework/common/widget/CommonScreens.xml b/framework/common/widget/CommonScreens.xml index ee01f61755..802b0d8c6f 100644 --- a/framework/common/widget/CommonScreens.xml +++ b/framework/common/widget/CommonScreens.xml @@ -112,10 +112,11 @@ under the License.
- + + @@ -281,13 +282,58 @@ under the License.