From eaa54db795fd2e7b82d08b7f5263fadff7586c8a Mon Sep 17 00:00:00 2001 From: Vikas Mayur Date: Thu, 17 Sep 2009 12:11:14 +0000 Subject: [PATCH] Markup improvements. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816159 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/ecommerce/order/orderhistory.ftl | 229 ++++++------------ 1 file changed, 75 insertions(+), 154 deletions(-) diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl index f6e6ddaa64..ec58a905c8 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl @@ -16,186 +16,107 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - +
-
-
${uiLabelMap.OrderSalesHistory}
-
-
- - - - - - - - - - - - - <#list orderHeaderList as orderHeader> - <#assign status = orderHeader.getRelatedOneCache("StatusItem")> - +

${uiLabelMap.OrderSalesHistory}

+
-
${uiLabelMap.CommonDate}
-
  -
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}
-
  -
${uiLabelMap.CommonAmount}
-
  -
${uiLabelMap.CommonStatus}
-
  -
${uiLabelMap.OrderInvoices}
-

+ - - - - - - - - <#-- invoices --> - - <#assign invoices = delegator.findByAnd("OrderItemBilling", Static["org.ofbiz.base.util.UtilMisc"].toMap("orderId", "${orderHeader.orderId}"), Static["org.ofbiz.base.util.UtilMisc"].toList("invoiceId"))> - <#if invoices?has_content> - - <#else> - - - + + + + + + - - <#if !orderHeaderList?has_content> - - + + + <#list orderHeaderList as orderHeader> + <#assign status = orderHeader.getRelatedOneCache("StatusItem")> + + + + + + <#-- invoices --> + <#assign invoices = delegator.findByAnd("OrderItemBilling", Static["org.ofbiz.base.util.UtilMisc"].toMap("orderId", "${orderHeader.orderId}"), Static["org.ofbiz.base.util.UtilMisc"].toList("invoiceId")) /> + <#if invoices?has_content> + + <#else> + + + + + + <#if !orderHeaderList?has_content> + + +
-
${orderHeader.orderDate.toString()}
-
  -
${orderHeader.orderId}
-
  -
<@ofbizCurrency amount=orderHeader.grandTotal isoCode=orderHeader.currencyUom/>
-
  -
${status.get("description",locale)}
-
  - <#list invoices as invoice> - (${invoice.invoiceId} PDF) - -   - ${uiLabelMap.CommonView} - ${uiLabelMap.CommonDate}${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}${uiLabelMap.CommonAmount}${uiLabelMap.CommonStatus}${uiLabelMap.OrderInvoices}

${uiLabelMap.OrderNoOrderFound}

${orderHeader.orderDate.toString()}${orderHeader.orderId}<@ofbizCurrency amount=orderHeader.grandTotal isoCode=orderHeader.currencyUom />${status.get("description",locale)} + <#list invoices as invoice> + (${invoice.invoiceId} PDF) + + ${uiLabelMap.CommonView}
${uiLabelMap.OrderNoOrderFound}
-
-
-
${uiLabelMap.OrderPurchaseHistory}
-
-
- - - - - - - - - - - - - <#if porderHeaderList?has_content> +

${uiLabelMap.OrderPurchaseHistory}

+
-
${uiLabelMap.CommonDate}
-
  -
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}
-
  -
${uiLabelMap.CommonAmount}
-
  -
${uiLabelMap.CommonStatus}
-
 
+ + + + + + + + + + + <#if porderHeaderList?has_content> <#list porderHeaderList as porderHeader> <#assign pstatus = porderHeader.getRelatedOneCache("StatusItem")> - - - - - - - - - - + + + + + <#if !porderHeaderList?has_content> - + +
${uiLabelMap.CommonDate}${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}${uiLabelMap.CommonAmount}${uiLabelMap.CommonStatus}

-
${porderHeader.orderDate.toString()}
-
  -
${porderHeader.orderId}
-
  -
<@ofbizCurrency amount=porderHeader.grandTotal isoCode=porderHeader.currencyUom/>
-
  -
${pstatus.get("description",locale)}
-
  - ${uiLabelMap.CommonView} - ${porderHeader.orderDate.toString()}${porderHeader.orderId}<@ofbizCurrency amount=porderHeader.grandTotal isoCode=porderHeader.currencyUom />${pstatus.get("description",locale)}${uiLabelMap.CommonView}

${uiLabelMap.OrderNoOrderFound}

${uiLabelMap.OrderNoOrderFound}
-
-
-
${uiLabelMap.EcommerceDownloadsAvailableTitle}
-
-
- +

${uiLabelMap.EcommerceDownloadsAvailableTitle}

+
+ - - - - - - - - - + + + + + + + <#list downloadOrderRoleAndProductContentInfoList as downloadOrderRoleAndProductContentInfo> - + + + + - - - - - - - - <#if !downloadOrderRoleAndProductContentInfoList?has_content> - + +
-
${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}
-
  -
${uiLabelMap.ProductProductName}
-
  -
${uiLabelMap.CommonName}
-
  -
${uiLabelMap.CommonDescription}
-
 ${uiLabelMap.OrderOrder} ${uiLabelMap.CommonNbr}${uiLabelMap.ProductProductName}${uiLabelMap.CommonName}${uiLabelMap.CommonDescription}

${downloadOrderRoleAndProductContentInfo.orderId}${downloadOrderRoleAndProductContentInfo.productName}${downloadOrderRoleAndProductContentInfo.contentName?if_exists}${downloadOrderRoleAndProductContentInfo.description?if_exists} -
${downloadOrderRoleAndProductContentInfo.orderId}
-
  -
${downloadOrderRoleAndProductContentInfo.productName}
-
  -
${downloadOrderRoleAndProductContentInfo.contentName?if_exists}
-
  -
${downloadOrderRoleAndProductContentInfo.description?if_exists}
-
  - Download + Download

${uiLabelMap.EcommerceDownloadNotFound}

${uiLabelMap.EcommerceDownloadNotFound}
-
+
\ No newline at end of file