]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/index.xhtml
Please cherry-pick:
[pizzaservice-war.git] / web / index.xhtml
index e612d608829881b47ae9fd7e42c2d7891c564f2c..6c75749a2f4ec1c12f811f0890a4eddccb2abfdb 100644 (file)
-<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:c="http://xmlns.jcp.org/jsp/jstl/core"
-         xmlns:f="http://xmlns.jcp.org/jsf/core"
-         >
+<?xml version="1.0" encoding="UTF-8" ?>
+<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
+                               xmlns="http://www.w3.org/1999/xhtml"
+                               xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+                               xmlns:h="http://xmlns.jcp.org/jsf/html"
+                               xmlns:f="http://xmlns.jcp.org/jsf/core">
 
        <!--
        TODO: Not used:
        xmlns:basket="http://mxchange.org/jshop/tags/basket"
        //-->
 
-       <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
-               <ui:define name="title">Willkommen!</ui:define>
+       <ui:define name="guest_title">
+               <h:outputText value="#{msg.PAGE_TITLE_INDEX_WELCOME}" />
+       </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">
+               <h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
+       </ui:define>
 
-               <ui:define name="content_header">
-                       Willkommen zum Pizza-Service
-               </ui:define>
-
-               <ui:define name="content">
-                       <!--
-                       TODO Not used!
-                       <h:panelGrid class="basket_item_table" columnClasses="table_data_column" headerClass="table_header_column">
-                               <f:facet name="header">
-                                       Bestellen? Bestellmenge: Produkt: Einzelpreis:
-                               </f:facet>
-                       </h:panelGrid>
-                       //-->
-
-                       <table class="basket_item_table">
-                               <thead>
-                                       <tr>
-                                               <th colspan="5" class="table_header">
-                                                       Folgendes kann bestellt werden:
-                                               </th>
-                                       </tr>
-
-                                       <tr>
-                                               <th class="table_header_column">
-                                                       Bestellen?
-                                               </th>
-
-                                               <th class="table_header_column">
-                                                       Anzahl:
-                                               </th>
-
-                                               <th class="table_header_column">
-                                                       Produkt:
-                                               </th>
-
-                                               <th class="table_header_column">
-                                                       Einzelpreis:
-                                               </th>
-
-                                               <th class="table_header_column">
-                                                       Zwischensumme:
-                                               </th>
-                                       </tr>
-                               </thead>
-                       </table>
-
-                       <ui:repeat var="product" value="#{controller.availableProducts}">
-                               <ui:fragment rendered="#{basket.isProductAdded(product)}">
-                                       <table class="basket_item_table">
-                                               <tbody>
-                                                       <tr>
-                                                               <td class="table_data_column">
-                                                                       <h:link outcome="basket" title="Zum Warenkorb" value="Warenkorb" />
-                                                               </td>
-
-                                                               <td class="table_data_column">
-                                                                       #{basket.currentItem.amount}
-                                                               </td>
-
-                                                               <td class="table_data_column">
-                                                                       #{product.title}
-                                                               </td>
-
-                                                               <td class="table_data_column" align="right">
-                                                                       <h:outputText class="price" value="#{product.price}">
-                                                                               <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" />
-                                                                       </h:outputText>
-                                                               </td>
-
-                                                               <td class="table_data_column" align="right">
-                                                                       <h:outputText class="price" value="#{basket.calculateItemPrice()}">
-                                                                               <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" />
-                                                                       </h:outputText>
-                                                               </td>
-                                                       </tr>
-                                               </tbody>
-                                       </table>
+       <ui:define name="content">
+               <ui:fragment rendered="#{featureController.isFeatureEnabled('user_registration_in_index')}">
+                       <h:panelGroup layout="block" styleClass="registration_form">
+                               <ui:fragment rendered="#{featureController.isFeatureEnabled('user_register_multiple_page')}">
+                                       <ui:include src="/WEB-INF/templates/guest/user/register/guest_form_register_page1.tpl" />
                                </ui:fragment>
-
-                               <ui:fragment rendered="#{basket.isProductAdded(product) == false}">
-                                       <h:form acceptcharset="utf-8" id="add_item">
-                                               <table class="basket_item_table">
-                                                       <tbody>
-                                                               <tr>
-                                                                       <td class="table_data_column">
-                                                                               <h:commandButton class="submit" id="add" value="Hinzufügen" action="#{basket.addItem(product)}" title="Fuegt das Produkt dem Warenkorb hinzu" />
-                                                                       </td>
-
-                                                                       <td class="table_data_column">
-                                                                               <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{basket.amount}" required="true" requiredMessage="#{msg.ITEM_AMOUNT_IS_REQUIRED}" title="Geben Sie hier die Bestellmenge ein.">
-                                                                                       <!--
-                                                                                       If the customer wants to order more, he need to call in.
-                                                                                       //-->
-                                                                                       <f:validateLongRange for="amount" minimum="1" maximum="10" />
-                                                                               </h:inputText>
-                                                                       </td>
-
-                                                                       <td class="table_data_column">
-                                                                               #{product.title}
-                                                                       </td>
-
-                                                                       <td class="table_data_column" align="right">
-                                                                               <h:outputText class="price" value="#{product.price}">
-                                                                                       <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
-                                                                               </h:outputText>
-                                                                       </td>
-
-                                                                       <td class="table_data_column" align="right">
-                                                                               -
-                                                                       </td>
-                                                               </tr>
-                                                       </tbody>
-                                               </table>
-                                       </h:form>
-                               </ui:fragment>
-                       </ui:repeat>
-               </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>
+                       </h:panelGroup>
+
+                       <div class="para">
+                               <h:outputText value="#{msg.CONTENT_PAGE_INDEX_PARA3}" />
+                       </div>
+               </ui:fragment>
+
+               <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_registration_in_index')}">
+                       <ui:include src="/WEB-INF/templates/guest/guest_index.tpl" />
+               </ui:fragment>
+       </ui:define>
+</ui:composition>