You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ap...@apache.org on 2009/08/02 11:17:25 UTC
svn commit: r800009 -
/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/ContentList.ftl
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="<@o...@ofbizUrl>">${uiLabelMap.CommonView}</a>
</#if>
- <a href="<@o...@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
+ <form name= "removePartyContent_o_${rowCount}" method= "post" action= "<@o...@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>