1 <?xml version="1.0" encoding="UTF-8" ?>
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">
8 <div class="para notice">
9 #{msg.PERSONAL_DATA_MINIMUM_NOTICE}
13 <fieldset id="personal_data">
14 <legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">#{msg.PERSONAL_DATA_LEGEND}</legend>
16 <div class="table_row">
17 <div class="table_left">
18 <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
21 <div class="table_right">
22 <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
23 <ui:param name="targetController" value="#{userController}" />
27 <div class="clear"></div>
30 <div class="table_row">
31 <div class="table_left">
32 <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
35 <div class="table_right">
36 <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{userController.firstName}" required="true">
37 <f:validator for="firstName" validatorId="NameValidator" />
41 <div class="clear"></div>
44 <div class="table_row">
45 <div class="table_left">
46 <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
49 <div class="table_right">
50 <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{userController.familyName}" required="true">
51 <f:validator for="familyName" validatorId="NameValidator" />
55 <div class="clear"></div>
58 <div class="table_row">
59 <div class="table_left">
60 <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
63 <div class="table_right">
64 <h:inputText class="input" id="street" size="20" maxlength="255" value="#{userController.street}" required="true">
65 <f:validator for="street" validatorId="NameValidator" />
69 <div class="clear"></div>
72 <div class="table_row">
73 <div class="table_left">
74 <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
77 <div class="table_right">
78 <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
79 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
83 <div class="clear"></div>
86 <div class="table_row">
87 <div class="table_left">
88 <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
91 <div class="table_right">
92 <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
93 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
97 <div class="clear"></div>
100 <div class="table_row">
101 <div class="table_left">
102 <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
105 <div class="table_right">
106 <h:inputText class="input" id="city" size="10" maxlength="255" value="#{userController.city}" required="true">
107 <f:validator for="city" validatorId="NameValidator" />
111 <div class="clear"></div>
114 <div class="table_row">
115 <div class="table_left">
116 <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
119 <div class="table_right">
120 <h:selectOneMenu class="select" id="country" value="#{userController.country}" converter="country">
121 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
122 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
126 <div class="clear"></div>
129 <div class="table_row">
130 <div class="table_left">
131 <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
134 <div class="table_right">
135 <h:selectOneMenu class="select" id="countryPhoneCode" value="#{userController.phoneCountry}" converter="country">
136 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
137 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
140 <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
141 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
144 <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
145 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
149 <div class="clear"></div>
152 <div class="table_row">
153 <div class="table_left">
154 <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
157 <div class="table_right">
158 <h:selectOneMenu class="select" id="faxCountryCode" value="#{userController.faxCountry}" converter="country">
159 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
160 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
163 <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
164 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
167 <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
168 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
172 <div class="clear"></div>
175 <div class="table_row">
176 <div class="table_left">
177 <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
180 <div class="table_right">
181 <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{userController.cellphoneCarrier}" converter="cellphoneCarrier">
182 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
183 <f:selectItems value="#{cellphone.allSmsProvider()}" var="p" itemValue="#{p}" itemLabel="#{p.providerCountry.countryExternalDialPrefix}#{p.providerDialPrefix} (#{p.providerName})" />
186 <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
187 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
191 <div class="clear"></div>
197 <fieldset id="user_profile">
198 <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
200 <div class="table_row">
201 <div class="table_left">
202 <h:outputLabel for="profileMode" value="#{msg.USER_PROFILE_MODE}" />
205 <div class="table_right">
206 <ui:include src="/WEB-INF/templates/generic/profile_mode_selection_box.tpl" />
209 <div class="clear"></div>
212 <div class="table_row">
213 <div class="para notice">
215 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE1}</li>
216 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE2}</li>
217 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE3}</li>