You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/06/24 09:40:35 UTC
svn commit: r671052 -
/ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml
Author: hansbak
Date: Tue Jun 24 00:40:34 2008
New Revision: 671052
URL: http://svn.apache.org/viewvc?rev=671052&view=rev
Log:
convert to screenlet and make separate screen
Modified:
ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml?rev=671052&r1=671051&r2=671052&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/TaskScreens.xml Tue Jun 24 00:40:34 2008
@@ -80,11 +80,6 @@
<set field="titleProperty" value="WorkEffortMyTasks"/>
<set field="headerItem" value="mytasks"/>
<set field="labelTitleProperty" value="ProjectMgrMyTasks"/>
- <entity-and entity-name="WorkEffortAndPartyAssign" list-name="tasks" filter-by-date="true">
- <field-map field-name="partyId" env-name="userLogin.partyId"/>
- <field-map field-name="workEffortTypeId" value="TASK"/>
- <field-map field-name="statusId" value="PAS_ASSIGNED"/>
- </entity-and>
<entity-and entity-name="WorkEffortAndPartyAssign" list-name="projects" filter-by-date="true">
<field-map field-name="partyId" env-name="userLogin.partyId"/>
<field-map field-name="workEffortTypeId" value="PROJECT"/>
@@ -101,31 +96,7 @@
<decorator-section name="body">
<section>
<widgets>
- <container style="screenlet">
- <container style="screenlet-title-bar">
- <container style="h3">
- <label text="${uiLabelMap.PageTitleTaskAssignedToMe}"/>
- </container>
- </container>
- <container style="screenlet-body">
- <section>
- <condition>
- <not><if-empty field-name="tasks"/></not>
- </condition>
- <widgets>
- <include-form name="MyTasks" location="component://projectmgr/widget/forms/TaskForms.xml"/>
- </widgets>
- <fail-widgets>
- <container>
- <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen1}"></label>
- </container>
- <container>
- <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen2}"></label>
- </container>
- </fail-widgets>
- </section>
- </container>
- </container>
+ <include-screen name="MyTaskList"/>
<section>
<condition>
<not><if-empty field-name="projects"/></not>
@@ -176,6 +147,37 @@
</widgets>
</section>
</screen>
+ <screen name="MyTaskList">
+ <section>
+ <actions>
+ <entity-and entity-name="WorkEffortAndPartyAssign" list-name="tasks" filter-by-date="true">
+ <field-map field-name="partyId" env-name="userLogin.partyId"/>
+ <field-map field-name="workEffortTypeId" value="TASK"/>
+ <field-map field-name="statusId" value="PAS_ASSIGNED"/>
+ </entity-and>
+ </actions>
+ <widgets>
+ <screenlet title="${uiLabelMap.PageTitleTaskAssignedToMe}">
+ <section>
+ <condition>
+ <not><if-empty field-name="tasks"/></not>
+ </condition>
+ <widgets>
+ <include-form name="MyTasks" location="component://projectmgr/widget/forms/TaskForms.xml"/>
+ </widgets>
+ <fail-widgets>
+ <container>
+ <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen1}"></label>
+ </container>
+ <container>
+ <label style="h3" text="${uiLabelMap.ProjectMgrTaskNoOpen2}"></label>
+ </container>
+ </fail-widgets>
+ </section>
+ </screenlet>
+ </widgets>
+ </section>
+ </screen>
<screen name="FindTask">
<section>
<actions>