Author: apatel
Date: Sun Aug 2 09:17:23 2009
New Revision: 800009
URL: http://svn.apache.org/viewvc?rev=800009&view=rev
Log:
Fix remove button on PartyProfile content list portlet. Patch from OFBIZ-2725.
Thanks Chris Show for reporting and Ahmed Dini for fix patch.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl?rev=800009&r1=800008&r2=800009&view=diff
==============================================================================
---
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl
(original)
+++
ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl
Sun Aug 2 09:17:23 2009
@@ -21,6 +21,7 @@
<div id="partyContentList">
<#if partyContent?has_content>
<table class="basic-table" cellspacing="0">
+ <#assign rowCount = 0>
<#list partyContent as pContent>
<#assign content = pContent.getRelatedOne("Content")>
<#assign contentType = content.getRelatedOneCache("ContentType")>
@@ -39,9 +40,16 @@
<#if (content.contentName?has_content)>
<a
href="<@ofbizUrl>img/${content.contentName}?imgId=${content.dataResourceId}</@ofbizUrl>">${uiLabelMap.CommonView}</a>
</#if>
- <a
href="<@ofbizUrl>removePartyContent/viewprofile?contentId=${pContent.contentId}&partyId=${pContent.partyId}&partyContentTypeId=${pContent.partyContentTypeId}&fromDate=${pContent.fromDate}</@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
+ <form name= "removePartyContent_o_${rowCount}" method= "post"
action= "<@ofbizUrl>removePartyContent/viewprofile</@ofbizUrl>">
+ <input type= "hidden" name= "contentId" value=
"${pContent.contentId}">
+ <input type= "hidden" name= "partyId" value=
"${pContent.partyId}">
+ <input type= "hidden" name= "partyContentTypeId" value=
"${pContent.partyContentTypeId}">
+ <input type= "hidden" name= "fromDate" value=
"${pContent.fromDate}">
+ <a
href="javascript:document.removePartyContent_o_${rowCount}.submit()">${uiLabelMap.CommonRemove}</a>
+ </form>
</td>
</tr>
+ <#assign rowCount = rowCount + 1>
</#list>
</table>
<#else>