ilscipio/scipio-erp

View on GitHub
applications/content/widget/contentsetup/ContentSetupScreens.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="EditContentType">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentType"/>
                <set field="currentMenuItemName" to-scope="user" value="type"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentTypePanel" collapsible="true">
                            <include-form name="AddContentType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditContentTypeAttr">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentAttribute"/>
                <set field="currentMenuItemName" to-scope="user" value="typeAttr"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentTypeAttrPanel" collapsible="true">
                            <include-form name="AddContentTypeAttr" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentTypeAttr" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditContentAssocType">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentAssoc"/>
                <set field="currentMenuItemName" to-scope="user" value="assocType"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentAssocTypePanel" collapsible="true">
                            <include-form name="AddContentAssocType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentAssocType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditContentPurposeType">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentPurpose"/>
                <set field="currentMenuItemName" to-scope="user" value="purposeType"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentPurposeTypePanel" collapsible="true">
                            <include-form name="AddContentPurposeType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentPurposeType" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditContentAssocPredicate">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentAssocPredicate"/>
                <set field="currentMenuItemName" to-scope="user" value="assocPred"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentAssocPredicatePanel" collapsible="true">
                            <include-form name="AddContentAssocPredicate" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentAssocPredicate" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="EditContentPurposeOperation">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentPurposeOperation"/>
                <set field="currentMenuItemName" to-scope="user" value="contentPurposeOp"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentPurposeOperationPanel" collapsible="true">
                            <include-form name="AddContentPurposeOperation" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentPurposeOperation" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

    <screen name="UserPermissions">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentUserPermissions"/>
                <set field="currentMenuItemName" to-scope="user" value="userpermission"/>
                <set field="webSitePublishPoint" from-field="parameters.webSitePublishPoint" default-value="OFBIZDOCROOT"/>
                <script location="component://content/webapp/content/WEB-INF/actions/contentsetup/UserPermPrep.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <platform-specific>
                            <html>
                                <html-template location="component://content/webapp/content/contentsetup/UserPermissions.ftl"/>
                            </html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditContentOperation">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditContentOperation"/>
                <set field="currentMenuItemName" to-scope="user" value="contentOp"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonContentSetupDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet id="ContentOperationPanel" collapsible="true">
                            <include-form name="AddContentOperation" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                        </screenlet>
                        <include-form name="UpdateContentOperation" location="component://content/widget/contentsetup/ContentSetupForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>