Author: hansbak
Date: Mon Dec 19 06:29:51 2011
New Revision: 1220619

URL: http://svn.apache.org/viewvc?rev=1220619&view=rev
Log:
add a download button when the ordered item when a downloadable file

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl?rev=1220619&r1=1220618&r2=1220619&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl 
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl Mon Dec 
19 06:29:51 2011
@@ -81,6 +81,12 @@ under the License.
                                         </#if>
                                     </div>
                                     <div style="float:right;">
+                                        <#assign downloadContents = 
delegator.findByAnd("OrderItemAndProductContentInfo", {"orderId" : orderId, 
"orderItemSeqId" : orderItem.orderItemSeqId, "productContentTypeId" : 
"DIGITAL_DOWNLOAD", "statusId" : "ITEM_COMPLETED"})/>
+                                        <#if downloadContents?has_content>
+                                            <#list downloadContents as 
downloadContent>
+                                                <a 
href="/content/control/ViewSimpleContent?contentId=${downloadContent.contentId}"
 class="buttontext" target="_blank">${uiLabelMap.ContentDownload}</a>&nbsp;
+                                            </#list>
+                                        </#if>
                                         <a 
href="/catalog/control/EditProduct?productId=${productId}${externalKeyParam}" 
class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
                                         <a 
href="/ecommerce/control/product?product_id=${productId}" class="buttontext" 
target="_blank">${uiLabelMap.OrderEcommerce}</a>
                                         <#if 
orderItemContentWrapper.get("IMAGE_URL")?has_content>


Reply via email to