]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/form_personal_data.tpl
Continued:
[addressbook-war.git] / web / WEB-INF / templates / generic / form_personal_data.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://java.sun.com/jsf/facelets">
7
8         <div class="para notice">
9                 #{msg.PERSONAL_DATA_MINIMUM_NOTICE}
10         </div>
11
12         <div class="para">
13                 <fieldset id="personal_data">
14                         <legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">#{msg.PERSONAL_DATA_LEGEND}</legend>
15
16                         <div class="table_row">
17                                 <div class="table_left">
18                                         <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
19                                 </div>
20
21                                 <div class="table_right">
22                                         <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl" />
23                                 </div>
24
25                                 <div class="clear"></div>
26                         </div>
27
28                         <div class="table_row">
29                                 <div class="table_left">
30                                         <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
31                                 </div>
32
33                                 <div class="table_right">
34                                         <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{userController.firstName}" required="true">
35                                                 <f:validator validatorId="NameValidator" />
36                                         </h:inputText>
37                                 </div>
38
39                                 <div class="clear"></div>
40                         </div>
41
42                         <div class="table_row">
43                                 <div class="table_left">
44                                         <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
45                                 </div>
46
47                                 <div class="table_right">
48                                         <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{userController.familyName}" required="true">
49                                                 <f:validator validatorId="NameValidator" />
50                                         </h:inputText>
51                                 </div>
52
53                                 <div class="clear"></div>
54                         </div>
55
56                         <div class="table_row">
57                                 <div class="table_left">
58                                         <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
59                                 </div>
60
61                                 <div class="table_right">
62                                         <h:inputText class="input" id="street" size="20" maxlength="255" value="#{userController.street}" required="true">
63                                                 <f:validator validatorId="NameValidator" />
64                                         </h:inputText>
65                                 </div>
66
67                                 <div class="clear"></div>
68                         </div>
69
70                         <div class="table_row">
71                                 <div class="table_left">
72                                         <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
73                                 </div>
74
75                                 <div class="table_right">
76                                         <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true">
77                                                 <f:validateLongRange minimum="1" maximum="500" />
78                                         </h:inputText>
79                                 </div>
80
81                                 <div class="clear"></div>
82                         </div>
83
84                         <div class="table_row">
85                                 <div class="table_left">
86                                         <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
87                                 </div>
88
89                                 <div class="table_right">
90                                         <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" />
91                                 </div>
92
93                                 <div class="clear"></div>
94                         </div>
95
96                         <div class="table_row">
97                                 <div class="table_left">
98                                         <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
99                                 </div>
100
101                                 <div class="table_right">
102                                         <h:inputText class="input" id="city" size="10" maxlength="255" value="#{userController.city}" required="true">
103                                                 <f:validator validatorId="NameValidator" />
104                                         </h:inputText>
105                                 </div>
106
107                                 <div class="clear"></div>
108                         </div>
109
110                         <div class="table_row">
111                                 <div class="table_left">
112                                         <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
113                                 </div>
114
115                                 <div class="table_right">
116                                         <h:selectOneMenu class="select" id="country" value="#{userController.country}" converter="country">
117                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
118                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
119                                         </h:selectOneMenu>
120                                 </div>
121
122                                 <div class="clear"></div>
123                         </div>
124
125                         <div class="table_row">
126                                 <div class="table_left">
127                                         <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
128                                 </div>
129
130                                 <div class="table_right">
131                                         <h:selectOneMenu class="select" id="phoneCountryCode" value="#{userController.phoneCountry}" converter="country">
132                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
133                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
134                                         </h:selectOneMenu>
135
136                                         <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
137                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
138                                         </h:inputText>
139
140                                         <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
141                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
142                                         </h:inputText>
143                                 </div>
144
145                                 <div class="clear"></div>
146                         </div>
147
148                         <div class="table_row">
149                                 <div class="table_left">
150                                         <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
151                                 </div>
152
153                                 <div class="table_right">
154                                         <h:selectOneMenu class="select" id="faxCountryCode" value="#{userController.faxCountry}" converter="country">
155                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
156                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
157                                         </h:selectOneMenu>
158
159                                         <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
160                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
161                                         </h:inputText>
162
163                                         <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
164                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
165                                         </h:inputText>
166                                 </div>
167
168                                 <div class="clear"></div>
169                         </div>
170
171                         <div class="table_row">
172                                 <div class="table_left">
173                                         <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
174                                 </div>
175
176                                 <div class="table_right">
177                                         <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{userController.cellphoneCarrier}" converter="cellphoneCarrier">
178                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
179                                                 <f:selectItems value="#{cellphone.allSmsProvider()}" var="p" itemValue="#{p}" itemLabel="#{p.country.countryLocalDialPrefix}#{p.providerDialPrefix} (#{p.providerName})" />
180                                         </h:selectOneMenu>
181
182                                         <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
183                                                 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
184                                         </h:inputText>
185                                 </div>
186
187                                 <div class="clear"></div>
188                         </div>
189                 </fieldset>
190         </div>
191 </ui:composition>