Author: ashish
Date: Thu May 7 11:37:38 2009
New Revision: 772619
URL:
http://svn.apache.org/viewvc?rev=772619&view=revLog:
So here is the updated fix to use _index feature of Freemarker.
First reported by Divesh, then Scott on dev mailing list and then reported by Pranay. (Seen comments from three in only 5 minute :( ... )
Thanks you guys to see such commits and report it immediately.
Modified:
ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl
Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl?rev=772619&r1=772618&r2=772619&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/survey/ListSurveys.ftl Thu May 7 11:37:38 2009
@@ -33,21 +33,19 @@
<td> </td>
<td> </td>
</tr>
- <#assign line = 0>
<#list workEffortSurveyAppls as workEffortSurveyAppl>
- <#assign line = line + 1>
<#if workEffortSurveyAppl?has_content>
<#assign productStoreSurveyAppls = workEffortSurveyAppl.getRelated("ProductStoreSurveyAppl")>
<#list productStoreSurveyAppls as productStoreSurveyAppl>
<#if productStoreSurveyAppl?has_content>
<#assign survey = productStoreSurveyAppl.getRelatedOne("Survey")>
- <form method="post" action="<@ofbizUrl>updateWorkEffortSurveyAppl</@ofbizUrl>" name="editWorkEffortSurveyAppl${line}">
+ <form method="post" action="<@ofbizUrl>updateWorkEffortSurveyAppl</@ofbizUrl>" name="editWorkEffortSurveyAppl_${workEffortSurveyAppl_index}">
<tr>
<td><a href="/content/control/EditSurvey?surveyId=${workEffortSurveyAppl.surveyId?if_exists}" class="buttontext">${workEffortSurveyAppl.surveyId?if_exists} - ${survey.surveyName?if_exists}</a></td>
<td>${workEffortSurveyAppl.fromDate?if_exists}</td>
<td>
<input type="text" size="20" name="thruDate" value="${(workEffortSurveyAppl.thruDate)?if_exists}" <#if isReadable?exists> readonly="readonly"</#if>>
- <a href="javascript:call_cal(document.editWorkEffortSurveyAppl${line}.thruDate, '${nowTimeStampString}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
+ <a href="javascript:call_cal(document.editWorkEffortSurveyAppl_${workEffortSurveyAppl_index}.thruDate, '${nowTimeStampString}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"></a>
</td>
<td><a href="<@ofbizUrl>testWorkEffortSurvey?productStoreSurveyId=${productStoreSurveyAppl.productStoreSurveyId?if_exists}&workEffortId=${workEffortSurveyAppl.workEffortId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceTakeSurvey}</a></td>
<#if !isReadable?exists>