Files
ofbiz-plugins/scrum/widget/OpenTestScreens.xml
T

157 lines
7.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="openTest">
<section>
<actions>
<set field="titleProperty" value="PageTitleOpenTest"/>
</actions>
<widgets>
<decorator-screen name="CommonOpenTestScreenDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<include-screen name="findBacklog"/>
<include-screen name="listTask"/>
</decorator-section>
</decorator-screen>
</widgets>
<fail-widgets/>
</section>
</screen>
<screen name="defaultTasks">
<section>
<actions>
<set field="titleProperty" value="PageTitleDefaultTasks"/>
<set field="tabButtonItem" value="defaultTasks"/>
<entity-one value-field="product" entity-name="Product"/>
</actions>
<widgets>
<decorator-screen name="CommonScrumProductDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="${uiLabelMap.ScrumDefaultTasksList}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="defaultTaskList"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="editDefaultTask">
<section>
<actions>
<set field="titleProperty" value="PageTitleEditDefaultTasks"/>
<set field="tabButtonItem" value="defaultTasks"/>
<set field="workEffortId" from-field="parameters.workEffortId"/>
<entity-one value-field="product" entity-name="Product"/>
</actions>
<widgets>
<decorator-screen name="CommonScrumProductDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="${uiLabelMap.ScrumEditDefaultTask} ${workEffortId}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="editDefaultTask"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="findBacklog">
<section>
<actions>
</actions>
<widgets>
<screenlet id="findBacklog" title="${uiLabelMap.PageTitleFindBacklog}" collapsible="true">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="findBacklog"/>
</screenlet>
</widgets>
</section>
</screen>
<screen name="listTask">
<section>
<actions>
<script location="component://scrum/webapp/scrum/WEB-INF/actions/FindBacklogItem.groovy"/>
</actions>
<widgets>
<screenlet title="${uiLabelMap.ScrumBacklogList}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="listTask"/>
</screenlet>
</widgets>
</section>
</screen>
<screen name="editTask">
<section>
<actions>
<set field="tabButtonItem" value=""/>
<set field="workEffortParentId" from-field="parameters.workEffortParentId"/>
<set field="sprintId" from-field="parameters.sprintId"/>
</actions>
<widgets>
<decorator-screen name="CommonOpenTestScreenDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<section>
<widgets>
<screenlet title="${uiLabelMap.PageTitleEditTask}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="editTask"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="defaultTaskScrum">
<section>
<condition>
<if-has-permission permission="SCRUM" action="_ADMIN"/>
</condition>
<actions>
<set field="titleProperty" value="PageTitleScrumDefaultTasks"/>
<set field="headerItem" value="admin"/>
<set field="tabButtonItem" value="defaultTasks"/>
</actions>
<widgets>
<decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="button-bar">
<link text="${uiLabelMap.ScrumCreateDefaultTasks}" target="editDefaultTaskScrum" style="buttontext create"/>
</container>
<screenlet title="${uiLabelMap.ScrumDefaultTasksList}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="defaultTaskScrumList"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="editDefaultTaskScrum">
<section>
<actions>
<set field="titleProperty" value="PageTitleScrumDefaultTasks"/>
<set field="headerItem" value="admin"/>
<set field="tabButtonItem" value="defaultTasks"/>
<set field="workEffortId" value="${parameters.workEffortId}"/>
</actions>
<widgets>
<decorator-screen name="CommonAdminDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="button-bar"/>
<screenlet title="${uiLabelMap.ScrumEditDefaultTask}">
<include-form location="component://scrum/widget/OpenTestForms.xml" name="editDefaultTaskScrum"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>