From 172d49de9be5d325d2670caa930aaa3fdafb4c25 Mon Sep 17 00:00:00 2001 From: Jacopo Cappellato Date: Thu, 15 Dec 2011 10:00:12 +0000 Subject: [PATCH] Improved ui flow for "run service" requests: when an error occurs it returns to the "run service" screen instead of the "submit job" screen (OFBIZ-3571) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1214680 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/webtools/WEB-INF/controller.xml | 12 +++--- .../service/setServiceParameterSync.ftl | 40 +++++++++++++++++++ framework/webtools/widget/ServiceScreens.xml | 2 +- 3 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl diff --git a/framework/webtools/webapp/webtools/WEB-INF/controller.xml b/framework/webtools/webapp/webtools/WEB-INF/controller.xml index b89ab997f9..a1adc5701a 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/controller.xml +++ b/framework/webtools/webapp/webtools/WEB-INF/controller.xml @@ -59,11 +59,6 @@ under the License. - - - - - @@ -316,6 +311,13 @@ under the License. + + + + + + + diff --git a/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl b/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl new file mode 100644 index 0000000000..f9ca7d2e9d --- /dev/null +++ b/framework/webtools/webapp/webtools/service/setServiceParameterSync.ftl @@ -0,0 +1,40 @@ +<#-- +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. +--> +
+ <#list scheduleOptions as scheduleOption> + + + + + + <#list serviceParameters as serviceParameter> + + + + + + + + +
${serviceParameter.name} (${serviceParameter.type}) + class="required"/> + <#if serviceParameter.optional == "N">${uiLabelMap.CommonRequired} + <#if serviceParameter.defaultValue?has_content>${uiLabelMap.WebtoolsServiceDefault} ${serviceParameter.defaultValue} +
+
\ No newline at end of file diff --git a/framework/webtools/widget/ServiceScreens.xml b/framework/webtools/widget/ServiceScreens.xml index da5c36288b..7d7f11e337 100644 --- a/framework/webtools/widget/ServiceScreens.xml +++ b/framework/webtools/widget/ServiceScreens.xml @@ -167,7 +167,7 @@ under the License. - +