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">
77 <f:validateLongRange 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" />
93 <div class="clear"></div>
96 <div class="table_row">
97 <div class="table_left">
98 <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
101 <div class="table_right">
102 <h:inputText class="input" id="city" size="10" maxlength="255" value="#{userController.city}" required="true">
103 <f:validator for="city" validatorId="NameValidator" />
107 <div class="clear"></div>
110 <div class="table_row">
111 <div class="table_left">
112 <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
115 <div class="table_right">
116 <h:selectOneMenu class="select" id="country" value="#{userController.country}" converter="country">
117 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
118 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
122 <div class="clear"></div>
125 <div class="table_row">
126 <div class="table_left">
127 <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
130 <div class="table_right">
131 <h:selectOneMenu class="select" id="phoneCountryCode" value="#{userController.phoneCountry}" converter="country">
132 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
133 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
136 <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
137 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
140 <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
141 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
145 <div class="clear"></div>
148 <div class="table_row">
149 <div class="table_left">
150 <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
153 <div class="table_right">
154 <h:selectOneMenu class="select" id="faxCountryCode" value="#{userController.faxCountry}" converter="country">
155 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
156 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
159 <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
160 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
163 <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
164 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
168 <div class="clear"></div>
171 <div class="table_row">
172 <div class="table_left">
173 <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
176 <div class="table_right">
177 <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{userController.cellphoneCarrier}" converter="cellphoneCarrier">
178 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
179 <f:selectItems value="#{cellphone.allSmsProvider()}" var="p" itemValue="#{p}" itemLabel="#{p.providerCountry.countryLocalDialPrefix}#{p.providerDialPrefix} (#{p.providerName})" />
182 <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
183 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
187 <div class="clear"></div>