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/05/29 22:17:30 UTC

svn commit: r780093 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl

Author: apatel
Date: Fri May 29 20:17:28 2009
New Revision: 780093

URL: http://svn.apache.org/viewvc?rev=780093&view=rev
Log:
cleaned up html. buttons before and after table are little bit squeezed. I'll fix it very soon.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl?rev=780093&r1=780092&r2=780093&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl Fri May 29 20:17:28 2009
@@ -25,54 +25,62 @@
 </#if>
 
 <div id="minicart" class="screenlet">
-    <div class="screenlet-header">
-        <div class='boxhead'><b>${uiLabelMap.OrderCartSummary}</b></div>
-    </div>
+    <div class="screenlet-header boxhead">${uiLabelMap.OrderCartSummary}</div>
     <div class="screenlet-body">
         <#if (shoppingCartSize > 0)>
           <#if hidetoplinks?default("N") != "Y">
-            <div><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a>&nbsp;<a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckout}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckoutQuick}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceOnePageCheckout}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></div>
+            <ul>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a>&nbsp;<a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckout}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckoutQuick}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceOnePageCheckout}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></li>
+            </ul>
           </#if>
-          <table width="100%" cellpadding="0" cellspacing="2">
-            <tr>
-              <td valign="bottom"><div><b>${uiLabelMap.OrderQty}</b></div></td>
-              <td valign="bottom"><div><b>${uiLabelMap.OrderItem}</b></div></td>
-              <td valign="bottom" align="right"><div><b>${uiLabelMap.CommonSubtotal}</b></div></td>
-            </tr>
+          <table>
+            <thead>
+              <tr>
+                <th>${uiLabelMap.OrderQty}</th>
+                <th>${uiLabelMap.OrderItem}</th>
+                <th>${uiLabelMap.CommonSubtotal}</th>
+              </tr>
+            <thead>
+            <tbody>
             <#list shoppingCart.items() as cartLine>
               <tr>
-                <td valign="top"><div>${cartLine.getQuantity()?string.number}</div></td>
-                <td valign="top">
+                <td>${cartLine.getQuantity()?string.number}</td>
+                <td>
                   <#if cartLine.getProductId()?exists>
                       <#if cartLine.getParentProductId()?exists>
-                          <div><a href="<@o...@ofbizUrl>" class="linktext">${cartLine.getName()}</a></div>
+                          <a href="<@o...@ofbizUrl>" class="linktext">${cartLine.getName()}</a>
                       <#else>
-                          <div><a href="<@o...@ofbizUrl>" class="linktext">${cartLine.getName()}</a></div>
+                          <a href="<@o...@ofbizUrl>" class="linktext">${cartLine.getName()}</a>
                       </#if>
                   <#else>
-                    <div><b>${cartLine.getItemTypeDescription()?if_exists}</b></div>
+                    <b>${cartLine.getItemTypeDescription()?if_exists}</b>
                   </#if>
                 </td>
-                <td align="right" valign="top"><div><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></div></td>
+                <td><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></td>
               </tr>
               <#if cartLine.getReservStart()?exists>
-                <tr><td>&nbsp;</td><td colspan="2"><div>(${cartLine.getReservStart()?string("yyyy-MM-dd")}, ${cartLine.getReservLength()} <#if cartLine.getReservLength() == 1>${uiLabelMap.CommonDay}<#else/>${uiLabelMap.CommonDays}</#if>)</div></td></tr>
+                <tr><td>&nbsp;</td><td colspan="2">(${cartLine.getReservStart()?string("yyyy-MM-dd")}, ${cartLine.getReservLength()} <#if cartLine.getReservLength() == 1>${uiLabelMap.CommonDay}<#else/>${uiLabelMap.CommonDays}</#if>)</td></tr>
               </#if>
             </#list>
+            </tbody>
+            <tfoot>
             <tr>
-              <td colspan="3" align="right">
-                <div><b>${uiLabelMap.OrderTotal}: <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></b></div>
-              </td>
+              <th colspan="3">
+                ${uiLabelMap.OrderTotal}: <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>
+              </th>
             </tr>
+            </tfoot>
           </table>
           <#if hidebottomlinks?default("N") != "Y">
-            <div><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a>&nbsp;<a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckout}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckoutQuick}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceOnePageCheckout}</a></div>
-            <div style="margin-top: 4px;"><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></div>
+            <ul>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a>&nbsp;<a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckout}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCheckoutQuick}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceOnePageCheckout}</a></li>
+              <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></li>
+            </ul>
           </#if>
         <#else>
           <p>${uiLabelMap.OrderShoppingCartEmpty}</p>