]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/generic/form_personal_data.tpl
maybe correct id?
[jjobs-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 for="firstName" 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 for="familyName" 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 for="street" 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" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
77                                                 <f:validateLongRange for="houseNumber" 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" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
91                                                 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
92                                         </h:inputText>
93                                 </div>
94
95                                 <div class="clear"></div>
96                         </div>
97
98                         <div class="table_row">
99                                 <div class="table_left">
100                                         <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
101                                 </div>
102
103                                 <div class="table_right">
104                                         <h:inputText class="input" id="city" size="10" maxlength="255" value="#{userController.city}" required="true">
105                                                 <f:validator for="city" validatorId="NameValidator" />
106                                         </h:inputText>
107                                 </div>
108
109                                 <div class="clear"></div>
110                         </div>
111
112                         <div class="table_row">
113                                 <div class="table_left">
114                                         <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
115                                 </div>
116
117                                 <div class="table_right">
118                                         <h:selectOneMenu class="select" id="country" value="#{userController.country}" converter="country">
119                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
120                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
121                                         </h:selectOneMenu>
122                                 </div>
123
124                                 <div class="clear"></div>
125                         </div>
126
127                         <div class="table_row">
128                                 <div class="table_left">
129                                         <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
130                                 </div>
131
132                                 <div class="table_right">
133                                         <h:selectOneMenu class="select" id="phoneCountryCode" value="#{userController.phoneCountry}" converter="country">
134                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
135                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
136                                         </h:selectOneMenu>
137
138                                         <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
139                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
140                                         </h:inputText>
141
142                                         <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
143                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
144                                         </h:inputText>
145                                 </div>
146
147                                 <div class="clear"></div>
148                         </div>
149
150                         <div class="table_row">
151                                 <div class="table_left">
152                                         <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
153                                 </div>
154
155                                 <div class="table_right">
156                                         <h:selectOneMenu class="select" id="faxCountryCode" value="#{userController.faxCountry}" converter="country">
157                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
158                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
159                                         </h:selectOneMenu>
160
161                                         <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
162                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
163                                         </h:inputText>
164
165                                         <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
166                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
167                                         </h:inputText>
168                                 </div>
169
170                                 <div class="clear"></div>
171                         </div>
172
173                         <div class="table_row">
174                                 <div class="table_left">
175                                         <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
176                                 </div>
177
178                                 <div class="table_right">
179                                         <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{userController.cellphoneCarrier}" converter="cellphoneCarrier">
180                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
181                                                 <f:selectItems value="#{cellphone.allSmsProvider()}" var="p" itemValue="#{p}" itemLabel="#{p.providerCountry.countryLocalDialPrefix}#{p.providerDialPrefix} (#{p.providerName})" />
182                                         </h:selectOneMenu>
183
184                                         <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
185                                                 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
186                                         </h:inputText>
187                                 </div>
188
189                                 <div class="clear"></div>
190                         </div>
191                 </fieldset>
192         </div>
193
194         <div class="para">
195                 <fieldset id="user_profile">
196                         <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
197
198                         <div class="table_row">
199                                 <div class="table_left">
200                                         <h:outputLabel for="profileMode" value="#{msg.USER_PROFILE_MODE}" />
201                                 </div>
202
203                                 <div class="table_right">
204                                         <ui:include src="/WEB-INF/templates/generic/profile_mode_selection_box.tpl" />
205                                 </div>
206
207                                 <div class="clear"></div>
208                         </div>
209
210                         <div class="table_row">
211                                 <div class="para notice">
212                                         <ul>
213                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE1}</li>
214                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE2}</li>
215                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE3}</li>
216                                         </ul>
217                                 </div>
218                         </div>
219                 </fieldset>
220         </div>
221 </ui:composition>