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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
-->
|
||||
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<h3>${uiLabelMap.PageTitleServiceList}</h3>
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<table class="basic-table hover-bar" cellspacing="0">
|
||||
<tr class="header-row">
|
||||
<td>${uiLabelMap.WebtoolsServiceName}</td>
|
||||
<td>${uiLabelMap.WebtoolsDispatcherName}</td>
|
||||
<td>${uiLabelMap.WebtoolsMode}</td>
|
||||
<td>${uiLabelMap.CommonStartDateTime}</td>
|
||||
<td>${uiLabelMap.CommonEndDateTime}</td>
|
||||
</tr>
|
||||
<#assign alt_row = false>
|
||||
<#list services as service>
|
||||
<tr<#if alt_row> class="alternate-row"</#if>>
|
||||
<td>${service.serviceName?if_exists}</td>
|
||||
<td>${service.localName?if_exists}</td>
|
||||
<td>${service.modeStr?default("[none]")}</td>
|
||||
<td>${service.startTime?if_exists}</td>
|
||||
<td>${service.endTime?default("[running]")}</td>
|
||||
</tr>
|
||||
<#if alt_row>
|
||||
<#assign alt_row = false>
|
||||
<#else>
|
||||
<#assign alt_row = true>
|
||||
</#if>
|
||||
</#list>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -65,9 +65,9 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="log-decorator">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://webtools/webapp/webtools/service/services.ftl"/></html>
|
||||
</platform-specific>
|
||||
<screenlet title="${uiLabelMap.PageTitleServiceList}">
|
||||
<include-form name="ListServices" location="component://webtools/widget/ServiceForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
|
||||
@@ -109,4 +109,12 @@ under the License.
|
||||
<field name="ttl" title="${uiLabelMap.WebtoolsTTL} (ms)"><display/></field>
|
||||
<field name="runTime" title="${uiLabelMap.CommonTime} (ms)"><display/></field>
|
||||
</form>
|
||||
<form name="ListServices" type="list" list-name="services" paginate-target="ServiceLog" separate-columns="true"
|
||||
odd-row-style="alternate-row" default-table-style="basic-table hover-bar" header-row-style="header-row-2">
|
||||
<field name="serviceName" title="${uiLabelMap.WebtoolsServiceName}" sort-field="true"><display/></field>
|
||||
<field name="localName" title="${uiLabelMap.WebtoolsDispatcherName}" sort-field="true"><display/></field>
|
||||
<field name="modeStr" title="${uiLabelMap.WebtoolsMode}" sort-field="true"><display default-value="${uiLabelMap.CommonNone}"/></field>
|
||||
<field name="startTime" title="${uiLabelMap.CommonStartDateTime}" sort-field="true"><display/></field>
|
||||
<field name="endTime" title="${uiLabelMap.CommonEndDateTime}" sort-field="true"><display default-value="${uiLabelMap.WebtoolsStatusRunning}"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
|
||||
Reference in New Issue
Block a user