]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Added new page + translations + navigation case
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 13:32:16 +0000 (15:32 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 13:32:16 +0000 (15:32 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/localization/bundle_de_DE.properties
src/java/org/mxchange/localization/bundle_en_US.properties
web/WEB-INF/faces-config.xml
web/customer/empty_basket.xhtml [new file with mode: 0644]

index d12139efed46c55be45db619223879593f44932d..f9c029397f2ee1978144bd87a41c94cd925706fb 100644 (file)
@@ -162,3 +162,5 @@ ADMIN_MENU_MAIN_TITLE=Hauptauswahl
 ADMIN_MENU_LOGOUT_TITLE=Ausloggen
 PAGE_TITLE_CUSTOMER_CHECKOUT_DONE=Bestellvorgang abgeschlossen
 SUB_TITLE_CUSTOMER_CHECKOUT_DONE=Der Bestellvorgang ist abgeschlossen:
+PAGE_TITLE_CUSTOMER_EMPTY_BASKET=Leerer Warenkorb!
+SUB_TITLE_CUSTOMER_EMPTY_BASKET=Sie haben keine Artikel zum Warenkorb hinzugef\u00fcgt:
index 6c1cea91a678d5841192e628286d7688657cfa4a..5a5ba93f6078e8b1b1b5d5a4e744b5929defd9b5 100644 (file)
@@ -160,3 +160,5 @@ ADMIN_MENU_MAIN_TITLE=Main
 ADMIN_MENU_LOGOUT_TITLE=Logout
 PAGE_TITLE_CUSTOMER_CHECKOUT_DONE=Checkout done
 SUB_TITLE_CUSTOMER_CHECKOUT_DONE=The checkout is completed:
+PAGE_TITLE_CUSTOMER_EMPTY_BASKET=Empty basket!
+SUB_TITLE_CUSTOMER_EMPTY_BASKET=You have no products added to basket:
index 762c4d9b8dcd170b274444102cddcebc8dd7c350..118bd9eac7b7ef15f91b22a5b953070c1f614336 100644 (file)
@@ -97,5 +97,9 @@
                        <from-outcome>checkout_done</from-outcome>
                        <to-view-id>/customer/checkout_done.xhtml.xhtml</to-view-id>
                </navigation-case>
+               <navigation-case>
+                       <from-outcome>empty_basket</from-outcome>
+                       <to-view-id>/customer/empty_basket.xhtml</to-view-id>
+               </navigation-case>
        </navigation-rule>
 </faces-config>
diff --git a/web/customer/empty_basket.xhtml b/web/customer/empty_basket.xhtml
new file mode 100644 (file)
index 0000000..35aa082
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+         xmlns:ui="http://java.sun.com/jsf/facelets"
+         xmlns:h="http://xmlns.jcp.org/jsf/html"
+         xmlns:f="http://xmlns.jcp.org/jsf/core"
+         >
+
+       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+               <ui:define name="guest_title">#{msg.PAGE_TITLE_CUSTOMER_EMPTY_BASKET}</ui:define>
+
+               <ui:define name="menu">
+                       <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+               </ui:define>
+
+               <ui:define name="content_header">
+                       #{msg.SUB_TITLE_CUSTOMER_EMPTY_BASKET}
+               </ui:define>
+
+               <ui:define name="content">
+                       Here goes your content.
+               </ui:define>
+
+               <ui:define name="footer">
+                       <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+               </ui:define>
+       </ui:composition>
+</html>