svn commit: r574051 [2/4] - in /ofbiz/trunk/specialpurpose/projectmgr: ./ config/ webapp/projectmgr/WEB-INF/ webapp/projectmgr/WEB-INF/actions/ webapp/projectmgr/project/ webapp/projectmgr/project/summary/ widget/ widget/forms/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r574051 [2/4] - in /ofbiz/trunk/specialpurpose/projectmgr: ./ config/ webapp/projectmgr/WEB-INF/ webapp/projectmgr/WEB-INF/actions/ webapp/projectmgr/project/ webapp/projectmgr/project/summary/ widget/ widget/forms/

apatel-2
Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editproject.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editproject.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editproject.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editproject.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,233 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if project?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditProject}&nbsp;#${project.workEffortName?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddProject}</li>
+      </#if>
+    </ul>
+    <br class="clear" />
+  </div>
+  <div class="screenlet-body">    
+    <#if project?has_content>
+        <a href="<@ofbizUrl>EditProject?DONE_PAGE=${donePage}</@ofbizUrl>"></a>
+        <form name="editProjectForm" action="<@ofbizUrl>updateProject</@ofbizUrl>">
+    <#else>
+        <form name="editProjectForm" action="<@ofbizUrl>createProject</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0" border="0">
+          <#if !(project?exists)>
+            <tr>
+              <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+          <#else>
+              <td><input type="hidden" name="workEffortTypeId" value="${project.workEffortTypeId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortId" value="${project.workEffortId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortName" value="${project.workEffortName?if_exists}"/></td>
+          </#if>
+          </tr>
+          <#if project?exists>
+            <tr>    
+              <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+              <td>${project.workEffortId?if_exists}<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</span></td>    
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonName}</td>
+              <td>${project.workEffortName?if_exists}<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</span></td>
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonDescription}</td>
+              <td><input type="text" name="description" value="${project.description?if_exists}"/></td>
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonStatus}</td>
+              <td>    
+                <select name="currentStatusId" class="selectBox">
+                  <#assign currentStatusId = project.currentStatusId?if_exists>
+                  <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                    <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                    <option>--</option>
+                  <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                    <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                  </#list>
+                </select>
+              </td>  
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.CommonPriority}</td>
+              <#if project?has_content>
+                <#assign priority = project.priority?if_exists>      
+              </#if>
+              <td>
+                <select name="priority" class="selectBox" size="1">
+                  <option SELECTED value="${priority}">${priority}</option>      
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                </select>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+              <td>            
+                <select name="scopeEnumId" class="selectBox">
+                  <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+                  <#assign scopeEnumId = project.scopeEnumId?if_exists>            
+                  <#list enumerations as enumeration>                    
+                    <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                  </#list>
+                </select>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+              <td>
+                <input type="text" name="estimatedStartDate" value="${project.estimatedStartDate?if_exists}"/>
+                <a href="javascript:call_cal(document.editProjectForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>  
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+              <td>
+                <input type="text" name="estimatedCompletionDate" value="${project.estimatedCompletionDate?if_exists}"/>
+                <a href="javascript:call_cal(document.editProjectForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+              <td>
+                <input type="text" name="actualStartDate" value="${project.actualStartDate?if_exists}"/>
+                <a href="javascript:call_cal(document.editProjectForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>  
+            <tr>
+              <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+              <td>
+                <input type="text" name="actualCompletionDate" value="${project.actualCompletionDate?if_exists}"/>
+                <a href="javascript:call_cal(document.editProjectForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>  
+          <#else>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonName}*</td>
+              <td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonDescription}</td>
+              <td><input type="text" name="description" value=""/></td>
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonStatus}</td>
+              <td>    
+                <select name="currentStatusId" class="selectBox">
+                  <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                  <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                  <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                  <#list statusItemGenrals as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemTasks as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemEvents as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                  </#list>
+                </select>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.CommonPriority}</td>
+              <#if project?has_content>
+                <#assign priority = project.priority?if_exists>      
+               </#if>
+              <td>
+                <select name="priority" class="selectBox" size="1">
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                </select>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+              <td>
+                <select name="scopeEnumId" class="selectBox">
+                  <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+                  <#list enumerations as enumeration>                    
+                    <option value="${enumeration.enumId}">${enumeration.description}</option>
+                  </#list>  
+                </select>
+              </td>  
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+              <td>
+                <input type="text" name="estimatedStartDate" value=""/>
+                <a href="javascript:call_cal(document.editProjectForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>  
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+              <td>
+                <input type="text" name="estimatedCompletionDate" value=""/>
+                <a href="javascript:call_cal(document.editProjectForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+              <td>
+                <input type="text" name="actualStartDate" value=""/>
+                <a href="javascript:call_cal(document.editProjectForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>
+            <tr>
+              <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+              <td>
+                <input type="text" name="actualCompletionDate" value=""/>
+                <a href="javascript:call_cal(document.editProjectForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+              </td>
+            </tr>  
+          </#if>  
+          <tr>
+            <td>&nbsp;</td>    
+            <td>
+              <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+            </td>
+          </tr>    
+        </table>
+      </form>
+  </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/editprojectandassoc.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,245 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if project?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditSubProject}&nbsp;#${project.workEffortName?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddSubProject}</li>
+      </#if>
+    </ul>
+    <br class="clear" />
+  </div>
+  <div class="screenlet-body">
+    <#assign workEffortIdFrom = parameters.workEffortIdFrom>
+    <#if project?has_content>
+      <form name="addProjectAndAssocForm" method="get" action="<@ofbizUrl>updateProjectAndAssoc</@ofbizUrl>">
+    <#else>
+      <br/>  
+      <form name="addProjectAndAssocForm" method="get" action="<@ofbizUrl>createProjectAndAssoc</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0">
+          <tr>
+            <#if !(project?exists)>
+              <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+            <#else>
+              <td><input type="hidden" name="workEffortTypeId" value="${project.workEffortTypeId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortId" value="${project.workEffortId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortName" value="${project.workEffortName?if_exists}"/></td>
+            </#if>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.ProjectMgrWorkEffortIdFrom}</td>
+            <#assign workEffort=delegator.findByPrimaryKey("WorkEffort", Static["org.ofbiz.base.util.UtilMisc"].toMap("workEffortId", workEffortIdFrom?if_exists ))>                    
+            <td>${(workEffort.workEffortName)?if_exists} [${(workEffort.workEffortId)?if_exists}]<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</td>
+            <td><input type="hidden" name="workEffortIdFrom" value="${workEffortIdFrom?if_exists}"/>
+            <td><input type="hidden" name="workEffortParentId" value="${workEffortIdFrom?if_exists}"/></td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.ProjectMgrWorkEffortAssocTypeId}</td>
+            <td>
+              <select class="selectBox" name="workEffortAssocTypeId">
+                <#assign WorkEffortAssocTypes = delegator.findAll("WorkEffortAssocType", Static["org.ofbiz.base.util.UtilMisc"].toList("description"))>
+                <#list WorkEffortAssocTypes as WorkEffortAssocType>
+                  <option value="${WorkEffortAssocType.workEffortAssocTypeId?if_exists}">${WorkEffortAssocType.description?if_exists}</option>
+                </#list>
+              </select>  
+            </td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonSequenceNum}</td>
+            <td><input type="text" name="sequenceNum" value=""/></td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonFromDate}</td>
+            <td>
+              <input type="text" size="20" name="fromDate"/>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.fromDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonThruDate}</td>
+            <td>
+              <input type="text" size="20" name="thruDate"/>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.thruDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+            </td>
+          </tr>
+          <tr>
+            <td width="20%">
+              Enter the WorkEffort Details below
+            </td>
+          </tr>
+          <tr>    
+            <#if project?exists>
+              <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+              <td>${project.workEffortId?if_exists}</td>    
+            </#if>
+          </tr>
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonName}*</td>
+            <#if project?exists>
+              <td>${project.workEffortName?if_exists} <span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            <#else>
+              <td><input type="text" name="workEffortName" value=""/> <span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            </#if>
+          </tr>
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonDescription}</td>
+            <#if project?exists>
+              <td><input type="text" name="description" value="${project.description?if_exists}"/></td>
+            <#else>
+              <td><input type="text" name="description" value=""/></td>
+            </#if>
+          </tr>  
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonStatus}*</td>
+            <td>    
+              <select name="currentStatusId" class="selectBox">
+                <#if project?exists>
+                  <#assign currentStatusId = project.currentStatusId?if_exists>
+                  <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                  <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                    <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                    <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                  </#list>
+                <#else>
+                  <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                  <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                  <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                  <#list statusItemGenrals as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemTasks as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemEvents as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                  </#list>
+                </#if>        
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.CommonPriority}</td>
+            <td>
+              <#if project?has_content>
+                <#assign priority = project.priority?if_exists>      
+              </#if>
+              <select name="priority" class="selectBox" size="1">
+                <#if priority?exists>          
+                  <option SELECTED value="${priority}">${priority}</option>      
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                <#else>
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                </#if>
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+            <td>            
+              <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+              <select name="scopeEnumId" class="selectBox">
+                <#if project?exists>
+                  <#assign scopeEnumId = project.scopeEnumId?if_exists>            
+                  <#list enumerations as enumeration>                    
+                    <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                  </#list>
+                <#else>
+                  <#list enumerations as enumeration>                    
+                    <option value="${enumeration.enumId}">${enumeration.description}</option>
+                  </#list>    
+                </#if>    
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+            <td>
+              <#if project?exists>
+                 <input type="text" name="estimatedStartDate" value="${project.estimatedStartDate?if_exists}"/>
+              <#else>
+                <input type="text" name="estimatedStartDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>    
+          <tr>
+            <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+            <td>
+              <#if project?exists>
+                <input type="text" name="estimatedCompletionDate" value="${project.estimatedCompletionDate?if_exists}"/>
+              <#else>
+                <input type="text" name="estimatedCompletionDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+            <td>
+              <#if project?exists>
+                <input type="text" name="actualStartDate" value="${project.actualStartDate?if_exists}"/>
+              <#else>
+                <input type="text" name="actualStartDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+            <td>
+              <#if project?exists>
+                <input type="text" name="actualCompletionDate" value="${project.actualCompletionDate?if_exists}"/>
+              <#else>
+                <input type="text" name="actualCompletionDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>    
+          <tr>
+            <td>&nbsp;</td>    
+            <td>
+              <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+            </td>
+          </tr>    
+        </table>    
+      </form>
+  </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,210 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if task?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditTask}&nbsp;#${task.workEffortId?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddTask}</li>
+      </#if>  
+    </ul>
+    <br class="clear" />
+  </div>  
+  <div class="screenlet-body">
+    <#if task?has_content>    
+      <a href="<@ofbizUrl>EditTask?DONE_PAGE=${donePage}</@ofbizUrl>"></a>
+      <form name="editTaskForm" action="<@ofbizUrl>updateTask</@ofbizUrl>">
+    <#else>
+      <form name="editTaskForm" action="<@ofbizUrl>createTask</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0" border="1">
+          <tr>
+            <#if !(task?exists)>
+              <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+            <#else>
+              <td><input type="hidden" name="workEffortTypeId" value="${task.workEffortTypeId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortId" value="${task.workEffortId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortName" value="${task.workEffortName?if_exists}"/></td>
+            </#if>
+          </tr>
+          <#if task?exists>
+            <tr>
+              <td class="label" >${uiLabelMap.ProjectMgrWorkEffortIdFrom}</td>            
+              <td>${(workEffort.workEffortName)?if_exists} [${(workEffort.workEffortId)?if_exists}]<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</td>
+              <td><input type="hidden" name="workEffortIdFrom" value="${workEffortIdFrom?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortParentId" value="${workEffortIdFrom?if_exists}"/></td>
+            </tr>
+          </#if>
+          <tr>    
+            <#if task?exists>
+              <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+              <td>${task.workEffortId?if_exists}</td>    
+            </#if>
+          </tr>    
+          <tr>
+            <td class="label" >${uiLabelMap.CommonName}*</td>
+            <#if task?exists>
+              <td>${task.workEffortName?if_exists} <span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            <#else>
+              <td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            </#if>
+          </tr>
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonDescription}</td>
+            <#if task?exists>
+              <td><input type="text" name="description" value="${task.description?if_exists}"/></td>
+            <#else>
+              <td><input type="text" name="description" value=""/></td>
+            </#if>
+          </tr>  
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonStatus}</td>
+            <td>          
+              <select name="currentStatusId" class="selectBox">
+              <#if task?exists>
+                <#assign currentStatusId = task.currentStatusId?if_exists>
+                <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                  <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                  <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                </#list>
+              <#else>
+                <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                <#list statusItemGenrals as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                </#list>                
+                <#list statusItemTasks as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                </#list>                
+                <#list statusItemEvents as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                </#list>
+              </#if>        
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.CommonPriority}</td>
+          <td>
+            <#if task?has_content>
+              <#assign priority = task.priority?if_exists>      
+            </#if>
+            <select name="priority" class="selectBox" size="1">
+              <#if priority?exists>          
+                <option SELECTED value="${priority}">${priority}</option>      
+                <option></option>
+                <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                <option value=2>2</option>
+                <option value=3>3</option>
+                <option value=4>4</option>
+                <option value=5>5</option>
+                <option value=6>6</option>
+                <option value=7>7</option>
+                <option value=8>8</option>
+                <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+              <#else>
+                <option></option>
+                <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                <option value=2>2</option>
+                <option value=3>3</option>
+                <option value=4>4</option>
+                <option value=5>5</option>
+                <option value=6>6</option>
+                <option value=7>7</option>
+                <option value=8>8</option>
+                <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+              </#if>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+          <td>            
+            <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+            <select name="scopeEnumId" class="selectBox">
+              <#if task?exists>
+                <#assign scopeEnumId = task.scopeEnumId?if_exists>            
+                <#list enumerations as enumeration>                    
+                  <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                </#list>
+              <#else>
+                <#list enumerations as enumeration>                    
+                  <option value="${enumeration.enumId}">${enumeration.description}</option>
+                </#list>    
+              </#if>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+          <td>
+            <#if task?exists>
+              <input type="text" name="estimatedStartDate" value="${task.estimatedStartDate?if_exists}"/>
+            <#else>
+              <input type="text" name="estimatedStartDate" value=""/>
+            </#if>
+            <a href="javascript:call_cal(document.editTaskForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+          </td>
+        </tr>    
+        <tr>
+          <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+          <td>
+            <#if task?exists>
+              <input type="text" name="estimatedCompletionDate" value="${task.estimatedCompletionDate?if_exists}"/>
+            <#else>
+              <input type="text" name="estimatedCompletionDate" value=""/>
+           </#if>
+            <a href="javascript:call_cal(document.editTaskForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+          <td>
+            <#if task?exists>
+              <input type="text" name="actualStartDate" value="${task.actualStartDate?if_exists}"/>
+            <#else>
+              <input type="text" name="actualStartDate" value=""/>
+            </#if>
+            <a href="javascript:call_cal(document.editTaskForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+          <td>
+            <#if task?exists>
+              <input type="text" name="actualCompletionDate" value="${task.actualCompletionDate?if_exists}"/>
+            <#else>
+              <input type="text" name="actualCompletionDate" value=""/>
+            </#if>
+            <a href="javascript:call_cal(document.editTaskForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+          </td>
+        </tr>    
+        <tr><td>&nbsp;</td>    
+          <td>
+            <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+          </td>
+        </tr>    
+      </table>    
+    </form>
+  </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskandassoc.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,245 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if task?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditTask}&nbsp;#${project.workEffortId?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddTask}</li>
+      </#if>
+    </ul>
+    <br class="clear" />
+  </div>  
+  <div class="screenlet-body">
+    <#assign workEffortIdFrom = parameters.workEffortIdFrom>
+    <#if task?has_content>
+      <form name="addTaskAndAssocForm" method="get" action="<@ofbizUrl>updateTaskAndAssoc</@ofbizUrl>">
+    <#else>  
+      <br/>
+      <form name="addTaskAndAssocForm" method="get" action="<@ofbizUrl>createTaskAndAssoc</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0">
+        <tr>
+          <#if !(task?exists)>
+            <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+          <#else>
+            <td><input type="hidden" name="workEffortTypeId" value="${task.workEffortTypeId?if_exists}"/></td>
+            <td><input type="hidden" name="workEffortId" value="${task.workEffortId?if_exists}"/></td>
+            <td><input type="hidden" name="workEffortName" value="${task.workEffortName?if_exists}"/></td>
+          </#if>
+        </tr>    
+        <tr>
+          <td class="label" >${uiLabelMap.ProjectMgrWorkEffortIdFrom}</td>
+            <#assign workEffort=delegator.findByPrimaryKey("WorkEffort", Static["org.ofbiz.base.util.UtilMisc"].toMap("workEffortId", workEffortIdFrom?if_exists ))>                    
+            <td>${(workEffort.workEffortName)?if_exists} [${(workEffort.workEffortId)?if_exists}]<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</td>
+            <td><input type="hidden" name="workEffortIdFrom" value="${workEffortIdFrom?if_exists}"/></td>
+            <td><input type="hidden" name="workEffortParentId" value="${workEffortIdFrom?if_exists}"/></td>
+        </tr>
+        <tr>
+          <td class="label" >${uiLabelMap.ProjectMgrWorkEffortAssocTypeId}</td>
+          <td>
+            <select class="selectBox" name="workEffortAssocTypeId">
+              <#assign WorkEffortAssocTypes = delegator.findAll("WorkEffortAssocType", Static["org.ofbiz.base.util.UtilMisc"].toList("description"))>
+              <#list WorkEffortAssocTypes as WorkEffortAssocType>
+                <option value="${WorkEffortAssocType.workEffortAssocTypeId?if_exists}">${WorkEffortAssocType.description?if_exists}</option>
+              </#list>
+            </select>  
+          </td>
+        </tr>
+        <tr>
+          <td class="label" >${uiLabelMap.CommonSequenceNum}</td>
+          <td><input type="text" name="sequenceNum" value=""/></td>
+        </tr>
+        <tr>
+          <td class="label" >${uiLabelMap.CommonFromDate}</td>
+          <td>
+            <input type="text" size="20" name="fromDate"/>
+            <a href="javascript:call_cal(document.addProjectAndAssocForm.fromDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+          </td>
+        </tr>
+        <tr>
+          <td class="label" >${uiLabelMap.CommonThruDate}</td>
+          <td>
+            <input type="text" size="20" name="thruDate"/>
+            <a href="javascript:call_cal(document.addProjectAndAssocForm.thruDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+          </td>
+        </tr>
+        <tr>
+          <td width="20%">
+            Enter the WorkEffort Details below
+          </td>
+        </tr>
+        <tr>    
+          <#if task?exists>
+            <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+            <td>${task.workEffortId?if_exists}</td>    
+          </#if>
+        </tr>    
+        <tr>
+          <td class="label" >${uiLabelMap.CommonName}*</td>
+            <#if task?exists>
+              <td>${task.workEffortName?if_exists}<span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            <#else>
+              <td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            </#if>
+        </tr>
+        <tr>    
+          <td class="label" >${uiLabelMap.CommonDescription}</td>
+            <#if task?exists>
+              <td><input type="text" name="description" value="${task.description?if_exists}"/></td>
+            <#else>
+              <td><input type="text" name="description" value=""/></td>
+          </#if>
+        </tr>  
+        <tr>    
+          <td class="label" >${uiLabelMap.CommonStatus}</td>
+          <td>    
+            <select name="currentStatusId" class="selectBox">
+              <#if task?exists>
+                <#assign currentStatusId = task.currentStatusId?if_exists>
+                <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                  <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                  <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                </#list>
+              <#else>
+                <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                <#list statusItemGenrals as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                </#list>                
+                <#list statusItemTasks as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                </#list>                
+                <#list statusItemEvents as statusItem>
+                  <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                </#list>
+              </#if>        
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.CommonPriority}</td>
+          <td>
+            <#if task?has_content>
+              <#assign priority = task.priority?if_exists>      
+            </#if>
+            <select name="priority" class="selectBox" size="1">
+              <#if priority?exists>          
+                <option SELECTED value="${priority}">${priority}</option>      
+                <option></option>
+                <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                <option value=2>2</option>
+                <option value=3>3</option>
+                <option value=4>4</option>
+                <option value=5>5</option>
+                <option value=6>6</option>
+                <option value=7>7</option>
+                <option value=8>8</option>
+                <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+              <#else>
+                <option></option>
+                <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                <option value=2>2</option>
+                <option value=3>3</option>
+                <option value=4>4</option>
+                <option value=5>5</option>
+                <option value=6>6</option>
+                <option value=7>7</option>
+                <option value=8>8</option>
+                <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+              </#if>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+          <td>            
+            <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+            <select name="scopeEnumId" class="selectBox">
+              <#if task?exists>
+                <#assign scopeEnumId = task.scopeEnumId?if_exists>            
+                <#list enumerations as enumeration>                    
+                  <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                </#list>
+              <#else>
+                <#list enumerations as enumeration>                    
+                  <option value="${enumeration.enumId}">${enumeration.description}</option>
+                </#list>    
+              </#if>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+          <td>
+            <#if task?exists>
+              <input type="text" name="estimatedStartDate" value="${task.estimatedStartDate?if_exists}"/>
+            <#else>
+              <input type="text" name="estimatedStartDate" value=""/>
+            </#if>
+            <a href="javascript:call_cal(document.addTaskAndAssocForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+          </td>
+         </tr>    
+         <tr>
+           <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+           <td>
+             <#if task?exists>
+               <input type="text" name="estimatedCompletionDate" value="${task.estimatedCompletionDate?if_exists}"/>
+             <#else>
+               <input type="text" name="estimatedCompletionDate" value=""/>
+             </#if>
+             <a href="javascript:call_cal(document.addTaskAndAssocForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+           </td>
+         </tr>
+         <tr>
+           <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+           <td>
+             <#if task?exists>
+               <input type="text" name="actualStartDate" value="${task.actualStartDate?if_exists}"/>
+             <#else>
+               <input type="text" name="actualStartDate" value=""/>
+             </#if>
+             <a href="javascript:call_cal(document.addTaskAndAssocForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+           </td>
+         </tr>
+         <tr>
+           <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+           <td>
+             <#if task?exists>
+               <input type="text" name="actualCompletionDate" value="${task.actualCompletionDate?if_exists}"/>
+             <#else>
+               <input type="text" name="actualCompletionDate" value=""/>
+             </#if>
+             <a href="javascript:call_cal(document.addTaskAndAssocForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+           </td>
+         </tr>    
+         <tr>
+           <td>&nbsp;</td>    
+           <td>
+             <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+           </td>
+         </tr>    
+       </table>
+     </form>
+   </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklist.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklist.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklist.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklist.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,245 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if task?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditTask}&nbsp;#${task.workEffortId?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddTask}</li>
+      </#if>
+    </ul>
+    <br class="clear" />
+  </div>  
+  <div class="screenlet-body">
+    <#if task?has_content>
+      <a href="<@ofbizUrl>EditTaskList?DONE_PAGE=${donePage}</@ofbizUrl>"></a>
+      <form name="editTaskForm" action="<@ofbizUrl>updateTaskListandAssoc</@ofbizUrl>">
+    <#else>
+      <form name="editTaskForm" action="<@ofbizUrl>createTaskList</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0" border="0">
+          <tr>
+            <#if !(task?exists)>
+              <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+            <#else>
+              <td><input type="hidden" name="workEffortTypeId" value="${task.workEffortTypeId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortId" value="${task.workEffortId?if_exists}"/></td>  
+              <td><input type="hidden" name="workEffortName" value="${task.workEffortName?if_exists}"/></td>
+            </#if>
+          </tr>
+          <#if task?has_content>
+            <tr>
+              <td><div class="head1">${uiLabelMap.PageTitleAddTask}</div></td>
+              <td><div class="headtext">${uiLabelMap.WorkEffortAssociatedFromParentToChild}</div></td>  
+              </tr>
+              <tr>
+                <td class="label" >${uiLabelMap.ProjectMgrWorkEffortIdFrom}<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</td>
+                <td>
+                  <input type="text" size="20"  name="workEffortIdFrom">
+                  <a href="javascript:call_fieldlookup2(document.editTaskForm.workEffortIdFrom,'LookupWorkEffort');"><img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt='Click here For Field Lookup'/></a></td>
+                </td>
+              </tr>
+              <tr>
+                <td class="label" >${uiLabelMap.ProjectMgrWorkEffortAssocTypeId}</td>
+                <td>
+                  <select class="selectBox" name="workEffortAssocTypeId">
+                    <#assign WorkEffortAssocTypes = delegator.findAll("WorkEffortAssocType", Static["org.ofbiz.base.util.UtilMisc"].toList("description"))>
+                    <#list WorkEffortAssocTypes as WorkEffortAssocType>
+                      <option value="${WorkEffortAssocType.workEffortAssocTypeId?if_exists}">${WorkEffortAssocType.description?if_exists}</option>
+                    </#list>
+                  </select>  
+                </td>
+              </tr>
+              <tr>
+                <td class="label" >${uiLabelMap.CommonSequenceNum}</td>
+                <td><input type="text" name="sequenceNum" value=""/></td>
+              </tr>
+              <tr>
+                <td class="label" >${uiLabelMap.CommonFromDate}</td>
+                <td>
+                  <input type="text" size="20" name="fromDate"/>
+                  <a href="javascript:call_cal(document.addProjectAndAssocForm.fromDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+                </td>
+              </tr>
+              <tr>
+                <td class="label" >${uiLabelMap.CommonThruDate}</td>
+                <td>
+                  <input type="text" size="20" name="thruDate"/>
+                  <a href="javascript:call_cal(document.addProjectAndAssocForm.thruDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+                </td>
+              </tr>
+            </#if>  
+            <tr>    
+              <#if task?exists>
+                <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+                <td>${task.workEffortId?if_exists}</td>    
+              </#if>
+            </tr>    
+            <tr>
+              <td class="label" >${uiLabelMap.CommonName}*</td>
+              <#if task?exists>
+                <td>${task.workEffortName?if_exists} <span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+              <#else>
+                <td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+              </#if>
+            </tr>
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonDescription}</td>
+              <#if task?exists>
+                <td><input type="text" name="description" value="${task.description?if_exists}"/></td>
+              <#else>
+                <td><input type="text" name="description" value=""/></td>
+              </#if>
+            </tr>  
+            <tr>    
+              <td class="label" >${uiLabelMap.CommonStatus}</td>
+              <td>    
+                <select name="currentStatusId" class="selectBox">
+                  <#if task?exists>
+                    <#assign currentStatusId = task.currentStatusId?if_exists>
+                    <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                    <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                      <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                      <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                    </#list>
+                  <#else>
+                    <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                    <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                    <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                    <#list statusItemGenrals as statusItem>
+                      <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                    </#list>                
+                    <#list statusItemTasks as statusItem>
+                      <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                    </#list>                
+                    <#list statusItemEvents as statusItem>
+                      <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                    </#list>
+                  </#if>        
+                </select>
+              </td>
+             </tr>
+             <tr>
+               <td class="label">${uiLabelMap.CommonPriority}</td>
+               <td>
+                 <#if task?has_content>
+                   <#assign priority = task.priority?if_exists>      
+                 </#if>
+                 <select name="priority" class="selectBox" size="1">
+                   <#if priority?exists>          
+                     <option SELECTED value="${priority}">${priority}</option>      
+                     <option></option>
+                     <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                     <option value=2>2</option>
+                     <option value=3>3</option>
+                     <option value=4>4</option>
+                     <option value=5>5</option>
+                     <option value=6>6</option>
+                     <option value=7>7</option>
+                     <option value=8>8</option>
+                     <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                   <#else>
+                     <option></option>
+                     <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                     <option value=2>2</option>
+                     <option value=3>3</option>
+                     <option value=4>4</option>
+                     <option value=5>5</option>
+                     <option value=6>6</option>
+                     <option value=7>7</option>
+                     <option value=8>8</option>
+                     <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                   </#if>
+                 </select>
+               </td>
+             </tr>
+             <tr>
+               <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+               <td>            
+                 <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+                 <select name="scopeEnumId" class="selectBox">
+                   <#if task?exists>
+                     <#assign scopeEnumId = task.scopeEnumId?if_exists>            
+                     <#list enumerations as enumeration>                    
+                       <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                     </#list>
+                   <#else>
+                     <#list enumerations as enumeration>                    
+                       <option value="${enumeration.enumId}">${enumeration.description}</option>
+                     </#list>    
+                   </#if>
+                 </select>
+               </td>
+             </tr>
+             <tr>
+               <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+               <td>
+                 <#if task?exists>
+                   <input type="text" name="estimatedStartDate" value="${task.estimatedStartDate?if_exists}"/>
+                 <#else>
+                   <input type="text" name="estimatedStartDate" value=""/>
+                 </#if>
+                 <a href="javascript:call_cal(document.editTaskForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+               </td>
+             </tr>    
+             <tr>
+               <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+               <td>
+                 <#if task?exists>
+                   <input type="text" name="estimatedCompletionDate" value="${task.estimatedCompletionDate?if_exists}"/>
+                 <#else>
+                   <input type="text" name="estimatedCompletionDate" value=""/>
+                 </#if>
+                 <a href="javascript:call_cal(document.editTaskForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+               </td>
+             </tr>
+             <tr>
+               <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+               <td>
+                 <#if task?exists>
+                   <input type="text" name="actualStartDate" value="${task.actualStartDate?if_exists}"/>
+                 <#else>
+                   <input type="text" name="actualStartDate" value=""/>
+                 </#if>
+                 <a href="javascript:call_cal(document.editTaskForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+               </td>
+             </tr>
+             <tr>
+               <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+               <td>
+                 <#if task?exists>
+                   <input type="text" name="actualCompletionDate" value="${task.actualCompletionDate?if_exists}"/>
+                 <#else>
+                   <input type="text" name="actualCompletionDate" value=""/>
+                 </#if>
+                 <a href="javascript:call_cal(document.editTaskForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+               </td>
+             </tr>    
+             <tr>
+               <td>&nbsp;</td>    
+               <td>
+                 <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+               </td>
+             </tr>    
+          </table>    
+       </form>
+  </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittasklistandassoc.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,243 @@
+<#--
+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.
+-->
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <#if task?has_content>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleEditSubTask}&nbsp;#${project.workEffortId?if_exists} ${uiLabelMap.CommonInformation}</li>
+      <#else>
+        <li class="head3">&nbsp;${uiLabelMap.PageTitleAddSubTask}</li>
+      </#if>
+    </ul>
+    <br class="clear" />
+  </div>  
+  <div class="screenlet-body">
+    <#if task?has_content>
+      <form name="addTaskAndAssocForm" method="get" action="<@ofbizUrl>updateTaskListAndAssoc</@ofbizUrl>">
+    <#else>
+      <form name="addTaskAndAssocForm" method="get" action="<@ofbizUrl>createTaskListAndAssoc</@ofbizUrl>">
+    </#if>
+        <table width="100%" cellpadding="2" cellspacing="0">
+          <tr>
+            <#if !(task?exists)>
+              <td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
+            <#else>
+              <td><input type="hidden" name="workEffortTypeId" value="${task.workEffortTypeId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortId" value="${task.workEffortId?if_exists}"/></td>
+              <td><input type="hidden" name="workEffortName" value="${task.workEffortName?if_exists}"/></td>
+            </#if>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.ProjectMgrWorkEffortIdFrom}</td>
+            <#assign workEffort=delegator.findByPrimaryKey("WorkEffort", Static["org.ofbiz.base.util.UtilMisc"].toMap("workEffortId", workEffortIdFrom?if_exists ))>                    
+            <td>${(workEffort.workEffortName)?if_exists} [${(workEffort.workEffortId)?if_exists}]<span class="tooltip">${uiLabelMap.CommonNotModifRecreat}</td>
+            <td><input type="hidden" name="workEffortIdFrom" value="${workEffortIdFrom?if_exists}"/></td>
+            <td><input type="hidden" name="workEffortParentId" value="${workEffortIdFrom?if_exists}"/></td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.ProjectMgrWorkEffortAssocTypeId}</td>
+            <td>
+              <select class="selectBox" name="workEffortAssocTypeId">
+                <#assign WorkEffortAssocTypes = delegator.findAll("WorkEffortAssocType", Static["org.ofbiz.base.util.UtilMisc"].toList("description"))>
+                <#list WorkEffortAssocTypes as WorkEffortAssocType>
+                  <option value="${WorkEffortAssocType.workEffortAssocTypeId?if_exists}">${WorkEffortAssocType.description?if_exists}</option>
+                </#list>
+              </select>  
+            </td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonSequenceNum}</td>
+            <td><input type="text" name="sequenceNum" value=""/></td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonFromDate}</td>
+            <td>
+              <input type="text" size="20" name="fromDate"/>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.fromDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label" >${uiLabelMap.CommonThruDate}</td>
+            <td>
+              <input type="text" size="20" name="thruDate"/>
+              <a href="javascript:call_cal(document.addProjectAndAssocForm.thruDate, '${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+            </td>
+          </tr>
+          <tr>
+            <td width="20%">
+              Enter the WorkEffort Details below
+            </td>
+          </tr>
+          <tr>    
+            <#if task?exists>
+              <td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>    
+              <td>${task.workEffortId?if_exists}</td>
+            </#if>
+          </tr>    
+          <tr>
+            <td class="label" >${uiLabelMap.CommonName}*</td>
+            <#if task?exists>
+              <td>${task.workEffortName?if_exists}</td>
+            <#else>
+              <td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+            </#if>
+          </tr>
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonDescription}</td>
+            <#if task?exists>
+              <td><input type="text" name="description" value="${task.description?if_exists}"/></td>
+            <#else>
+              <td><input type="text" name="description" value=""/></td>
+            </#if>
+          </tr>  
+          <tr>    
+            <td class="label" >${uiLabelMap.CommonStatus}</td>
+            <td>    
+              <select name="currentStatusId" class="selectBox">
+                <#if task?exists>
+                  <#assign currentStatusId = task.currentStatusId?if_exists>
+                  <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                  <#list statusValidChangeToDetailList as statusValidChangeToDetail>
+                    <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
+                    <option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
+                  </#list>
+                <#else>
+                  <#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
+                  <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
+                  <#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
+                  <#list statusItemGenrals as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemTasks as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
+                  </#list>                
+                  <#list statusItemEvents as statusItem>
+                    <option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
+                  </#list>
+                </#if>        
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.CommonPriority}</td>
+            <td>
+              <#if task?has_content>
+                <#assign priority = task.priority?if_exists>      
+              </#if>
+              <select name="priority" class="selectBox" size="1">
+                <#if priority?exists>          
+                  <option SELECTED value="${priority}">${priority}</option>      
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                <#else>
+                  <option></option>
+                  <option value=1>1 (${uiLabelMap.WorkEffortPriorityHigh})</option>
+                  <option value=2>2</option>
+                  <option value=3>3</option>
+                  <option value=4>4</option>
+                  <option value=5>5</option>
+                  <option value=6>6</option>
+                  <option value=7>7</option>
+                  <option value=8>8</option>
+                  <option value=9>9 (${uiLabelMap.WorkEffortPriorityLow})</option>
+                </#if>
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.ProjectMgrWorkEffortScopeEnumId}</td>
+            <td>            
+              <#assign enumerations = delegator.findByAnd("Enumeration", Static["org.ofbiz.base.util.UtilMisc"].toMap("enumTypeId", "WORK_EFF_SCOPE"))>
+              <select name="scopeEnumId" class="selectBox">
+                <#if task?exists>
+                  <#assign scopeEnumId = task.scopeEnumId?if_exists>            
+                  <#list enumerations as enumeration>                    
+                    <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                  </#list>
+                <#else>
+                  <#list enumerations as enumeration>                    
+                    <option value="${enumeration.enumId}">${enumeration.description}</option>
+                  </#list>    
+                </#if>
+              </select>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
+            <td>
+              <#if task?exists>
+                <input type="text" name="estimatedStartDate" value="${task.estimatedStartDate?if_exists}"/>
+              <#else>
+                <input type="text" name="estimatedStartDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addTaskAndAssocForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>    
+          <tr>
+            <td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
+            <td>
+              <#if task?exists>
+                <input type="text" name="estimatedCompletionDate" value="${task.estimatedCompletionDate?if_exists}"/>
+              <#else>
+                <input type="text" name="estimatedCompletionDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addTaskAndAssocForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
+            <td>
+              <#if task?exists>
+                <input type="text" name="actualStartDate" value="${task.actualStartDate?if_exists}"/>
+              <#else>
+                <input type="text" name="actualStartDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addTaskAndAssocForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>
+          <tr>
+            <td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
+            <td>
+              <#if task?exists>
+                <input type="text" name="actualCompletionDate" value="${task.actualCompletionDate?if_exists}"/>
+              <#else>
+                <input type="text" name="actualCompletionDate" value=""/>
+              </#if>
+              <a href="javascript:call_cal(document.addTaskAndAssocForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
+            </td>
+          </tr>    
+          <tr>
+            <td>&nbsp;</td>    
+            <td>
+              <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+            </td>
+          </tr>    
+        </table>
+      </form>
+  </div>
+</div>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskskills.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskskills.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskskills.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittaskskills.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,55 @@
+<#--
+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.
+-->
+<div class="head1">${uiLabelMap.PageTitleAddSkill}</div></td>  
+<form name="editTaskSkillForm" action="<@ofbizUrl>createTaskSkillStandard</@ofbizUrl>">
+  <table width="100%" cellpadding="2" cellspacing="0" border="1">
+    <tr>
+      <td><input type="hidden" name="workEffortId" value="${parameters.workEffortId?if_exists}"/></td>
+    </tr>
+    <tr>
+      <td class="label">${uiLabelMap.ProjectMgrSkillType}</td>
+      <td>            
+        <select name="skillTypeId" class="selectBox">  
+          <#assign skillTypes = delegator.findAll("SkillType")>
+          <#list skillTypes as skillType>                    
+            <option value="${skillType.skillTypeId}">${skillType.description}</option>
+          </#list>    
+        </select><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
+      </td>
+    </tr>
+    <tr>    
+      <td class="label" >${uiLabelMap.ProjectMgrEstimatedNumPeople}</td>
+      <td><input type="text" name="estimatedNumPeople" value=""/></td>
+    </tr>
+    <tr>    
+      <td class="label" >${uiLabelMap.ProjectMgrEstimatedDuration}</td>
+      <td><input type="text" name="estimatedDuration" value=""/></td>
+    </tr>
+    <tr>    
+      <td class="label" >${uiLabelMap.ProjectMgrEstimatedCost}</td>
+      <td><input type="text" name="estimatedCost" value=""/></td>
+    </tr>  
+    <tr>
+      <td>&nbsp;</td>    
+      <td>
+        <input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
+      </td>
+    </tr>    
+  </table>    
+</form>

Added: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/findtasks.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/findtasks.ftl?rev=574051&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/findtasks.ftl (added)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/findtasks.ftl Sun Sep  9 12:02:11 2007
@@ -0,0 +1,82 @@
+<#--
+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.
+-->
+<script language="JavaScript" type="text/javascript">
+<!-- //
+function lookupTasks(click) {    
+    document.lookupTask.action = "<@ofbizUrl>FindTask</@ofbizUrl>";    
+    if (click) {
+        document.lookupTask.submit();
+    }
+    return true;
+}
+// -->
+</script>
+
+<div class="screenlet">
+  <div class="screenlet-title-bar">
+    <ul>
+      <li class="head3">Find Task</li>
+    </ul>
+    <br class="clear" />
+  </div>  
+  <div class="screenlet-body">
+    <form method="post" name="lookupTask" action="<@ofbizUrl>FindTask?workEffortTypeId=TASK&findAll=Y</@ofbizUrl>">
+      <table width="">
+        <tr>
+          <td><input type="hidden" name="workEffortIdFrom" value="${parameters.workEffortIdFrom?if_exists}"/></td>          
+          <td><input type="hidden" name="workEffortAssocTypeId" value="${parameters.workEffortAssocTypeId?if_exists}"/></td>
+        </tr>
+        <tr>
+          <td><b>To Find Task Give Range</b></td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.CommonFromDate}</td>
+          <td>
+            <input type="text" size="20" name="fromDate" class="field text">
+             <a href="javascript:call_cal(document.lookupTask.fromDate, null);"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+          </td>
+          <td>&nbsp;</td>
+        </tr>
+        <tr>
+          <td align="right">${uiLabelMap.CommonThruDate}</td>
+          <td>
+            <input type="text" size="20" name="thruDate" class="field text">
+            <a href="javascript:call_cal(document.lookupTask.thruDate, null);"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+          </td>
+          <td>&nbsp;</td>
+        </tr>        
+        <tr>
+          <td>&nbsp;</td>
+          <td align="left">
+            <a href="javascript:document.lookupTask.submit()" class="buttontext">${uiLabelMap.CommonFind}</a>
+          </td>
+        </tr>
+        <tr><td>&nbsp;</td></tr>
+        <tr>
+          <td>
+            <div class='tableheadtext'>${uiLabelMap.ProjectMgrFilterOn} ${uiLabelMap.ProjectMgrTaskNotAssignedPhase}</div>
+          </td>          
+          <td>            
+            <input type="checkbox" name="filterTaskNotAssigned" value="Y" onclick="javascript:lookupTasks(true);"/>
+          </td>
+        </tr>                        
+      </table>
+    </form>
+  </div>
+</div>