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.ADMIN_PERSONAL_DATA_MINIMUM_NOTICE}
13 <fieldset id="personal_data">
14 <legend title="#{msg.ADMIN_PERSONAL_DATA_LEGEND_TITLE}">#{msg.ADMIN_PERSONAL_DATA_LEGEND}</legend>
16 <div class="table_row">
17 <div class="table_left">
18 <h:outputLabel for="gender" value="#{msg.ADMIN_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.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
33 <div class="table_right">
34 <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{adminUserController.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.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
47 <div class="table_right">
48 <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{adminUserController.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.ADMIN_PERSONAL_DATA_STREET}" />
61 <div class="table_right">
62 <h:inputText class="input" id="street" size="20" maxlength="255" value="#{adminUserController.street}">
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.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
75 <div class="table_right">
76 <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{adminUserController.houseNumber}" 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.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
89 <div class="table_right">
90 <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{adminUserController.zipCode}" 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.ADMIN_PERSONAL_DATA_CITY}" />
103 <div class="table_right">
104 <h:inputText class="input" id="city" size="10" maxlength="255" value="#{adminUserController.city}">
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.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
117 <div class="table_right">
118 <h:selectOneMenu class="select" id="country" value="#{adminUserController.country}" converter="country">
119 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
120 <f:selectItems value="#{countryController.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.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
132 <div class="table_right">
133 <h:selectOneMenu class="select" id="phoneCountryCode" value="#{adminUserController.phoneCountry}" converter="country">
134 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
135 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
138 <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{adminUserController.phoneAreaCode}">
139 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
142 <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{adminUserController.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.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
155 <div class="table_right">
156 <h:selectOneMenu class="select" id="faxCountryCode" value="#{adminUserController.faxCountry}" converter="country">
157 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
158 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
161 <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{adminUserController.faxAreaCode}">
162 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
165 <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{adminUserController.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.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
178 <div class="table_right">
179 <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{adminUserController.cellphoneCarrier}" converter="CellphoneCarrierConverter">
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="#{adminUserController.cellphoneNumber}">
185 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
189 <div class="clear"></div>
195 <fieldset id="login_data">
196 <legend title="#{msg.ADMIN_ADD_USER_EMAIL_LEGEND_TITLE}">#{msg.ADMIN_ADD_USER_EMAIL_LEGEND}</legend>
198 <div class="table_row">
199 <div class="table_left">
200 <h:outputLabel for="userName" value="#{msg.ADMIN_ADD_USER_ENTER_USER_NAME}" />
203 <div class="table_right">
204 <h:inputText class="input" id="userName" size="20" maxlength="255" value="#{adminUserController.userName}" required="true" />
207 <div class="clear"></div>
210 <div class="table_row">
211 <div class="table_left">
212 <h:outputLabel for="emailAddress" value="#{msg.ADMIN_ADD_USER_ENTER_EMAIL}" />
215 <div class="table_right">
216 <h:inputText class="input" id="emailAddress" size="20" maxlength="255" value="#{adminUserController.emailAddress}" required="true" />
219 <div class="clear"></div>
222 <div class="para"></div>
224 <div class="para notice">
226 <li>#{msg.ADMIN_ADD_USER_USER_NAME_NOTICE}</li>
227 <li>#{msg.ADMIN_ADD_USER_PASSWORD_NOTICE}</li>
228 <li>#{msg.ADMIN_ADD_USER_EMAIL_ADDRESS_NOTICE}</li>
229 <li>#{msg.ADMIN_ADD_USER_CUSTOMER_NUMBER_NOTICE}</li>