You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/10/03 09:48:11 UTC
svn commit: r821263 -
/ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl
Author: jleroux
Date: Sat Oct 3 07:48:11 2009
New Revision: 821263
URL: http://svn.apache.org/viewvc?rev=821263&view=rev
Log:
A patch from Rohit Jain "In Content Manager component Remove Survey question link of Edit survey question page is showing error." (https://issues.apache.org/jira/browse/OFBIZ-2993) - OFBIZ-2993
Part of Main task for securing URLs in Freemarker templates files (OFBIZ-2330)
Modified:
ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl
Modified: ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl?rev=821263&r1=821262&r2=821263&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/survey/EditSurveyQuestions.ftl Sat Oct 3 07:48:11 2009
@@ -53,11 +53,12 @@
<#else/>
<#assign currentSurveyMultiRespColumns = []/>
</#if>
- <form method="post" action="<@o...@ofbizUrl>">
- <input type="hidden" name="surveyId" value="${surveyQuestionAndAppl.surveyId}">
- <input type="hidden" name="surveyQuestionId" value="${surveyQuestionAndAppl.surveyQuestionId}">
- <input type="hidden" name="fromDate" value="${surveyQuestionAndAppl.fromDate}">
+
<tr<#if alt_row> class="alternate-row"</#if>>
+ <form method="post" action="<@o...@ofbizUrl>">
+ <input type="hidden" name="surveyId" value="${surveyQuestionAndAppl.surveyId}" />
+ <input type="hidden" name="surveyQuestionId" value="${surveyQuestionAndAppl.surveyQuestionId}" />
+ <input type="hidden" name="fromDate" value="${surveyQuestionAndAppl.fromDate}" />
<td>${surveyQuestionAndAppl.surveyQuestionId}</td>
<td>${questionType.get("description",locale)}</td>
<td>${(questionCat.description)?if_exists}</td>
@@ -116,9 +117,16 @@
<td><input type="text" name="withSurveyOptionSeqId" size="5" value="${surveyQuestionAndAppl.withSurveyOptionSeqId?if_exists}"/></td>
<td><input type="submit" value="${uiLabelMap.CommonUpdate}" class="smallSubmit"/></td>
<td><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonEdit} ${uiLabelMap.ContentSurveyQuestion}</a></td>
- <td><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonRemove}</a></td>
+ </form>
+ <td>
+ <form id="removeSurveyQuestion_${surveyQuestionAndAppl.surveyQuestionId}" action="<@o...@ofbizUrl>" method="post">
+ <input type="hidden" name="surveyId" value="${surveyQuestionAndAppl.surveyId}" />
+ <input type="hidden" name="surveyQuestionId" value="${surveyQuestionAndAppl.surveyQuestionId}" />
+ <input type="hidden" name="fromDate" value="${surveyQuestionAndAppl.fromDate}" />
+ <a href="javascript:$('removeSurveyQuestion_${surveyQuestionAndAppl.surveyQuestionId}').submit();"" class="buttontext">${uiLabelMap.CommonRemove}</a>
+ </form>
+ </td>
</tr>
- </form>
<#assign alt_row = !alt_row>
</#list>
</table>