]> git.mxchange.org Git - pizzaservice-war.git/blob - web/guest/user/login.xhtml
Continued a bit: (please cherry-pick)
[pizzaservice-war.git] / web / guest / user / login.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/guest/guest_base.tpl" id="customer_login">
11                 <ui:define name="guest_title">#{msg.PAGE_TITLE_CUSTOMER_LOGIN}</ui:define>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_CUSTOMER_LOGIN}
15                 </ui:define>
16
17                 <ui:define name="content">
18                         <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
19                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_registration')}">
20                                         <div class="para">
21                                                 <h:outputText value="#{msg.GUEST_USER_NO_ACCOUNT_YET_QUESTION}" />
22                                                 <h:outputText value="&#160;" />
23                                                 <h:link id="user_register" outcome="user_register" title="#{msg.LINK_GUEST_USER_NO_ACCOUNT_TITLE}" value="#{msg.LINK_GUEST_USER_NO_ACCOUNT_YET}" />
24                                         </div>
25                                 </ui:fragment>
26
27                                 <div class="para">
28                                         <ui:include src="/WEB-INF/templates/guest/user/guest_login_form.tpl" />
29                                 </div>
30
31                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required') and featureController.isFeatureEnabled('user_password_recovery')}">
32                                         <div class="para">
33                                                 <h:link id="user_lost_password" outcome="user_lost_passwd" title="#{msg.LINK_TITLE_GUEST_LOGIN_LOST_PASSWORD}" value="#{msg.LINK_GUEST_LOGIN_LOST_PASSWORD}" />
34                                         </div>
35                                 </ui:fragment>
36                         </ui:fragment>
37
38                         <ui:fragment rendered="#{not featureController.isFeatureEnabled('user_name_required')}">
39                                 <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_LOGIN_DEACTIVATED}" />
40                         </ui:fragment>
41                 </ui:define>
42         </ui:composition>
43 </html>