]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/index.xhtml
no shortcuts ...
[addressbook-war.git] / web / index.xhtml
index 60403707f5a3aeab9bc5246f613289d089519024..0954179750ecfc9f77d583168edbf8cf160193ea 100644 (file)
@@ -1,20 +1,37 @@
-<?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:c="http://xmlns.jcp.org/jsp/jstl/core"
-         xmlns:f="http://xmlns.jcp.org/jsf/core"
-         >
+<html
+       lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
+       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"
+       >
 
        <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
-               <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_WELCOME}</ui:define>
+               <ui:define name="guest_title">
+                       <h:outputText value="#{msg.PAGE_TITLE_INDEX_WELCOME}" />
+               </ui:define>
 
                <ui:define name="content_header">
-                       #{msg.CONTENT_TITLE_INDEX_WELCOME}
+                       <h:outputText value="#{msg.CONTENT_TITLE_INDEX_WELCOME}" />
                </ui:define>
 
                <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>
+                               </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>
 </html>