]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/login/user/user_base.tpl
Please cherry-pick:
[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                 <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
17                         <ui:include src="/WEB-INF/templates/generic/message_box_mini.tpl">
18                                 <ui:param name="message" value="#{msg.USER_NOT_LOGGED_IN}" />
19                                 <ui:param name="styleClass" value="errors" />
20                         </ui:include>
21                 </ui:fragment>
22         </ui:define>
23
24         <ui:define name="footer">
25                 <ui:include id="footer" src="/WEB-INF/templates/login/user/user_footer.tpl" />
26         </ui:define>
27 </ui:composition>