Author: jacopoc
Date: Sun Aug 6 00:49:06 2006 New Revision: 429116 URL: http://svn.apache.org/viewvc?rev=429116&view=rev Log: Cleaned up the order entry tab bar. Modified: incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl Modified: incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl?rev=429116&r1=429115&r2=429116&view=diff ============================================================================== --- incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl (original) +++ incubator/ofbiz/trunk/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl Sun Aug 6 00:49:06 2006 @@ -19,21 +19,28 @@ <div class="boxhead-right" align="right"> <a href="<@ofbizUrl>emptycart</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderClearOrder}</a> <#if (shoppingCart.size() > 0)> - <a href="javascript:document.cartform.submit()" class="submenutext">${uiLabelMap.OrderRecalculateOrder}</a> - <a href="javascript:removeSelected();" class="submenutext">${uiLabelMap.OrderRemoveSelected}</a> - <#if shoppingCart.getOrderType() == "PURCHASE_ORDER"> - <a href="<@ofbizUrl>finalizeOrder?finalizeMode=purchase&finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a> + <a href="javascript:document.cartform.submit()" class="submenutext">${uiLabelMap.OrderRecalculateOrder}</a> + <a href="javascript:removeSelected();" class="submenutext">${uiLabelMap.OrderRemoveSelected}</a> + <#else> + <span class="submenutextdisabled">${uiLabelMap.OrderRecalculateOrder}</span> + <span class="submenutextdisabled">${uiLabelMap.OrderRemoveSelected}</span> + </#if> + <#if shoppingCart.getOrderType() == "PURCHASE_ORDER"> + <#if shoppingCart.getOrderPartyId() == "_NA_" || (shoppingCart.size() = 0)> + <span class="submenutextrightdisabled">${uiLabelMap.OrderFinalizeOrder}</span> <#else> - <a href="<@ofbizUrl>quickcheckout</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderQuickFinalizeOrder}</a> - <a href="<@ofbizUrl>finalizeOrder?finalizeMode=default</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderFinalizeOrderDefault}</a> - <a href="<@ofbizUrl>finalizeOrder?finalizeMode=init</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a> + <a href="<@ofbizUrl>finalizeOrder?finalizeMode=purchase&finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a> </#if> <#else> - <span class="submenutextdisabled">${uiLabelMap.OrderRecalculateOrder}</span> - <span class="submenutextdisabled">${uiLabelMap.OrderRemoveSelected}</span> + <#if shoppingCart.size() = 0> <span class="submenutextdisabled">${uiLabelMap.OrderQuickFinalizeOrder}</span> <span class="submenutextdisabled">${uiLabelMap.OrderFinalizeOrderDefault}</span> <span class="submenutextrightdisabled">${uiLabelMap.OrderFinalizeOrder}</span> + <#else> + <a href="<@ofbizUrl>quickcheckout</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderQuickFinalizeOrder}</a> + <a href="<@ofbizUrl>finalizeOrder?finalizeMode=default</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderFinalizeOrderDefault}</a> + <a href="<@ofbizUrl>finalizeOrder?finalizeMode=init</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a> + </#if> </#if> </div> <div class="boxhead-left"> |
Free forum by Nabble | Edit this page |