Fixed: Add button for 'Gift Message is shown on completed order
Thanks: Pierre Smits for report and Shivanand Chhatre for the fix.
@@ -693,6 +693,7 @@ under the License.
<span class="label">&nbsp;${uiLabelMap.OrderGiftMessage}</span>
</td>
<td>
+ <#if "ORDER_COMPLETED" != orderHeader.statusId!>
<form id="setGiftMessageForm_${shipGroup.shipGroupSeqId}" name="setGiftMessageForm" method="post" action="<@ofbizUrl>setGiftMessage</@ofbizUrl>">
<input type="hidden" name="orderId" value="${orderHeader.orderId}"/>
<input type="hidden" name="shipGroupSeqId" value="${shipGroup.shipGroupSeqId}"/>
@@ -705,6 +706,7 @@ under the License.
<textarea name="giftMessage" id="giftMessage_${shipGroup.shipGroupSeqId}" style="display:none" rows="0" cols="0">${shipGroup.giftMessage!}</textarea>
<a href="javascript:saveGiftMessage('${shipGroup.shipGroupSeqId}');" class="buttontext" id="saveGiftMessage_${shipGroup.shipGroupSeqId}" style="display:none">${uiLabelMap.CommonSave}</a>
</form>
+ </#if>
</td>
</tr>
</#if>
