]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/login/user/user_base.tpl
new way, was not done here
[pizzaservice-war.git] / web / WEB-INF / templates / login / user / user_base.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6         xmlns:h="http://xmlns.jcp.org/jsf/html">
7
8         <ui:define name="title">
9                 <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_AREA}" /> - <ui:insert name="login_title">Default login title</ui:insert>
10         </ui:define>
11
12         <ui:define name="menu">
13                 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
14                         <ui:include id="menu" src="/WEB-INF/templates/login/user/user_menu.tpl" />
15                 </ui:fragment>
16
17                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
18                         <ui:include src="/WEB-INF/templates/generic/message_box_mini.tpl">
19                                 <ui:param name="message" value="#{msg.USER_NOT_LOGGED_IN}" />
20                                 <ui:param name="styleClass" value="errors" />
21                         </ui:include>
22                 </ui:fragment>
23         </ui:define>
24
25         <ui:define name="footer">
26                 <ui:include id="footer" src="/WEB-INF/templates/login/user/user_footer.tpl" />
27         </ui:define>
28 </ui:composition>