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://xmlns.jcp.org/jsf/facelets"
7 xmlns:p="http://primefaces.org/ui">
9 <div class="para notice">
10 #{msg.PERSONAL_DATA_MINIMUM_NOTICE}
14 <fieldset id="personal_data">
15 <legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">#{msg.PERSONAL_DATA_LEGEND}</legend>
17 <div class="table_row">
18 <div class="table_left">
19 <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
22 <div class="table_right">
23 <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
24 <ui:param name="targetController" value="#{contactController}" />
28 <div class="clear"></div>
31 <div class="table_row">
32 <div class="table_left">
33 <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
36 <div class="table_right">
37 <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{contactController.firstName}" required="true">
38 <f:validator validatorId="NameValidator" />
42 <div class="clear"></div>
45 <div class="table_row">
46 <div class="table_left">
47 <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
50 <div class="table_right">
51 <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{contactController.familyName}" required="true">
52 <f:validator for="familyName" validatorId="NameValidator" />
56 <div class="clear"></div>
59 <div class="table_row">
60 <div class="table_left">
61 <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
64 <div class="table_right">
65 <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{contactController.street}" required="true">
66 <f:validator validatorId="NameValidator" />
70 <div class="clear"></div>
73 <div class="table_row">
74 <div class="table_left">
75 <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
78 <div class="table_right">
79 <h:inputText styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{contactController.houseNumber}" required="true" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
80 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
84 <div class="clear"></div>
87 <div class="table_row">
88 <div class="table_left">
89 <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
92 <div class="table_right">
93 <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{contactController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
94 <f:validateLongRange minimum="1" maximum="99999" />
98 <div class="clear"></div>
101 <div class="table_row">
102 <div class="table_left">
103 <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
106 <div class="table_right">
107 <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{contactController.city}" required="true">
108 <f:validator validatorId="NameValidator" />
112 <div class="clear"></div>
115 <div class="table_row">
116 <div class="table_left">
117 <h:outputLabel for="birthday" value="#{msg.PERSONAL_DATA_BIRTHDAY}" />
120 <div class="table_right">
121 <h:inputText styleClass="input" id="birthday" value="#{contactController.birthday}" required="true" size="10" converterMessage="#{msg.INVALID_BIRTHDAY}">
122 <f:convertDateTime pattern="#{msg.BIRTHDAY_PATTERN}" />
126 <div class="clear"></div>
129 <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" />
131 <div class="table_row">
132 <div class="table_left">
133 <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
136 <div class="table_right">
137 <h:selectOneMenu styleClass="select" id="country" value="#{contactController.country}" converter="CountryConverter">
138 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
139 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
143 <div class="clear"></div>
146 <div class="table_row">
147 <div class="table_left">
148 <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
151 <div class="table_right">
152 <h:selectOneMenu styleClass="select" id="countryPhoneCode" value="#{contactController.phoneCountry}" converter="CountryConverter">
153 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
154 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
157 <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{contactController.phoneAreaCode}">
158 <f:validator validatorId="PhoneNumberValidator" />
161 <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{contactController.phoneNumber}">
162 <f:validator validatorId="PhoneNumberValidator" />
166 <div class="clear"></div>
169 <div class="table_row">
170 <div class="table_left">
171 <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
174 <div class="table_right">
175 <h:selectOneMenu styleClass="select" id="faxCountryCode" value="#{contactController.faxCountry}" converter="CountryConverter">
176 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
177 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
180 <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{contactController.faxAreaCode}">
181 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
184 <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{contactController.faxNumber}">
185 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
189 <div class="clear"></div>
192 <div class="table_row">
193 <div class="table_left">
194 <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
197 <div class="table_right">
198 <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
199 <ui:param name="targetController" value="#{contactController}" />
203 <div class="clear"></div>
208 <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
210 <fieldset id="user_profile">
211 <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
213 <div class="table_row">
214 <div class="table_left">
215 <h:outputLabel for="profileMode" value="#{msg.USER_PROFILE_MODE}" />
218 <div class="table_right">
219 <ui:include src="/WEB-INF/templates/generic/profile_mode_selection_box.tpl" />
222 <div class="clear"></div>
225 <div class="table_row">
226 <div class="para notice">
228 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_INVISIBLE}</li>
229 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_MEMBERS}</li>
230 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_PUBLIC}</li>