From cca950be3723cd2f4071fef84be6c8017df74497 Mon Sep 17 00:00:00 2001 From: Bruno Busco Date: Sun, 5 Sep 2010 14:19:11 +0000 Subject: [PATCH] Converted WebTools->Logs->Service logs screen from FTL to form widget git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992791 13f79535-47bb-0310-9956-ffa450edef68 --- .../WEB-INF/actions/service/Services.groovy | 7 ++- .../webapp/webtools/service/services.ftl | 50 ------------------- framework/webtools/widget/LogScreens.xml | 6 +-- framework/webtools/widget/ServiceForms.xml | 8 +++ 4 files changed, 17 insertions(+), 54 deletions(-) delete mode 100644 framework/webtools/webapp/webtools/service/services.ftl diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy b/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy index 7ce46ecf0b..9edefbd9a2 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy @@ -45,4 +45,9 @@ log.each { rs, value -> serviceList.add(service); } -context.services = serviceList; +sortField = parameters.sortField; +if (sortField) { + context.services = UtilMisc.sortMaps(serviceList, UtilMisc.toList(sortField)); +} else { + context.services = serviceList; +} diff --git a/framework/webtools/webapp/webtools/service/services.ftl b/framework/webtools/webapp/webtools/service/services.ftl deleted file mode 100644 index 97ef7856cc..0000000000 --- a/framework/webtools/webapp/webtools/service/services.ftl +++ /dev/null @@ -1,50 +0,0 @@ -<#-- -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. ---> - -
-
-

${uiLabelMap.PageTitleServiceList}

-
-
- - - - - - - - - <#assign alt_row = false> - <#list services as service> - class="alternate-row"> - - - - - - - <#if alt_row> - <#assign alt_row = false> - <#else> - <#assign alt_row = true> - - -
${uiLabelMap.WebtoolsServiceName}${uiLabelMap.WebtoolsDispatcherName}${uiLabelMap.WebtoolsMode}${uiLabelMap.CommonStartDateTime}${uiLabelMap.CommonEndDateTime}
${service.serviceName?if_exists}${service.localName?if_exists}${service.modeStr?default("[none]")}${service.startTime?if_exists}${service.endTime?default("[running]")}
-
-
diff --git a/framework/webtools/widget/LogScreens.xml b/framework/webtools/widget/LogScreens.xml index 11db7e24ea..fa079b2937 100644 --- a/framework/webtools/widget/LogScreens.xml +++ b/framework/webtools/widget/LogScreens.xml @@ -65,9 +65,9 @@ under the License. - - - + + + diff --git a/framework/webtools/widget/ServiceForms.xml b/framework/webtools/widget/ServiceForms.xml index 3609bb8318..a5fe35bb70 100644 --- a/framework/webtools/widget/ServiceForms.xml +++ b/framework/webtools/widget/ServiceForms.xml @@ -109,4 +109,12 @@ under the License. +
+ + + + + +