]> 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}" />
10                 <h:outputText value=" - " />
11                 <ui:insert name="login_title">
12                         <h:outputText value="Default login title" />
13                 </ui:insert>
14         </ui:define>
15
16         <ui:define name="menu">
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:fragment rendered="#{userLoginController.isUserLoggedIn()}">
24                         <ui:include id="menu" src="/WEB-INF/templates/login/user/user_menu.tpl" />
25                 </ui:fragment>
26         </ui:define>
27
28         <ui:define name="footer">
29                 <ui:fragment rendered="#{userLoginController.isUserLoggedIn()}">
30                         <ui:include id="footer" src="/WEB-INF/templates/login/user/user_footer.tpl" />
31                 </ui:fragment>
32         </ui:define>
33 </ui:composition>