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/06/25 16:56:35 UTC
svn commit: r788373 - in
/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart: minicart.ftl
promoUseDetailsInline.ftl showAllPromotions.ftl
Author: apatel
Date: Thu Jun 25 14:56:35 2009
New Revision: 788373
URL: http://svn.apache.org/viewvc?rev=788373&view=rev
Log:
html markup cleaned up.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.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=788373&r1=788372&r2=788373&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/minicart.ftl Thu Jun 25 14:56:35 2009
@@ -24,16 +24,16 @@
<#assign shoppingCartSize = 0>
</#if>
-<div id="minicart" class="screenlet">
+<div id="minicart">
<h3>${uiLabelMap.OrderCartSummary}</h3>
- <div class="screenlet-body">
+ <div>
<#if (shoppingCartSize > 0)>
<#if hidetoplinks?default("N") != "Y">
<ul>
- <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a> <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>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderViewCart}</a> <a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderCheckout}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderCheckoutQuick}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.EcommerceOnePageCheckout}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></li>
</ul>
</#if>
<table>
@@ -76,10 +76,10 @@
</table>
<#if hidebottomlinks?default("N") != "Y">
<ul>
- <li><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.OrderViewCart}</a> <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>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderViewCart}</a> <a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderCheckout}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.OrderCheckoutQuick}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.EcommerceOnePageCheckout}</a></li>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.EcommerceCartToGoogleCheckout}</a></li>
</ul>
</#if>
<#else>
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl?rev=788373&r1=788372&r2=788373&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/promoUseDetailsInline.ftl Thu Jun 25 14:56:35 2009
@@ -17,47 +17,48 @@
under the License.
-->
-<div class="screenlet">
- <div class="screenlet-header">
- <div class="boxhead"> ${uiLabelMap.OrderPromotionInformation}:</div>
- </div>
- <div class="screenlet-body">
- <div style="float: left; width: 40%;">
- <div>${uiLabelMap.OrderPromotionsApplied}:</div>
+<div>
+ <h1>${uiLabelMap.OrderPromotionInformation}:</h1>
+ <h3>${uiLabelMap.OrderPromotionsApplied}:</h3>
+ <ul>
<#list shoppingCart.getProductPromoUseInfoIter() as productPromoUseInfo>
- <div>
+ <li>
<#-- TODO: when promo pretty print is done show promo short description here -->
- ${uiLabelMap.OrderPromotion} <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDetails}</a>
+ ${uiLabelMap.OrderPromotion} <a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.CommonDetails}</a>
<#if productPromoUseInfo.productPromoCodeId?has_content> - ${uiLabelMap.OrderWithPromoCode} [${productPromoUseInfo.productPromoCodeId}]</#if>
<#if (productPromoUseInfo.totalDiscountAmount != 0)> - ${uiLabelMap.CommonTotalValue} <@ofbizCurrency amount=(-1*productPromoUseInfo.totalDiscountAmount) isoCode=shoppingCart.getCurrency()/></#if>
- </div>
+ </li>
<#if (productPromoUseInfo.quantityLeftInActions > 0)>
- <div>- Could be used for ${productPromoUseInfo.quantityLeftInActions} more discounted item<#if (productPromoUseInfo.quantityLeftInActions > 1)>s</#if> if added to your cart.</div>
+ <li>- Could be used for ${productPromoUseInfo.quantityLeftInActions} more discounted item<#if (productPromoUseInfo.quantityLeftInActions > 1)>s</#if> if added to your cart.</li>
</#if>
</#list>
- </div>
- <div style="float: right; width: 55%; padding-left: 10px; border-left: 1px solid #999999;">
- <div>${uiLabelMap.OrderCartItemUseinPromotions}:</div>
- <#list shoppingCart.items() as cartLine>
- <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)>
- <#if cartLine.getIsPromo()>
- <div>${uiLabelMap.OrderItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${uiLabelMap.OrderIsAPromotionalItem}</div>
- <#else>
- <div>${uiLabelMap.OrderItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${cartLine.getPromoQuantityUsed()?string.number}/${cartLine.getQuantity()?string.number} ${uiLabelMap.CommonUsed} - ${cartLine.getPromoQuantityAvailable()?string.number} ${uiLabelMap.CommonAvailable}</div>
- <#list cartLine.getQuantityUsedPerPromoActualIter() as quantityUsedPerPromoActualEntry>
- <#assign productPromoActualPK = quantityUsedPerPromoActualEntry.getKey()>
- <#assign actualQuantityUsed = quantityUsedPerPromoActualEntry.getValue()>
- <#assign isQualifier = "ProductPromoCond" == productPromoActualPK.getEntityName()>
- <div> - ${actualQuantityUsed} ${uiLabelMap.CommonUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit}</#if> ${uiLabelMap.OrderOfPromotion} <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDetails}</a></div>
- <!-- productPromoActualPK ${productPromoActualPK.toString()} -->
- </#list>
- <#list cartLine.getQuantityUsedPerPromoFailedIter() as quantityUsedPerPromoFailedEntry>
- <#assign productPromoFailedPK = quantityUsedPerPromoFailedEntry.getKey()>
- <#assign failedQuantityUsed = quantityUsedPerPromoFailedEntry.getValue()>
- <#assign isQualifier = "ProductPromoCond" == productPromoFailedPK.getEntityName()>
- <div> - ${uiLabelMap.CommonCouldBeUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit}</#if> ${uiLabelMap.OrderOfPromotion} <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDetails}</a></div>
- <!-- Total times checked but failed: ${failedQuantityUsed}, productPromoFailedPK ${productPromoFailedPK.toString()} -->
- </#list>
+ </ul>
+ <h3>${uiLabelMap.OrderCartItemUseinPromotions}:</h3>
+ <ul>
+ <#list shoppingCart.items() as cartLine>
+ <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)>
+ <#if cartLine.getIsPromo()>
+ <li>${uiLabelMap.OrderItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${uiLabelMap.OrderIsAPromotionalItem}</li>
+ <#else>
+ <li>${uiLabelMap.OrderItemN} ${cartLineIndex+1} [${cartLine.getProductId()?if_exists}] - ${cartLine.getPromoQuantityUsed()?string.number}/${cartLine.getQuantity()?string.number} ${uiLabelMap.CommonUsed} - ${cartLine.getPromoQuantityAvailable()?string.number} ${uiLabelMap.CommonAvailable}
+ <ul>
+ <#list cartLine.getQuantityUsedPerPromoActualIter() as quantityUsedPerPromoActualEntry>
+ <#assign productPromoActualPK = quantityUsedPerPromoActualEntry.getKey()>
+ <#assign actualQuantityUsed = quantityUsedPerPromoActualEntry.getValue()>
+ <#assign isQualifier = "ProductPromoCond" == productPromoActualPK.getEntityName()>
+ <li> - ${actualQuantityUsed} ${uiLabelMap.CommonUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit}</#if> ${uiLabelMap.OrderOfPromotion} <a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.CommonDetails}</a></li>
+ <!-- productPromoActualPK ${productPromoActualPK.toString()} -->
+ </#list>
+ </ul>
+ <ul>
+ <#list cartLine.getQuantityUsedPerPromoFailedIter() as quantityUsedPerPromoFailedEntry>
+ <#assign productPromoFailedPK = quantityUsedPerPromoFailedEntry.getKey()>
+ <#assign failedQuantityUsed = quantityUsedPerPromoFailedEntry.getValue()>
+ <#assign isQualifier = "ProductPromoCond" == productPromoFailedPK.getEntityName()>
+ <li> - ${uiLabelMap.CommonCouldBeUsedAs} <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit}</#if> ${uiLabelMap.OrderOfPromotion} <a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.CommonDetails}</a></li>
+ <!-- Total times checked but failed: ${failedQuantityUsed}, productPromoFailedPK ${productPromoFailedPK.toString()} -->
+ </#list>
+ </ul>
<#list cartLine.getQuantityUsedPerPromoCandidateIter() as quantityUsedPerPromoCandidateEntry>
<#assign productPromoCandidatePK = quantityUsedPerPromoCandidateEntry.getKey()>
<#assign candidateQuantityUsed = quantityUsedPerPromoCandidateEntry.getValue()>
@@ -65,10 +66,9 @@
<!-- Left over not reset or confirmed, shouldn't happen: ${candidateQuantityUsed} Might be Used (Candidate) as <#if isQualifier>${uiLabelMap.CommonQualifier}<#else>${uiLabelMap.CommonBenefit}</#if> ${uiLabelMap.OrderOfPromotion} [${productPromoCandidatePK.productPromoId}] -->
<!-- productPromoCandidatePK ${productPromoCandidatePK.toString()} -->
</#list>
- </#if>
- </#list>
- </div>
- <br class="clear"/>
- </div>
+ </li>
+ </#if>
+ </#list>
+ </ul>
</div>
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.ftl?rev=788373&r1=788372&r2=788373&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.ftl Thu Jun 25 14:56:35 2009
@@ -16,19 +16,16 @@
specific language governing permissions and limitations
under the License.
-->
-
-<div class="screenlet">
- <div class="screenlet-header">
- <div class="boxhead"> ${uiLabelMap.OrderSpecialOffers}</div>
- </div>
- <div class="screenlet-body">
+THIS IS IT BITCHES!
+<div>
+ <h1>${uiLabelMap.OrderSpecialOffers}</h1>
+ <div>
+ <ul>
<#-- show promotions text -->
<#list productPromosAllShowable as productPromo>
- <div><a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDetails}</a> ${productPromo.promoText}</div>
- <#if productPromo_has_next>
- <hr/>
- </#if>
+ <li><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.CommonDetails}</a>${StringUtil.wrapString(productPromo.promoText?if_exists)}</li>
</#list>
+ </ul>
</div>
</div>