1 <?xml version="1.0" encoding="UTF-8" ?>
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:f="http://xmlns.jcp.org/jsf/core"
5 xmlns:h="http://xmlns.jcp.org/jsf/html"
6 xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
9 <fieldset id="personal_data">
10 <legend title="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE}">
11 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}" />
14 <div class="table_row">
15 <div class="table_left_medium">
16 <h:outputLabel for="gender" value="#{msg.ADMIN_PERSONAL_DATA_GENDER}" />
19 <div class="table_right_medium">
20 <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
21 <ui:param name="targetController" value="#{adminContactController}" />
25 <div class="clear"></div>
28 <h:message for="gender" errorClass="errors" fatalClass="errors" warnClass="errors" />
30 <div class="table_row">
31 <div class="table_left_medium">
32 <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
35 <div class="table_right_medium">
36 <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" />
39 <div class="clear"></div>
42 <div class="table_row">
43 <div class="table_left_medium">
44 <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
47 <div class="table_right_medium">
48 <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" />
51 <div class="clear"></div>
54 <div class="table_row">
55 <div class="table_left_medium">
56 <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
59 <div class="table_right_medium">
60 <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{adminContactController.street}" />
63 <div class="clear"></div>
66 <div class="table_row">
67 <div class="table_left_medium">
68 <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
71 <div class="table_right_medium">
72 <h:inputText styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{adminContactController.houseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
73 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
77 <div class="clear"></div>
80 <div class="table_row">
81 <div class="table_left_medium">
82 <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
85 <div class="table_right_medium">
86 <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{adminContactController.zipCode}" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
87 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
91 <div class="clear"></div>
94 <div class="table_row">
95 <div class="table_left_medium">
96 <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
99 <div class="table_right_medium">
100 <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{adminContactController.city}" />
103 <div class="clear"></div>
106 <div class="table_row">
107 <div class="table_left_medium">
108 <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
111 <div class="table_right_medium">
112 <h:selectOneMenu styleClass="select" id="country" value="#{adminContactController.country}" converter="CountryConverter">
113 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
114 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
118 <div class="clear"></div>
121 <div class="table_row">
122 <div class="table_left_medium">
123 <h:outputLabel value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
126 <div class="table_right_medium">
127 <h:selectOneMenu styleClass="select" id="countryPhoneCode" value="#{adminContactController.phoneCountry}" converter="CountryConverter">
128 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
129 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
132 <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{adminContactController.phoneAreaCode}">
133 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
136 <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{adminContactController.phoneNumber}">
137 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
141 <div class="clear"></div>
144 <div class="table_row">
145 <div class="table_left_medium">
146 <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
149 <div class="table_right_medium">
150 <h:selectOneMenu styleClass="select" id="faxCountryCode" value="#{adminContactController.faxCountry}" converter="CountryConverter">
151 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
152 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
155 <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
156 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
159 <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{adminContactController.faxNumber}">
160 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
164 <div class="clear"></div>
167 <div class="table_row">
168 <div class="table_left_medium">
169 <h:outputLabel for="cellphoneNumber" value="#{msg.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
172 <div class="table_right_medium">
173 <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
174 <ui:param name="targetController" value="#{adminContactController}" />
178 <div class="clear"></div>
181 <div class="table_row">
182 <div class="table_left_medium">
183 <h:outputLabel for="emailAddress" value="#{msg.ADMIN_PERSONAL_DATA_EMAIL_ADDRESS}" />
186 <div class="table_right_medium">
187 <h:inputText styleClass="input" id="emailAddress" size="10" maxlength="255" value="#{adminContactController.emailAddress}" />
190 <div class="clear"></div>