]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
no, the error message for the salutation (aka. "gender") should not be in generic...
[jjobs-war.git] / web / WEB-INF / templates / admin / contact / admin_form_contact_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
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">
7
8         <div class="para">
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}" />
12                         </legend>
13
14                         <div class="table_row">
15                                 <div class="table_left_medium">
16                                         <h:outputLabel for="gender" value="#{msg.ADMIN_PERSONAL_DATA_GENDER}" />
17                                 </div>
18
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}" />
22                                         </ui:include>
23                                 </div>
24
25                                 <div class="clear"></div>
26                         </div>
27
28                         <h:message for="gender" errorClass="errors" fatalClass="errors" warnClass="errors" />
29
30                         <div class="table_row">
31                                 <div class="table_left_medium">
32                                         <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
33                                 </div>
34
35                                 <div class="table_right_medium">
36                                         <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" />
37                                 </div>
38
39                                 <div class="clear"></div>
40                         </div>
41
42                         <div class="table_row">
43                                 <div class="table_left_medium">
44                                         <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
45                                 </div>
46
47                                 <div class="table_right_medium">
48                                         <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" />
49                                 </div>
50
51                                 <div class="clear"></div>
52                         </div>
53
54                         <div class="table_row">
55                                 <div class="table_left_medium">
56                                         <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
57                                 </div>
58
59                                 <div class="table_right_medium">
60                                         <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{adminContactController.street}" />
61                                 </div>
62
63                                 <div class="clear"></div>
64                         </div>
65
66                         <div class="table_row">
67                                 <div class="table_left_medium">
68                                         <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
69                                 </div>
70
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" />
74                                         </h:inputText>
75                                 </div>
76
77                                 <div class="clear"></div>
78                         </div>
79
80                         <div class="table_row">
81                                 <div class="table_left_medium">
82                                         <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
83                                 </div>
84
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" />
88                                         </h:inputText>
89                                 </div>
90
91                                 <div class="clear"></div>
92                         </div>
93
94                         <div class="table_row">
95                                 <div class="table_left_medium">
96                                         <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
97                                 </div>
98
99                                 <div class="table_right_medium">
100                                         <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{adminContactController.city}" />
101                                 </div>
102
103                                 <div class="clear"></div>
104                         </div>
105
106                         <div class="table_row">
107                                 <div class="table_left_medium">
108                                         <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
109                                 </div>
110
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]})" />
115                                         </h:selectOneMenu>
116                                 </div>
117
118                                 <div class="clear"></div>
119                         </div>
120
121                         <div class="table_row">
122                                 <div class="table_left_medium">
123                                         <h:outputLabel value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
124                                 </div>
125
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}" />
130                                         </h:selectOneMenu>
131
132                                         <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{adminContactController.phoneAreaCode}">
133                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
134                                         </h:inputText>
135
136                                         <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{adminContactController.phoneNumber}">
137                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
138                                         </h:inputText>
139                                 </div>
140
141                                 <div class="clear"></div>
142                         </div>
143
144                         <div class="table_row">
145                                 <div class="table_left_medium">
146                                         <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
147                                 </div>
148
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}" />
153                                         </h:selectOneMenu>
154
155                                         <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
156                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
157                                         </h:inputText>
158
159                                         <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{adminContactController.faxNumber}">
160                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
161                                         </h:inputText>
162                                 </div>
163
164                                 <div class="clear"></div>
165                         </div>
166
167                         <div class="table_row">
168                                 <div class="table_left_medium">
169                                         <h:outputLabel for="cellphoneNumber" value="#{msg.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
170                                 </div>
171
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}" />
175                                         </ui:include>
176                                 </div>
177
178                                 <div class="clear"></div>
179                         </div>
180
181                         <div class="table_row">
182                                 <div class="table_left_medium">
183                                         <h:outputLabel for="emailAddress" value="#{msg.ADMIN_PERSONAL_DATA_EMAIL_ADDRESS}" />
184                                 </div>
185
186                                 <div class="table_right_medium">
187                                         <h:inputText styleClass="input" id="emailAddress" size="10" maxlength="255" value="#{adminContactController.emailAddress}" />
188                                 </div>
189
190                                 <div class="clear"></div>
191                         </div>
192                 </fieldset>
193         </div>
194 </ui:composition>