Author: rayb
Date: Wed Apr 25 16:09:08 2007 New Revision: 532522 URL: http://svn.apache.org/viewvc?view=rev&rev=532522 Log: Corrections to the HTML for the layout of the orders items table, so the columns should now be aligned properly. Modified: ofbiz/branches/release4.0/applications/ecommerce/webapp/ecommerce/order/orderitems.ftl Modified: ofbiz/branches/release4.0/applications/ecommerce/webapp/ecommerce/order/orderitems.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/ecommerce/webapp/ecommerce/order/orderitems.ftl?view=diff&rev=532522&r1=532521&r2=532522 ============================================================================== --- ofbiz/branches/release4.0/applications/ecommerce/webapp/ecommerce/order/orderitems.ftl (original) +++ ofbiz/branches/release4.0/applications/ecommerce/webapp/ecommerce/order/orderitems.ftl Wed Apr 25 16:09:08 2007 @@ -24,7 +24,9 @@ <div class="screenlet"> <div class="screenlet-header"> <div class="boxlink"> + <#assign numColumns = 8> <#if maySelectItems?default("N") == "Y"> + <#assign numColumns = 11> <a href="javascript:document.addCommonToCartForm.add_all.value='true';document.addCommonToCartForm.submit()" class="submenutext">${uiLabelMap.EcommerceAddAlltoCart}</a><a href="javascript:document.addCommonToCartForm.add_all.value='false';document.addCommonToCartForm.submit()" class="submenutext">${uiLabelMap.EcommerceAddCheckedToCart}</a><a href="<@ofbizUrl>createShoppingListFromOrder?orderId=${orderHeader.orderId}&frequency=6&intervalNumber=1&shoppingListTypeId=SLT_AUTO_REODR</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderSendMeThisEveryMonth}</a> </#if> </div> @@ -42,13 +44,14 @@ <#else> <td width="10%" align="right"> </td> <td width="10%" align="right"> </td> + <td width="10%" align="right"> </td> <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderQtyOrdered}</b></span></td> </#if> <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.EcommerceUnitPrice}</b></span></td> <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.OrderAdjustments}</b></span></td> <td width="10%" align="right"><span class="tableheadtext"><b>${uiLabelMap.CommonSubtotal}</b></span></td> <#if maySelectItems?default("N") == "Y"> - <td width="5%" align="right"> </td> + <td colspan="3" width="5%" align="right"> </td> </#if> </tr> <#list orderItems as orderItem> @@ -71,10 +74,10 @@ </#list> </#if> </#if> - <tr><td colspan="10"><hr class="sepbar"/></td></tr> + <tr><td colspan="${numColumns}"><hr class="sepbar"/></td></tr> <tr> <#if !orderItem.productId?exists || orderItem.productId == "_?_"> - <td colspan="1" valign="top"> + <td valign="top"> <b><div class="tabletext"> >> ${orderItem.itemDescription}</div></b> </td> <#else> @@ -130,6 +133,7 @@ <#if !(maySelectItems?default("N") == "Y")> <td> </td> <td> </td> + <td> </td> </#if> <td align="right" valign="top"> <div class="tabletext">${orderItem.quantity?string.number}</div> @@ -160,7 +164,7 @@ <div class="tabletext"><@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem)*rentalQuantity isoCode=currencyUomId/></div> <#else> <div class="tabletext"><@ofbizCurrency amount=localOrderReadHelper.getOrderItemTotal(orderItem) isoCode=currencyUomId/></div> - </#if> + </#if> </td> <#if maySelectItems?default("N") == "Y"> <td> </td> @@ -170,7 +174,7 @@ <td> </td> </#if> <td> - <input name="item_id" value="${orderItem.orderItemSeqId}" type="checkbox"> + <input name="item_id" value="${orderItem.orderItemSeqId}" type="checkbox"/> </td> </#if> </#if> @@ -178,7 +182,7 @@ <#-- show info from workeffort if it was a rental item --> <#if orderItem.orderItemTypeId == "RENTAL_ORDER_ITEM"> <#if workEffortSave?exists> - <tr><td> </td><td colspan="8"><div class="tabletext">${uiLabelMap.CommonFrom}: ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s).</div></td></tr> + <tr><td> </td><td colspan="${numColumns}"><div class="tabletext">${uiLabelMap.CommonFrom}: ${workEffortSave.estimatedStartDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonUntil} ${workEffortSave.estimatedCompletionDate?string("yyyy-MM-dd")} ${uiLabelMap.CommonFor} ${workEffortSave.reservPersons} ${uiLabelMap.CommonPerson}(s).</div></td></tr> </#if> </#if> <#-- now show adjustment details per line item --> @@ -207,14 +211,12 @@ </#if> </div> </td> - <td> </td> - <td> </td> - <td> </td> + <td colspan="5"> </td> <td align="right"> <div class="tabletext" style="font-size: xx-small;"><@ofbizCurrency amount=localOrderReadHelper.getOrderItemAdjustmentTotal(orderItem, orderItemAdjustment) isoCode=currencyUomId/></div> </td> <td> </td> - <#if maySelectItems?default("N") == "Y"><td> </td></#if> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> </#list> @@ -231,46 +233,55 @@ <td align="right"> <div class="tabletext" style="font-size: xx-small;">${shipGroupAssoc.quantity?string.number}</div> </td> - <td> </td> - <td> </td> - <td> </td> - <td> </td> - <td> </td> + <td colspan="${numColumns - 2}"> </td> </tr> </#list> </#if> </#list> <#if orderItems?size == 0 || !orderItems?has_content> - <tr><td><font color="red">${uiLabelMap.OrderSalesOrderLookupFailed}.</font></td></tr> + <tr><td colspan="${numColumns}"><font color="red">${uiLabelMap.OrderSalesOrderLookupFailed}</font></td></tr> </#if> - <tr><td colspan="10"><hr class="sepbar"/></td></tr> + <tr><td colspan="${numColumns}"><hr class="sepbar"/></td></tr> <tr> - <td align="right" colspan="6"><div class="tabletext"><b>${uiLabelMap.CommonSubtotal}</b></div></td> + <td align="right" colspan="7"><div class="tabletext"><b>${uiLabelMap.CommonSubtotal}</b></div></td> <td align="right"><div class="tabletext"><@ofbizCurrency amount=orderSubTotal isoCode=currencyUomId/></div></td> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> <#list headerAdjustmentsToShow as orderHeaderAdjustment> <tr> - <td align="right" colspan="6"><div class="tabletext"><b>${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</b></div></td> + <td align="right" colspan="7"><div class="tabletext"><b>${localOrderReadHelper.getAdjustmentType(orderHeaderAdjustment)}</b></div></td> <td align="right"><div class="tabletext"><@ofbizCurrency amount=localOrderReadHelper.getOrderAdjustmentTotal(orderHeaderAdjustment) isoCode=currencyUomId/></div></td> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> </#list> <tr> - <td align="right" colspan="6"><div class="tabletext"><b>${uiLabelMap.OrderShippingAndHandling}</b></div></td> + <td align="right" colspan="7"><div class="tabletext"><b>${uiLabelMap.OrderShippingAndHandling}</b></div></td> <td align="right"><div class="tabletext"><@ofbizCurrency amount=orderShippingTotal isoCode=currencyUomId/></div></td> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> <tr> - <td align="right" colspan="6"><div class="tabletext"><b>${uiLabelMap.OrderSalesTax}</b></div></td> + <td align="right" colspan="7"><div class="tabletext"><b>${uiLabelMap.OrderSalesTax}</b></div></td> <td align="right"><div class="tabletext"><@ofbizCurrency amount=orderTaxTotal isoCode=currencyUomId/></div></td> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> - <tr><td colspan="2"></td><td colspan="9"><hr class="sepbar"/></td></tr> <tr> - <td align="right" colspan="6"><div class="tabletext"><b>${uiLabelMap.OrderGrandTotal}</b></div></td> + <td colspan="3"></td> + <#if maySelectItems?default("N") == "Y"> + <td colspan="${numColumns - 6}"><hr class="sepbar"/></td> + <td colspan="3"> </td> + <#else> + <td colspan="${numColumns - 3}"><hr class="sepbar"/></td> + </#if> + </tr> + <tr> + <td align="right" colspan="7"><div class="tabletext"><b>${uiLabelMap.OrderGrandTotal}</b></div></td> <td align="right"> <div class="tabletext"><@ofbizCurrency amount=orderGrandTotal isoCode=currencyUomId/></div> </td> + <#if maySelectItems?default("N") == "Y"><td colspan="3"> </td></#if> </tr> </table> </div> |
Free forum by Nabble | Edit this page |