]> git.mxchange.org Git - jjobs-war.git/blob - web/user/login_index.xhtml
Please cherry-pick:
[jjobs-war.git] / web / user / login_index.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
3         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
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           xmlns:f="http://xmlns.jcp.org/jsf/core"
8           >
9
10         <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl">
11                 <ui:define name="login_title">
12                         <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_HOME}" />
13                 </ui:define>
14
15                 <ui:define name="content_header">
16                         <h:outputText value="#{msg.CONTENT_TITLE_USER_LOGIN_HOME}" />
17                 </ui:define>
18
19                 <ui:define name="content">
20                         <ui:fragment rendered="#{userLoginController.isUserLoggedIn() and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}">
21                                 Here goes your content.
22                         </ui:fragment>
23
24                         <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}">
25                                 <h:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" />
26                         </ui:fragment>
27
28                         <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}">
29                                 <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" />
30                         </ui:fragment>
31                 </ui:define>
32         </ui:composition>
33 </html>