From b66cedc2c75f9fbca29c93f1cffa4bf99008ddef Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Thu, 9 Jul 2009 07:56:02 +0000 Subject: [PATCH] cleaned mark. Moved list of anon checkout is in file by itself. This makes it easy to use login.ftl file in custom ecommerce components. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792436 13f79535-47bb-0310-9956-ffa450edef68 --- .../ecommerce/webapp/ecommerce/login.ftl | 114 ++++++------------ .../ecommerce/order/startanoncheckout.ftl | 53 ++++++++ .../ecommerce/widget/CommonScreens.xml | 3 + 3 files changed, 93 insertions(+), 77 deletions(-) create mode 100644 specialpurpose/ecommerce/webapp/ecommerce/order/startanoncheckout.ftl diff --git a/specialpurpose/ecommerce/webapp/ecommerce/login.ftl b/specialpurpose/ecommerce/webapp/ecommerce/login.ftl index 589bb322a4..c6d9b51278 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/login.ftl +++ b/specialpurpose/ecommerce/webapp/ecommerce/login.ftl @@ -17,93 +17,53 @@ specific language governing permissions and limitations under the License. --> -<#assign shoppingCart = sessionAttributes.shoppingCart?if_exists> -<#if shoppingCart?has_content> - <#assign shoppingCartSize = shoppingCart.size()> -<#else> - <#assign shoppingCartSize = 0> - -

${uiLabelMap.CommonLogin}

-
- -
-
-
-
${uiLabelMap.CommonRegistered}
-
-
-
-
- ${uiLabelMap.CommonUsername}:  - -
- <#if autoUserLogin?has_content> -
- (${uiLabelMap.CommonNot} ${autoUserLogin.userLoginId}? ${uiLabelMap.CommonClickHere}) -
- -
- ${uiLabelMap.CommonPassword}:  - -
-
- -
-
-
+

${uiLabelMap.CommonRegistered}

+
+
+
+ + +
+ <#if autoUserLogin?has_content> +

(${uiLabelMap.CommonNot} ${autoUserLogin.userLoginId}? ${uiLabelMap.CommonClickHere})

+ +
+ + +
+
+ +
+
+
-
-
${uiLabelMap.CommonForgotYourPassword}?
+

${uiLabelMap.CommonForgotYourPassword}?

+
+
+ +
-
- - ${uiLabelMap.CommonUsername}:  -
 
- +
+ +
+ +
+
+

${uiLabelMap.CommonNewUser}

+
+
+
-
-
-
-
${uiLabelMap.CommonNewUser}
-
-
-
-
${uiLabelMap.CommonMayCreateNewAccountHere}:
-
-
-
-
- - <#if (shoppingCartSize > 0)> -
-
-
${uiLabelMap.CommonCheckoutAnonymous}
-
-
-
${uiLabelMap.CommonCheckoutAnonymousMsg}:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
 
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/startanoncheckout.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/startanoncheckout.ftl new file mode 100644 index 0000000000..29e2a4728a --- /dev/null +++ b/specialpurpose/ecommerce/webapp/ecommerce/order/startanoncheckout.ftl @@ -0,0 +1,53 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#assign shoppingCart = sessionAttributes.shoppingCart?if_exists> +<#if shoppingCart?has_content> + <#assign shoppingCartSize = shoppingCart.size()> +<#else> + <#assign shoppingCartSize = 0> + + +<#if (shoppingCartSize > 0)> +
+

${uiLabelMap.CommonCheckoutAnonymous}

+

${uiLabelMap.CommonCheckoutAnonymousMsg}:

+

+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ + diff --git a/specialpurpose/ecommerce/widget/CommonScreens.xml b/specialpurpose/ecommerce/widget/CommonScreens.xml index 26866dc1d9..d126c76fc4 100644 --- a/specialpurpose/ecommerce/widget/CommonScreens.xml +++ b/specialpurpose/ecommerce/widget/CommonScreens.xml @@ -269,6 +269,9 @@ under the License. + + +