ilscipio/scipio-erp

View on GitHub
framework/webtools/widget/StatsScreens.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">

    <!-- SCIPIO: NOTE: The old parameters.statsDecoratorLocation pattern that existed here has been supplanted
        by the decorator default-fallback-location pattern for parameters.mainDecoratorLocation (see CommonScreens.xml). -->

    <screen name="StatsSinceStart">
        <section>
            <actions>
                <set field="titleProperty" value="WebtoolsStatsMainPageTitle"/>
                <set field="activeSubMenuItem" value="stats"/>
                <script location="component://webtools/webapp/webtools/WEB-INF/actions/stats/StatsSinceStart.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="StatsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <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-form name="ListRequestStats" location="component://webtools/widget/StatsForms.xml"/>
                        </screenlet>
                        <screenlet title="${uiLabelMap.WebtoolsStatsEventStats}" padded="false">
                            <include-form name="ListEventStats" location="component://webtools/widget/StatsForms.xml"/>
                        </screenlet>
                        <screenlet title="${uiLabelMap.WebtoolsStatsViewStats}" padded="false">
                            <include-form name="ListViewStats" location="component://webtools/widget/StatsForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="StatBinsHistory">
        <section>
            <actions>
                <set field="titleProperty" value="WebtoolsStatsBinsPageTitle"/>
                <set field="activeSubMenuItem" value="stats"/>
                <script location="component://webtools/webapp/webtools/WEB-INF/actions/stats/StatBinsHistory.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="StatsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <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-form name="ListRequestBins" location="component://webtools/widget/StatsForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="ViewMetrics">
        <section>
            <actions>
                <set field="titleProperty" value="WebtoolsViewMetrics" />
                <set field="activeSubMenuItem" value="metrics"/>
            </actions>
            <widgets>
                <decorator-screen name="StatsDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="page-title">
                            <label text="${uiLabelMap[titleProperty]}"/>
                        </container>
                        <include-form name="ListMetrics" location="component://webtools/widget/StatsForms.xml" />
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

</screens>