blob: 054a153e9c6a4f6fdbc0aac1d069b067879c109c [file] [log] [blame]
<?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"
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="StatsDecorator">
<section>
<actions>
<set field="headerItem" value="stats"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<condition>
<if-has-permission permission="SERVER_STATS" action="_VIEW"/>
</condition>
<widgets>
<include-menu name="StatsTabBar" location="component://webtools/widget/Menus.xml"/>
<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="StatsSinceStart">
<section>
<actions>
<set field="titleProperty" value="WebtoolsStatsMainPageTitle"/>
<set field="tabButtonItem" value="stats"/>
<script location="component://webtools/groovyScripts/stats/StatsSinceStart.groovy"/>
</actions>
<widgets>
<decorator-screen name="StatsDecorator" location="${parameters.statsDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}"/>
</container>
<include-menu name="StatsSinceStart" location="component://webtools/widget/Menus.xml"/>
<label>${uiLabelMap.WebtoolsStatsCurrentTime} ${nowTimestamp}</label>
<screenlet title="${uiLabelMap.WebtoolsStatsRequestStats}" padded="false">
<include-grid name="ListRequestStats" location="component://webtools/widget/StatsForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.WebtoolsStatsEventStats}" padded="false">
<include-grid name="ListEventStats" location="component://webtools/widget/StatsForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.WebtoolsStatsViewStats}" padded="false">
<include-grid name="ListViewStats" location="component://webtools/widget/StatsForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="StatBinsHistory">
<section>
<actions>
<set field="titleProperty" value="WebtoolsStatsBinsPageTitle"/>
<set field="tabButtonItem" value="stats"/>
<script location="component://webtools/groovyScripts/stats/StatBinsHistory.groovy"/>
</actions>
<widgets>
<decorator-screen name="StatsDecorator" location="${parameters.statsDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}"/>
</container>
<include-menu name="StatsBinHistory" location="component://webtools/widget/Menus.xml"/>
<label>${uiLabelMap.WebtoolsStatsCurrentTime} ${nowTimestamp}</label>
<include-grid name="ListRequestBins" location="component://webtools/widget/StatsForms.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewMetrics">
<section>
<actions>
<set field="titleProperty" value="WebtoolsViewMetrics" />
<set field="tabButtonItem" value="metrics"/>
</actions>
<widgets>
<decorator-screen name="StatsDecorator" location="${parameters.statsDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<container style="page-title">
<label text="${uiLabelMap[titleProperty]}"/>
</container>
<include-grid name="ListMetrics" location="component://webtools/widget/StatsForms.xml" />
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>