]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/contact/form_contact_data.tpl
30065fd46b4afdafbf72290b2e3d126e5a5bf848
[pizzaservice-war.git] / web / WEB-INF / templates / contact / 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://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <div class="para notice">
9                 #{msg.PERSONAL_DATA_MINIMUM_NOTICE}
10         </div>
11
12         <div class="para">
13                 <fieldset id="personal_data">
14                         <legend title="#{msg.PERSONAL_DATA_LEGEND_TITLE}">#{msg.PERSONAL_DATA_LEGEND}</legend>
15
16                         <div class="table_row">
17                                 <div class="table_left">
18                                         <h:outputLabel for="gender" value="#{msg.PERSONAL_DATA_GENDER}" />
19                                 </div>
20
21                                 <div class="table_right">
22                                         <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
23                                                 <ui:param  name="targetController" value="#{contactController}" />
24                                         </ui:include>
25                                 </div>
26
27                                 <div class="clear"></div>
28                         </div>
29
30                         <div class="table_row">
31                                 <div class="table_left">
32                                         <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
33                                 </div>
34
35                                 <div class="table_right">
36                                         <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{contactController.firstName}" required="true">
37                                                 <f:validator for="firstName" validatorId="NameValidator" />
38                                         </h:inputText>
39                                 </div>
40
41                                 <div class="clear"></div>
42                         </div>
43
44                         <div class="table_row">
45                                 <div class="table_left">
46                                         <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
47                                 </div>
48
49                                 <div class="table_right">
50                                         <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{contactController.familyName}" required="true">
51                                                 <f:validator for="familyName" validatorId="NameValidator" />
52                                         </h:inputText>
53                                 </div>
54
55                                 <div class="clear"></div>
56                         </div>
57
58                         <div class="table_row">
59                                 <div class="table_left">
60                                         <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
61                                 </div>
62
63                                 <div class="table_right">
64                                         <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{contactController.street}" required="true">
65                                                 <f:validator for="street" validatorId="NameValidator" />
66                                         </h:inputText>
67                                 </div>
68
69                                 <div class="clear"></div>
70                         </div>
71
72                         <div class="table_row">
73                                 <div class="table_left">
74                                         <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
75                                 </div>
76
77                                 <div class="table_right">
78                                         <h:inputText styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{contactController.houseNumber}" required="true" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
79                                                 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
80                                         </h:inputText>
81                                 </div>
82
83                                 <div class="clear"></div>
84                         </div>
85
86                         <div class="table_row">
87                                 <div class="table_left">
88                                         <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
89                                 </div>
90
91                                 <div class="table_right">
92                                         <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{contactController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
93                                                 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
94                                         </h:inputText>
95                                 </div>
96
97                                 <div class="clear"></div>
98                         </div>
99
100                         <div class="table_row">
101                                 <div class="table_left">
102                                         <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
103                                 </div>
104
105                                 <div class="table_right">
106                                         <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{contactController.city}" required="true">
107                                                 <f:validator for="city" validatorId="NameValidator" />
108                                         </h:inputText>
109                                 </div>
110
111                                 <div class="clear"></div>
112                         </div>
113
114                         <div class="table_row">
115                                 <div class="table_left">
116                                         <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
117                                 </div>
118
119                                 <div class="table_right">
120                                         <h:selectOneMenu styleClass="select" id="country" value="#{contactController.country}" converter="CountryConverter">
121                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
122                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
123                                         </h:selectOneMenu>
124                                 </div>
125
126                                 <div class="clear"></div>
127                         </div>
128
129                         <div class="table_row">
130                                 <div class="table_left">
131                                         <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
132                                 </div>
133
134                                 <div class="table_right">
135                                         <h:selectOneMenu styleClass="select" id="countryPhoneCode" value="#{contactController.phoneCountry}" converter="CountryConverter">
136                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
137                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
138                                         </h:selectOneMenu>
139
140                                         <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{contactController.phoneAreaCode}">
141                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
142                                         </h:inputText>
143
144                                         <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{contactController.phoneNumber}">
145                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
146                                         </h:inputText>
147                                 </div>
148
149                                 <div class="clear"></div>
150                         </div>
151
152                         <div class="table_row">
153                                 <div class="table_left">
154                                         <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
155                                 </div>
156
157                                 <div class="table_right">
158                                         <h:selectOneMenu styleClass="select" id="faxCountryCode" value="#{contactController.faxCountry}" converter="CountryConverter">
159                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
160                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
161                                         </h:selectOneMenu>
162
163                                         <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{contactController.faxAreaCode}">
164                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
165                                         </h:inputText>
166
167                                         <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{contactController.faxNumber}">
168                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
169                                         </h:inputText>
170                                 </div>
171
172                                 <div class="clear"></div>
173                         </div>
174
175                         <div class="table_row">
176                                 <div class="table_left">
177                                         <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
178                                 </div>
179
180                                 <div class="table_right">
181                                         <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
182                                                 <ui:param name="targetController" value="#{contactController}" />
183                                         </ui:include>
184                                 </div>
185
186                                 <div class="clear"></div>
187                         </div>
188                 </fieldset>
189         </div>
190
191         <div class="para">
192                 <fieldset id="user_profile">
193                         <legend title="#{msg.USER_PROFILE_LEGEND_TITLE}">#{msg.USER_PROFILE_LEGEND}</legend>
194
195                         <div class="table_row">
196                                 <div class="table_left">
197                                         <h:outputLabel for="profileMode" value="#{msg.USER_PROFILE_MODE}" />
198                                 </div>
199
200                                 <div class="table_right">
201                                         <ui:include src="/WEB-INF/templates/generic/profile_mode_selection_box.tpl" />
202                                 </div>
203
204                                 <div class="clear"></div>
205                         </div>
206
207                         <div class="table_row">
208                                 <div class="para notice">
209                                         <ul>
210                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE1}</li>
211                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE2}</li>
212                                                 <li>#{msg.USER_PROFILE_MODE_SELECTION_NOTICE3}</li>
213                                         </ul>
214                                 </div>
215                         </div>
216                 </fieldset>
217         </div>
218 </ui:composition>