1 <?xml version="1.0" encoding="UTF-8" ?>
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5 xmlns:f="http://xmlns.jcp.org/jsf/core"
6 xmlns:h="http://xmlns.jcp.org/jsf/html"
7 xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
9 <h:panelGroup styleClass="para" layout="block">
10 <h:outputText value="#{allowEmptyRequiredData}" rendered="#{not empty allowEmptyRequiredData}" />
11 <h:outputText value="allowEmptyRequiredData is empty" rendered="#{empty allowEmptyRequiredData}" />
13 <fieldset class="fieldset" id="personal_data">
14 <legend title="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE}">
15 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}" />
18 <widgets:outputPersonalTitleTableRow targetController="#{adminContactController}" allowEmptyRequiredData="#{allowEmptyRequiredData}" />
20 <h:panelGroup styleClass="table_row" layout="block">
21 <div class="table_left_medium">
22 <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
25 <div class="table_right_medium">
26 <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" />
29 <div class="clear"></div>
32 <h:panelGroup styleClass="error_container" layout="block">
33 <h:message for="firstName" errorClass="errors" fatalClass="errors" warnClass="errors" />
36 <h:panelGroup styleClass="table_row" layout="block">
37 <div class="table_left_medium">
38 <h:outputLabel for="title" value="#{msg.ADMIN_PERSONAL_DATA_TITLE}" />
41 <div class="table_right_medium">
42 <h:inputText styleClass="input" id="title" size="5" maxlength="255" value="#{adminContactController.academicTitle}" />
45 <div class="clear"></div>
48 <h:panelGroup styleClass="error_container" layout="block">
49 <h:message for="title" errorClass="errors" fatalClass="errors" warnClass="errors" />
52 <h:panelGroup styleClass="table_row" layout="block">
53 <div class="table_left_medium">
54 <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
57 <div class="table_right_medium">
58 <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" />
61 <div class="clear"></div>
64 <h:panelGroup styleClass="error_container" layout="block">
65 <h:message for="familyName" errorClass="errors" fatalClass="errors" warnClass="errors" />
68 <h:panelGroup styleClass="table_row" layout="block">
69 <div class="table_left_medium">
70 <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
73 <div class="table_right_medium">
74 <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{adminContactController.street}" />
77 <div class="clear"></div>
80 <h:panelGroup styleClass="error_container" layout="block">
81 <h:message for="street" errorClass="errors" fatalClass="errors" warnClass="errors" />
84 <h:panelGroup styleClass="table_row" layout="block">
85 <div class="table_left_medium">
86 <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
89 <div class="table_right_medium">
90 <h:inputText styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{adminContactController.houseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
91 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
95 <div class="clear"></div>
98 <h:panelGroup styleClass="error_container" layout="block">
99 <h:message for="houseNumber" errorClass="errors" fatalClass="errors" warnClass="errors" />
102 <h:panelGroup styleClass="table_row" layout="block">
103 <div class="table_left_medium">
104 <h:outputLabel for="houseNumberExtension" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER_EXTENSION}" />
107 <div class="table_right_medium">
108 <h:inputText styleClass="input" id="houseNumberExtension" size="2" maxlength="2" value="#{adminContactController.houseNumberExtension}" />
111 <div class="clear"></div>
114 <h:panelGroup styleClass="error_container" layout="block">
115 <h:message for="houseNumberExtension" errorClass="errors" fatalClass="errors" warnClass="errors" />
118 <h:panelGroup styleClass="table_row" layout="block">
119 <div class="table_left_medium">
120 <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
123 <div class="table_right_medium">
124 <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{adminContactController.zipCode}" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
125 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
129 <div class="clear"></div>
132 <h:panelGroup styleClass="error_container" layout="block">
133 <h:message for="zipCode" errorClass="errors" fatalClass="errors" warnClass="errors" />
136 <h:panelGroup styleClass="table_row" layout="block">
137 <div class="table_left_medium">
138 <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
141 <div class="table_right_medium">
142 <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{adminContactController.city}" />
145 <div class="clear"></div>
148 <h:panelGroup styleClass="error_container" layout="block">
149 <h:message for="city" errorClass="errors" fatalClass="errors" warnClass="errors" />
152 <h:panelGroup styleClass="table_row" layout="block">
153 <div class="table_left_medium">
154 <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
157 <div class="table_right_medium">
158 <h:selectOneMenu styleClass="select" id="country" value="#{adminContactController.contactCountry}">
159 <f:converter converterId="CountryConverter" />
160 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
161 <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryCode} (#{msg[country.countryI18nKey]})" />
165 <div class="clear"></div>
168 <h:panelGroup styleClass="error_container" layout="block">
169 <h:message for="country" errorClass="errors" fatalClass="errors" warnClass="errors" />
172 <h:panelGroup styleClass="table_row" layout="block">
173 <div class="table_left_medium">
174 <h:outputLabel for="landLineCountryCode" value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
177 <div class="table_right_medium">
178 <h:selectOneMenu styleClass="select right_space" id="landLineCountryCode" value="#{adminContactController.landLineCountry}">
179 <f:converter converterId="CountryConverter" />
180 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
181 <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
184 <h:inputText styleClass="input right_space" id="landLineAreaCode" size="5" maxlength="10" value="#{adminContactController.landLineAreaCode}">
185 <f:validator for="landLineAreaCode" validatorId="PhoneNumberValidator" />
188 <h:inputText styleClass="input" id="landLineNumber" size="10" maxlength="20" value="#{adminContactController.landLineNumber}">
189 <f:validator for="landLineNumber" validatorId="PhoneNumberValidator" />
193 <div class="clear"></div>
196 <h:panelGroup styleClass="table_row" layout="block">
197 <div class="table_left_medium">
198 <h:outputLabel for="faxCountryCode" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
201 <div class="table_right_medium">
202 <h:selectOneMenu styleClass="select right_space" id="faxCountryCode" value="#{adminContactController.faxCountry}">
203 <f:converter converterId="CountryConverter" />
204 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
205 <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
208 <h:inputText styleClass="input right_space" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
209 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
212 <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{adminContactController.faxNumber}">
213 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
217 <div class="clear"></div>
220 <widgets:outputMobileNumberTableRow targetController="#{adminContactController}" labelMessage="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
222 <h:panelGroup styleClass="table_row" layout="block">
223 <div class="table_left_medium">
224 <h:outputLabel for="emailAddress" value="#{msg.ADMIN_PERSONAL_DATA_EMAIL_ADDRESS}" />
227 <div class="table_right_medium">
228 <h:inputText styleClass="input" id="emailAddress" size="10" maxlength="255" value="#{adminContactController.emailAddress}" validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}">
229 <f:validator validatorId="EmailAddressValidator" />
230 <f:attribute name="allowEmptyEmail" value="#{allowEmptyRequiredData}" rendered="#{not empty allowEmptyRequiredData}" />
234 <div class="clear"></div>
237 <h:panelGroup styleClass="error_container" layout="block">
238 <h:message for="emailAddress" errorClass="errors" fatalClass="errors" warnClass="errors" />
241 <h:panelGroup styleClass="table_row" layout="block">
242 <div class="table_left_medium">
243 <h:outputLabel for="contactBirthday" value="#{msg.ADMIN_PERSONAL_DATA_BIRTHDAY}" />
246 <div class="table_right_medium">
247 <h:inputText styleClass="input" id="contactBirthday" value="#{adminContactController.birthday}" size="10" converterMessage="#{msg.INVALID_BIRTHDAY}">
248 <f:convertDateTime pattern="#{msg.BIRTHDAY_PATTERN}" />
252 <div class="clear"></div>
255 <h:panelGroup styleClass="error_container" layout="block">
256 <h:message for="contactBirthday" errorClass="errors" fatalClass="errors" warnClass="errors" />
259 <h:panelGroup styleClass="table_row" layout="block">
260 <div class="table_left_medium">
261 <h:outputLabel for="contactComment" value="#{msg.ADMIN_PERSONAL_DATA_COMMENT}" />
264 <div class="table_right_medium">
265 <h:inputTextarea id="contactComment" styleClass="input" value="#{adminContactController.comment}" rows="7" cols="25" />
268 <div class="clear"></div>
273 <h:panelGroup styleClass="para notice" layout="block">
276 <h:outputText value="#{msg.ADMIN_CONTACT_DATA_EMAIL_ADDRESS_NOTICE}" />