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" />
25 <div class="clear"></div>
28 <div class="table_row">
29 <div class="table_left">
30 <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
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" />
39 <div class="clear"></div>
42 <div class="table_row">
43 <div class="table_left">
44 <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
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" />
53 <div class="clear"></div>
56 <div class="table_row">
57 <div class="table_left">
58 <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
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" />
67 <div class="clear"></div>
70 <div class="table_row">
71 <div class="table_left">
72 <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
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" />
81 <div class="clear"></div>
84 <div class="table_row">
85 <div class="table_left">
86 <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
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" />
95 <div class="clear"></div>
98 <div class="table_row">
99 <div class="table_left">
100 <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
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" />
109 <div class="clear"></div>
112 <div class="table_row">
113 <div class="table_left">
114 <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
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]})" />
124 <div class="clear"></div>
127 <div class="table_row">
128 <div class="table_left">
129 <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
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}" />
138 <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
139 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
142 <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
143 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
147 <div class="clear"></div>
150 <div class="table_row">
151 <div class="table_left">
152 <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
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}" />
161 <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
162 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
165 <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
166 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
170 <div class="clear"></div>
173 <div class="table_row">
174 <div class="table_left">
175 <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
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})" />
184 <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
185 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
189 <div class="clear"></div>
195 <fieldset id="user_profile">
196 <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
198 <div class="table_row">
199 <div class="table_left">
200 <h:outputLabel for="publicUserProfileFlag" value="#{msg.PUBLIC_USER_PROFILE_FLAG}" />
203 <div class="table_right">
204 <h:selectOneMenu class="select" id="publicUserProfileFlag" value="#{userController.userProfilePublic}" required="true" requiredMessage="#{msg.PUBLIC_USER_PROFILE_NOT_CHOOSEN_MESSAGE}">
205 <f:selectItem class="option" itemValue="true" itemLabel="#{msg.PUBLIC_PROFILE_ENABLED}" />
206 <f:selectItem class="option" itemValue="false" itemLabel="#{msg.PUBLIC_PROFILE_DISABLED}" />
207 <!-- <f:converter for="publicUserProfileFlag" converterId="trueFalse" /> //-->
208 <f:validator for="publicUserProfileFlag" validatorId="UserProfileVisibilityValidator" />
212 <div class="clear"></div>