Files
ofbiz-plugins/scrum/widget/TimeSheetScreens.xml
T
holivier 94e77248e5 Documented: migrate help link to asciidoc user manual for Plugin
Scrum (OFBIZ-11587)

All files have been migrated to asciidoc format and help link now point
to the html file generated from the asciidoc files

In the global Help Docbook index tree, change Scrum help page to a
short page with a link to the new help

Remove docbook help files for Scrum
2020-09-10 19:02:24 +02:00

103 lines
5.8 KiB
XML

<?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="FindTimeSheet">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindTimeSheet"/>
<set field="headerItem" value="admin"/>
<set field="helpAnchor" value="_current_timesheet"/>
<set field="labelTitleProperty" value="ScrumFindTimeSheet"/>
<set field="tabButtonItem" value="timesheets"/>
<script location="component://scrum/groovyScripts/ListTimeSheets.groovy"/>
</actions>
<widgets>
<decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet id="findTimeSheet" title="${uiLabelMap.PageTitleFindTimeSheet}" collapsible="true">
<include-form name="FindTimeSheet" location="component://scrum/widget/TimeSheetForms.xml"/>
</screenlet>
<screenlet title="${uiLabelMap.PageTitleTimesheets}" navigation-form-name="ListFindTimeSheet">
<include-form name="ListTimeSheets" location="component://scrum/widget/TimeSheetForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ViewTimeSheet">
<section>
<actions>
<set field="titleProperty" value="PageTitleTimesheet"/>
<set field="headerItem" value="timesheet"/>
<set field="tabButtonItem" value="timesheets"/>
<script location="component://scrum/groovyScripts/EditDailyHourReport.groovy"/>
<entity-one entity-name="PartyNameView" value-field="partyNameViewMap">
<field-map field-name="partyId" from-field="timesheet.partyId"/>
</entity-one>
</actions>
<widgets>
<decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.CommonWeek}: ${weekNumber}
${uiLabelMap.CommonFrom} ${groovy:timesheet.get(&quot;fromDate&quot;).toString().substring(0,10)} ${uiLabelMap.CommonTo}
${groovy:timesheet.get(&quot;thruDate&quot;).toString().substring(0,10)} ${uiLabelMap.PartyParty} : ${partyNameViewMap.lastName} ${partyNameViewMap.firstName} ${partyNameViewMap.middleName} [${timesheet.partyId}]">
<section>
<condition>
<if-compare field="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
</condition>
<widgets>
<include-form name="WeekTimesheet" location="component://scrum/widget/TimeSheetForms.xml"/>
</widgets>
<fail-widgets>
<include-form name="EditWeekTimesheet" location="component://scrum/widget/TimeSheetForms.xml"/>
</fail-widgets>
</section>
</screenlet>
<screenlet id="addWeeklyTimesheet" title="${uiLabelMap.PageTitleAddATimesheet}" collapsible="true">
<include-form name="AddWeeklyTimesheet" location="component://scrum/widget/TimeSheetForms.xml"/>
</screenlet>
<include-screen name="ListPartyTimesheets"/>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="ListPartyTimesheets">
<section>
<actions>
<entity-one entity-name="PartyNameView" value-field="partyNameView">
<field-map field-name="partyId" from-field="timesheet.partyId"/>
</entity-one>
</actions>
<widgets>
<screenlet id="listTimeSheets" title="${uiLabelMap.PageTitleTimesheets} ${uiLabelMap.CommonOf} ${partyNameView.firstName} ${partyNameView.middleName} ${partyNameView.lastName}" collapsible="true">
<include-form name="ListTimeSheets" location="component://scrum/widget/TimeSheetForms.xml"/>
</screenlet>
</widgets>
</section>
</screen>
</screens>