]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/WEB-INF/templates.dist/login_page.xhtml
Splitted edit_user_data into 3 new sub actions + added logged-in check:
[addressbook-war.git] / web / WEB-INF / templates.dist / login_page.xhtml
index c91b0f83c8952201451994dc39c2749ffaeb6049..b021f0a5f6eaf4e6af81f7ecc7aaa98e11e6b0b5 100644 (file)
@@ -9,20 +9,18 @@
        <ui:composition template="/WEB-INF/templates/login/login_base.tpl">
                <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_FOO}</ui:define>
 
-               <ui:define name="menu">
-                       <ui:include id="menu" class="login_menu" src="/WEB-INF/templates/login/login_menu.tpl" />
-               </ui:define>
-
                <ui:define name="content_header">
-                       #{msg.SUB_TITLE_LOGIN_FOO}
+                       #{msg.CONTENT_TITLE_LOGIN_FOO}
                </ui:define>
 
                <ui:define name="content">
-                       Here goes your content.
-               </ui:define>
+                       <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
+                               Here goes your content.
+                       </ui:fragment>
 
-               <ui:define name="footer">
-                       <ui:include id="footer" class="login_footer" src="/WEB-INF/templates/login/login_footer.tpl" />
+                       <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
+                               <ui:include id="login_only" class="login_only" src="/WEB-INF/templates/generic/user_not_logged_in.tpl" />
+                       </ui:fragment>
                </ui:define>
        </ui:composition>
 </html>