]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/guest/user/guest_login_form.tpl
Used much more h:outputText instead of directly the message in the template. This...
[addressbook-war.git] / web / WEB-INF / templates / guest / user / guest_login_form.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <div id="user_login_content">
9                 <h:form id="login_form">
10                         <div class="table">
11                                 <div class="table_header">
12                                         #{msg.GUEST_ENTER_USER_LOGIN_DATA_TITLE}
13                                 </div>
14
15                                 <fieldset id="login_data">
16                                         <legend title="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND_TITLE}">
17                                                 <h:outputText value="#{msg.GUEST_ENTER_USER_LOGIN_DATA_LEGEND}" />
18                                         </legend>
19
20                                         <div class="table_row">
21                                                 <div class="table_left">
22                                                         <h:outputLabel for="userName" value="#{msg.ENTER_USER_NAME}" />
23                                                 </div>
24
25                                                 <div class="table_right">
26                                                         <h:inputText styleClass="input" id="userName" value="#{userController.userName}" size="10" maxlength="20" required="true" requiredMessage="#{msg.LOGIN_NO_USER_NAME_MESSAGE}" />
27                                                 </div>
28                                         </div>
29
30                                         <div class="clear"></div>
31
32                                         <div class="table_row">
33                                                 <div class="table_left">
34                                                         <h:outputLabel for="userPassword" value="#{msg.ENTER_PASSWORD}" />
35                                                 </div>
36
37                                                 <div class="table_right">
38                                                         <h:inputSecret styleClass="input" id="userPassword" value="#{userController.userPassword}" size="10" maxlength="255" required="true" requiredMessage="#{msg.LOGIN_NO_PASSWORD_MESSAGE}" />
39                                                 </div>
40                                         </div>
41
42                                         <div class="clear"></div>
43                                 </fieldset>
44
45                                 <div class="table_footer">
46                                         <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
47                                         <h:commandButton styleClass="submit" type="submit" action="#{userLoginController.doLogin()}" value="#{msg.BUTTON_USER_LOGIN}" />
48                                 </div>
49                         </div>
50                 </h:form>
51         </div>
52 </ui:composition>