]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
renamed converter to make them more clear (in JSF page)
[pizzaservice-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}">#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}</legend>
11
12                         <div class="table_row">
13                                 <div class="table_left">
14                                         <h:outputLabel for="gender" value="#{msg.ADMIN_PERSONAL_DATA_GENDER}" />
15                                 </div>
16
17                                 <div class="table_right">
18                                         <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl">
19                                                 <ui:param name="targetController" value="#{adminContactController}" />
20                                         </ui:include>
21                                 </div>
22
23                                 <div class="clear"></div>
24                         </div>
25
26                         <div class="table_row">
27                                 <div class="table_left">
28                                         <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
29                                 </div>
30
31                                 <div class="table_right">
32                                         <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" required="true">
33                                                 <f:validator for="firstName" validatorId="NameValidator" />
34                                         </h:inputText>
35                                 </div>
36
37                                 <div class="clear"></div>
38                         </div>
39
40                         <div class="table_row">
41                                 <div class="table_left">
42                                         <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
43                                 </div>
44
45                                 <div class="table_right">
46                                         <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" required="true">
47                                                 <f:validator for="familyName" validatorId="NameValidator" />
48                                         </h:inputText>
49                                 </div>
50
51                                 <div class="clear"></div>
52                         </div>
53
54                         <div class="table_row">
55                                 <div class="table_left">
56                                         <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
57                                 </div>
58
59                                 <div class="table_right">
60                                         <h:inputText class="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">
68                                         <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
69                                 </div>
70
71                                 <div class="table_right">
72                                         <h:inputText class="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">
82                                         <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
83                                 </div>
84
85                                 <div class="table_right">
86                                         <h:inputText class="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">
96                                         <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
97                                 </div>
98
99                                 <div class="table_right">
100                                         <h:inputText class="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">
108                                         <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
109                                 </div>
110
111                                 <div class="table_right">
112                                         <h:selectOneMenu class="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">
123                                         <h:outputLabel value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
124                                 </div>
125
126                                 <div class="table_right">
127                                         <h:selectOneMenu class="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 class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{adminContactController.phoneAreaCode}">
133                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
134                                         </h:inputText>
135
136                                         <h:inputText class="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">
146                                         <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
147                                 </div>
148
149                                 <div class="table_right">
150                                         <h:selectOneMenu class="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 class="input" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
156                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
157                                         </h:inputText>
158
159                                         <h:inputText class="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">
169                                         <h:outputLabel for="cellphoneNumber" value="#{msg.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
170                                 </div>
171
172                                 <div class="table_right">
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                 </fieldset>
181         </div>
182 </ui:composition>