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">
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="#{contactController}" />
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 styleClass="input" id="firstName" size="10" maxlength="255" value="#{contactController.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 styleClass="input" id="familyName" size="10" maxlength="255" value="#{contactController.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 styleClass="input" id="street" size="20" maxlength="255" value="#{contactController.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 styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{contactController.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 styleClass="input" id="zipCode" size="5" maxlength="6" value="#{contactController.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 styleClass="input" id="city" size="10" maxlength="255" value="#{contactController.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 styleClass="select" id="country" value="#{contactController.country}" converter="CountryConverter">
121 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
122 <f:selectItems value="#{countryController.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 styleClass="select" id="countryPhoneCode" value="#{contactController.phoneCountry}" converter="CountryConverter">
136 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
137 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
140 <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{contactController.phoneAreaCode}">
141 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
144 <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{contactController.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 styleClass="select" id="faxCountryCode" value="#{contactController.faxCountry}" converter="CountryConverter">
159 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
160 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
163 <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{contactController.faxAreaCode}">
164 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
167 <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{contactController.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 <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
182 <ui:param name="targetController" value="#{contactController}" />
186 <div class="clear"></div>
192 <fieldset id="user_profile">
193 <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
195 <div class="table_row">
196 <div class="table_left">
197 <h:outputLabel for="profileMode" value="#{msg.USER_PROFILE_MODE}" />
200 <div class="table_right">
201 <ui:include src="/WEB-INF/templates/generic/profile_mode_selection_box.tpl" />
204 <div class="clear"></div>
207 <div class="table_row">
208 <div class="para notice">
210 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_INVISIBLE}</li>
211 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_MEMBERS}</li>
212 <li>#{msg.SELECTION_NOTICE_USER_PROFILE_MODE_PUBLIC}</li>