ilscipio/scipio-erp

View on GitHub
framework/webtools/widget/EntitySyncScreens.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">
    <screen name="GenericDecorator">
        <section>
            <actions>
            </actions>
            <widgets>
                <decorator-screen name="CommonWebtoolsAppDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="button-bar">
                            <link target="EntitySyncStatus" style="${styles.link_run_sys} ${styles.action_reload}" text="${uiLabelMap.CommonRefresh}"/>
                        </container>
                        <decorator-section-include name="body"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EntitySyncStatus">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEntitySyncStatus"/>
                <set field="activeSubMenuItem" value="entitySyncStatus"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonEntityDecorator" location="component://webtools/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <container style="button-bar">
                           <link target="EntitySyncStatus" style="${styles.link_run_sys} ${styles.action_reload}" text="${uiLabelMap.CommonRefresh}"/>
                        </container>
                        <screenlet>
                            <include-form name="EntitySyncStatus" location="component://webtools/widget/EntitySyncForms.xml"/>
                        </screenlet>
                        <screenlet title="${uiLabelMap.WebtoolsLoadOfflineData}">
                            <include-form name="EntitySyncLoadOffline" location="component://webtools/widget/EntitySyncForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>