<?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="UserJobs">
        <section>
            <actions>
                <set field="headerItem" value="userJobs"/>
                <set field="titleProperty" value="WorkEffortJobList"/>
                <set field="filterByStatusId" from-field="parameters.statusId" default-value="SERVICE_RUNNING"/>
                <entity-condition entity-name="JobSandbox" list="userJobs">
                    <condition-list>
                        <condition-expr field-name="authUserLoginId" from-field="userLogin.userLoginId"/>
                        <condition-expr field-name="statusId" from-field="filterByStatusId"/>
                    </condition-list>
                </entity-condition>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <if-has-permission permission="WORKEFFORTMGR" action="_VIEW"/>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.WorkEffortJobList}">
                                    <include-form name="FilterUserJobs" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                    <include-grid name="UserJobsList" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                </screenlet>
                            </widgets>
                            <fail-widgets>
                                <label style="h3">${uiLabelMap.WorkEffortViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="mytasks">
        <section>
            <actions>
                <set field="headerItem" value="task"/>
                <set field="titleProperty" value="PageTitleViewActivityAndTaskList"/>
                <service service-name="getWorkEffortAssignedActivities"/>
                <service service-name="getWorkEffortAssignedActivitiesByRole"/>
                <service service-name="getWorkEffortAssignedActivitiesByGroup"/>
                <service service-name="getWorkEffortAssignedTasks"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <if-service-permission service-name="workEffortGenericPermission" main-action="VIEW"/>
                            </condition>
                            <widgets>
                                <platform-specific><html><html-template location="component://workeffort/template/task/MyTasks.ftl"/></html></platform-specific>
                            </widgets>
                            <fail-widgets>
                                <label style="h3">${uiLabelMap.WorkEffortViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffort">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffort"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <set field="thisWorkEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <if-empty field="workEffort"/>
                            </condition>
                            <widgets>
                                <screenlet title="${uiLabelMap.PageTitleAddWorkEffort}">
                                    <include-form name="EditWorkEffort" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                </screenlet>
                            </widgets>
                            <fail-widgets>
                                <screenlet>
                                    <include-form name="EditWorkEffort" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                </screenlet>
                            </fail-widgets>
                        </section>
                        <screenlet title="${uiLabelMap.WorkEffortDuplicateWorkEffort}">
                            <include-form name="EditWorkEffortDuplicate" location="component://workeffort/widget/WorkEffortForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="AddWorkEffort">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffort"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <set field="thisWorkEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonEmbeddedDecorator" location="component://workeffort/widget/CommonScreens.xml">
                    <decorator-section name="single">
                        <section>
                            <widgets>
                                <screenlet>
                                    <include-form name="AddWorkEffort" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                </screenlet>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindWorkEffort">
        <section>
            <actions>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEfforts"/>
                <set field="headerItem" value="workeffort"/>
                <set field="titleProperty" value="PageTitleFindWorkEffort"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <include-screen name="FindWorkEfforts" location="component://workeffort/widget/workeffort/WorkEffortCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ChildWorkEfforts">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleTreeWorkEfforts"/>
                <set field="tabButtonItem" value="WorkEffortAssocs"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEfforts"/>
                <set field="trail" from-field="requestParameters.trail"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <set field="donePage" from-field="parameters.DONE_PAGE" default-value="ChildWorkEfforts?workEffortId=${parameters.workEffortId}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <container style="button-bar">
                                    <link target="AddWorkEffortAndAssoc" text="${uiLabelMap.WorkEffortAddChild}" style="buttontext">
                                        <parameter param-name="workEffortIdFrom" from-field="workEffortId"/>
                                    </link>
                                    <link target="AddWorkEffortAssoc" text="${uiLabelMap.WorkEffortAddExistingWorkEffortChild}" style="buttontext">
                                        <parameter param-name="workEffortIdFrom" from-field="workEffortId"/>
                                    </link>
                                </container>
                                <include-tree name="TreeWorkEffort" location="component://workeffort/widget/WorkEffortTrees.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="AddWorkEffortAndAssoc">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffort"/>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="labelTitleProperty" value="PageTitleEditWorkEffort"/>
                <set field="donePage" from-field="parameters.DONE_PAGE" default-value="ChildWorkEfforts?workEffortId=${parameters.workEffortIdFrom}"/>
                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
                <set field="workEffortAssocTypeId" value=""/>
                <set field="fromDate" from-field="nowTimestamp"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="h1">
                            <label text="${uiLabelMap.PageTitleAddWorkEffort} ${uiLabelMap.WorkEffortAssociatedFromParentToChild}"/>
                        </container>
                        <include-form name="AddWorkEffortAndAssoc" location="component://workeffort/widget/WorkEffortForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortAndAssoc">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffort"/>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="labelTitleProperty" value="PageTitleEditWorkEffort"/>
                <set field="donePage" from-field="parameters.DONE_PAGE"/>
                <set field="workEffortIdTo" from-field="parameters.workEffortIdTo"/>
                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
                <set field="workEffortId" from-field="parameters.workEffortIdTo" default-value="${parameters.workEffortId}"/>
                <set field="workEffortAssocTypeId" from-field="parameters.workEffortAssocTypeId"/>
                <set field="fromDate" from-field="parameters.fromDate"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <entity-one entity-name="WorkEffortAssoc" value-field="workEffortAssoc"/>
                <set field="parameters.workEffortId" from-field="workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-form name="EditWorkEffortAndAssoc" location="component://workeffort/widget/WorkEffortForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="AddWorkEffortAssoc">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffortAssoc"/>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="labelTitleProperty" value="PageTitleEditWorkEffortAssoc"/>
                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
                <entity-one entity-name="WorkEffortAssoc" value-field="workEffortAssoc"/>
                <set field="donePage" value="ChildWorkEfforts?workEffortId=${workEffortIdFrom}&amp;trail=${workEffortIdFrom}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <container style="h1">
                            <label text="${uiLabelMap.PageTitleEditWorkEffortAssoc}"/>
                        </container>
                        <include-form name="AddWorkEffortAssoc" location="component://workeffort/widget/WorkEffortForms.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortAssoc">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffortAssoc"/>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="labelTitleProperty" value="PageTitleEditWorkEffortAssoc"/>
                <set field="workEffortIdTo" from-field="parameters.workEffortIdTo"/>
                <set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
                <set field="workEffortAssocTypeId" from-field="parameters.workEffortAssocTypeId"/>
                <set field="fromDate" from-field="parameters.fromDate"/>
                <entity-one entity-name="WorkEffortAssoc" value-field="workEffortAssoc"/>
                <set field="donePage" value="ChildWorkEfforts?workEffortId=${workEffortIdFrom}&amp;trail=${workEffortIdFrom}"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <screenlet title="${uiLabelMap.PageTitleEditWorkEffortAssoc}">
                            <include-form name="EditWorkEffortAssoc" location="component://workeffort/widget/WorkEffortForms.xml"/>
                        </screenlet>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortPartyAssigns">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortPartyAssigns"/>
                <set field="tabButtonItem" value="WorkEffortPartyAssigns"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortPartyAssigns"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortPartyAssigns" location="component://workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortFixedAssetAssigns">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortFixedAssetAssigns"/>
                <set field="labelTitleProperty" from-field="titleProperty"/>
                <set field="tabButtonItem" value="WorkEffortFixedAssetAssigns"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortFixedAssets" location="component://workeffort/widget/workeffort/WorkEffortFixedAssetCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortRates">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortAssignmentRates"/>
                <set field="tabButtonItem" value="WorkEffortRates"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortAssignmentRates"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortRates" location="component://workeffort/widget/workeffort/WorkEffortRateAssignCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortCommEvents">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortCommEvents"/>
                <set field="tabButtonItem" value="WorkEffortCommEvents"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortCommEvents"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortCommEvents" location="component://workeffort/widget/workeffort/WorkEffortCommEventCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortShopLists">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortShopLists"/>
                <set field="tabButtonItem" value="WorkEffortShopLists"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortShopLists"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortShopLists" location="component://workeffort/widget/workeffort/WorkEffortShopListCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortRequests">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortRequests"/>
                <set field="tabButtonItem" value="WorkEffortRequests"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortRequests"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortRequests" location="component://workeffort/widget/workeffort/WorkEffortRequestAndItemCpd.xml"/>
                        <include-screen name="ListWorkEffortRequestItems" location="component://workeffort/widget/workeffort/WorkEffortRequestAndItemCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortRequirements">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortRequirements"/>
                <set field="tabButtonItem" value="WorkEffortRequirements"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortRequirements"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortRequirements" location="component://workeffort/widget/workeffort/WorkEffortRequirementsCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortQuotes">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortQuotes"/>
                <set field="tabButtonItem" value="WorkEffortQuotes"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortQuotes"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortQuotes" location="component://workeffort/widget/workeffort/WorkEffortQuotesCpd.xml"/>
                        <include-screen name="ListWorkEffortQuoteItems" location="component://workeffort/widget/workeffort/WorkEffortQuotesCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortOrderHeaders">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortOrderHeaders"/>
                <set field="tabButtonItem" value="WorkEffortOrderHeaders"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortOrderHeaders"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortOrderHeaders" location="component://workeffort/widget/workeffort/WorkEffortOrdersCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortTimeEntries">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortTimeEntries"/>
                <set field="tabButtonItem" value="WorkEffortTimeEntries"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortTimeEntries"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortTimeEntries" location="component://workeffort/widget/workeffort/WorkEffortTimeEntriesCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortNotes">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortNotes"/>
                <set field="tabButtonItem" value="WorkEffortNotes"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortNotes"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <set field="noteId" from-field="parameters.noteId"/>
                <entity-one entity-name="WorkEffortNoteAndData" value-field="workEffortNoteAndData"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortNotes" location="component://workeffort/widget/workeffort/WorkEffortNotesCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortContents">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffortContent"/>
                <set field="tabButtonItem" value="WorkEffortContents"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortContents" location="component://workeffort/widget/workeffort/WorkEffortContentsCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortGoodStandards">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffortGoodStandards"/>
                <set field="tabButtonItem" value="WorkEffortGoodStandards"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortGoodStandards" location="component://workeffort/widget/workeffort/WorkEffortGoodStandardsCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortReviews">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortReviews"/>
                <set field="tabButtonItem" value="WorkEffortReviews"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortReviews" location="component://workeffort/widget/workeffort/WorkEffortReviewsCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortKeywords">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortKeyword"/>
                <set field="tabButtonItem" value="WorkEffortKeywords"/>
                <set field="labelTitleProperty" value="PageTitleListWorkEffortKeyword"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortKeywords" location="component://workeffort/widget/workeffort/WorkEffortKeywordsCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditWorkEffortContactMechs">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditWorkEffortContactMechs"/>
                <set field="tabButtonItem" value="WorkEffortContactMechs"/>
                <set field="labelTitleProperty" value="PageTitleEditWorkEffortContactMechs"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortContactMechs" location="component://workeffort/widget/workeffort/WorkEffortContactMechCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="WorkEffortSearchResults">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleSearchResults"/>
                <script location="component://workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/find/WorkEffortSearchResults.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                         <platform-specific>
                              <html><html-template location="component://workeffort/template/find/WorkEffortSearchResults.ftl"/></html>
                         </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="WorkEffortSearchOptions">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleSearchResults"/>
                <script location="component://workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/find/WorkEffortSearchOptions.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                         <platform-specific>
                              <html><html-template location="component://workeffort/template/find/WorkEffortSearchOptions.ftl"/></html>
                         </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditAgreementWorkEffortApplics">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditAgreementWorkEffortApplics"/>
                <set field="tabButtonItem" value="WorkEffortAgreementAppls"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortAgreements" location="component://workeffort/widget/workeffort/WorkEffortAgreementCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortAttributes">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortAttributes"/>
                <set field="labelTitleProperty" from-field="titleProperty"/>
                <set field="tabButtonItem" value="WorkEffortAttributes"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortAttributes" location="component://workeffort/widget/workeffort/WorkEffortAttributeCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ListWorkEffortEventReminders">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleListWorkEffortEventReminders"/>
                <set field="labelTitleProperty" from-field="titleProperty"/>
                <set field="tabButtonItem" value="WorkEffortEventReminders"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonWorkEffortDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <include-screen name="ListWorkEffortEventReminders" location="component://workeffort/widget/workeffort/WorkEffortEventRemindersCpd.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="WorkEffortEventReminderEmail">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <get-related-one value-field="workEffort" relation-name="WorkEffortType" to-value-field="workEffortType"/>
                <get-related-one value-field="workEffort" relation-name="CurrentStatusItem" to-value-field="currentStatusItem"/>
                <get-related-one value-field="workEffort" relation-name="WorkEffortPurposeType" to-value-field="workEffortPurposeType"/>
                <get-related-one value-field="workEffort" relation-name="ScopeEnumeration" to-value-field="scopeEnumeration"/>
                <entity-and entity-name="WorkEffortPartyAssignView" list="partyAssignments">
                    <field-map field-name="workEffortId"/>
                </entity-and>
                <entity-and entity-name="WorkEffortAndFixedAssetAssign" list="fixedAssetAssignments" filter-by-date="true">
                    <field-map field-name="workEffortId"/>
                </entity-and>
            </actions>
            <widgets>
                <platform-specific><html><html-template location="component://workeffort/template/workeffort/EventReminderEmail.ftl"/></html></platform-specific>
            </widgets>
        </section>
    </screen>
    <screen name="iCalendarDecorator">
        <section>
            <actions>
                <set field="headerItem" value="WorkEffortICalendar"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
                        <section>
                            <condition>
                                <not><if-empty field="workEffort"/></not>
                            </condition>
                            <widgets>
                                <include-menu name="ICalendarTabBar" location="${parameters.mainMenuLocation}"/>
                            </widgets>
                        </section>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <or>
                                    <if-service-permission service-name="workEffortICalendarPermission" main-action="CREATE" context-map="parameters"/>
                                    <if-service-permission service-name="workEffortICalendarPermission" main-action="UPDATE" context-map="parameters"/>
                                </or>
                            </condition>
                            <widgets>
                                <container style="button-bar">
                                    <link text="${uiLabelMap.CommonCreate}" target="EditICalendar" style="buttontext"/>
                                </container>
                                <container style="h1">
                                    <label text="${title}"/>
                                </container>
                                <decorator-section-include name="body"/>
                            </widgets>
                            <fail-widgets>
                                <label style="h3">${uiLabelMap.WorkEffortViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindICalendars">
        <section>
            <actions>
                <set field="headerItem" value="WorkEffortICalendar"/>
                <set field="titleProperty" value="WorkEffortICalendarFind"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="pre-body">
                        <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <if-service-permission service-name="workEffortManagerPermission" main-action="VIEW"/>
                            </condition>
                            <widgets>
                                <container style="h1">
                                    <label text="${uiLabelMap.WorkEffortICalendarFind}"/>
                                </container>
                                <container style="button-bar">
                                    <link text="${uiLabelMap.CommonCreate}" target="EditICalendar" style="buttontext"/>
                                    <link text="${uiLabelMap.CommonHelp}" target="ICalendarHelp" style="buttontext"/>
                                </container>
                                <include-grid name="ListIcalendars" location="component://workeffort/widget/WorkEffortForms.xml"/>
                            </widgets>
                            <fail-widgets>
                                <label style="h3">${uiLabelMap.WorkEffortViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditICalendar">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="WorkEffort"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <set field="title" value="${uiLabelMap.WorkEffortICalendarEdit} - ${workEffort.workEffortName}"/>
            </actions>
            <widgets>
                <section>
                    <condition>
                        <if-empty field="workEffort"/>
                    </condition>
                    <actions>
                        <set field="title" from-field="uiLabelMap.WorkEffortICalendarAdd"/>
                    </actions>
                    <widgets/>
                </section>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <section>
                                    <condition>
                                        <if-empty field="workEffort"/>
                                    </condition>
                                    <actions>
                                        <set field="quickAssignPartyId" from-field="userLogin.partyId"/>
                                    </actions>
                                    <widgets>
                                        <include-form name="EditICalendar" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                    </widgets>
                                    <fail-widgets>
                                        <include-form name="EditICalendar" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                    </fail-widgets>
                                </section>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditICalendarData">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="ICalendarData"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <get-related-one value-field="workEffort" relation-name="WorkEffortIcalData" to-value-field="iCalData"/>
                <set field="title" value="${uiLabelMap.WorkEffortICalendarEditData} - ${workEffort.workEffortName}"/>
            </actions>
            <widgets>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <include-form name="EditICalendarData" location="component://workeffort/widget/WorkEffortForms.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ICalendarChildren">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="WorkEffortAssocs"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <set field="trail" from-field="requestParameters.trail"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <set field="title" value="${uiLabelMap.PageTitleTreeWorkEfforts} - ${workEffort.workEffortName}"/>
            </actions>
            <widgets>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <include-tree name="ICalendarTree" location="component://workeffort/widget/WorkEffortTrees.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ICalendarParties">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="WorkEffortPartyAssigns"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <set field="title" value="${uiLabelMap.WorkEffortICalendarAddParty} - ${workEffort.workEffortName}"/>
            </actions>
            <widgets>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <include-form name="EditICalendarPartyAssign" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                <include-form name="ListICalendarPartyAssigns" location="component://workeffort/widget/WorkEffortForms.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ICalendarFixedAssets">
        <section>
            <actions>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="WorkEffortFixedAssetAssigns"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <set field="title" value="${uiLabelMap.WorkEffortICalendarAddFixedAsset} - ${workEffort.workEffortName}"/>
            </actions>
            <widgets>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <include-form name="EditICalendarFixedAssetAssign" location="component://workeffort/widget/WorkEffortForms.xml"/>
                                <include-form name="ListICalendarFixedAssetAssigns" location="component://workeffort/widget/WorkEffortForms.xml"/>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="ICalendarHelp">
        <section>
            <actions>
                <set field="layoutSettings.styleSheets[+0]" value="/images/wiki-content.css" global="true"/>
                <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap"/>
                <set field="tabButtonItem" value="ICalendarHelp"/>
                <set field="workEffortId" from-field="parameters.workEffortId"/>
                <entity-one entity-name="WorkEffort" value-field="workEffort"/>
                <set field="title" from-field="uiLabelMap.WorkEffortICalendarHelp"/>
                <set field="document" from-field="dom:readHtmlDocument(uiLabelMap.WorkEffortICalendarHelpUrl)"/>
                <set field="wikiDivList" from-field="document[&quot;//DIV[@class='wiki-content']&quot;]"/>
                <set field="wikiContent" from-field="dom:toHtmlString(wikiDivList[0], 'UTF-8', true, 2)"/>
            </actions>
            <widgets>
                <decorator-screen name="iCalendarDecorator" location="${parameters.iCalendarDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <platform-specific>
                                    <html><html-template location="component://workeffort/template/workeffort/ICalendarHelp.ftl"/></html>
                                </platform-specific>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
</screens>
