]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
Used much more h:outputText instead of directly the message in the template. This...
[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}">
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                         <div class="table_row">
29                                 <div class="table_left_medium">
30                                         <h:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
31                                 </div>
32
33                                 <div class="table_right_medium">
34                                         <h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{adminContactController.firstName}" />
35                                 </div>
36
37                                 <div class="clear"></div>
38                         </div>
39
40                         <div class="table_row">
41                                 <div class="table_left_medium">
42                                         <h:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
43                                 </div>
44
45                                 <div class="table_right_medium">
46                                         <h:inputText styleClass="input" id="familyName" size="10" maxlength="255" value="#{adminContactController.familyName}" />
47                                 </div>
48
49                                 <div class="clear"></div>
50                         </div>
51
52                         <div class="table_row">
53                                 <div class="table_left_medium">
54                                         <h:outputLabel for="street" value="#{msg.ADMIN_PERSONAL_DATA_STREET}" />
55                                 </div>
56
57                                 <div class="table_right_medium">
58                                         <h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{adminContactController.street}" />
59                                 </div>
60
61                                 <div class="clear"></div>
62                         </div>
63
64                         <div class="table_row">
65                                 <div class="table_left_medium">
66                                         <h:outputLabel for="houseNumber" value="#{msg.ADMIN_PERSONAL_DATA_HOUSE_NUMBER}" />
67                                 </div>
68
69                                 <div class="table_right_medium">
70                                         <h:inputText styleClass="input" id="houseNumber" size="3" maxlength="5" value="#{adminContactController.houseNumber}" validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}">
71                                                 <f:validateLongRange for="houseNumber" minimum="1" maximum="500" />
72                                         </h:inputText>
73                                 </div>
74
75                                 <div class="clear"></div>
76                         </div>
77
78                         <div class="table_row">
79                                 <div class="table_left_medium">
80                                         <h:outputLabel for="zipCode" value="#{msg.ADMIN_PERSONAL_DATA_ZIP_CODE}" />
81                                 </div>
82
83                                 <div class="table_right_medium">
84                                         <h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{adminContactController.zipCode}" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
85                                                 <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
86                                         </h:inputText>
87                                 </div>
88
89                                 <div class="clear"></div>
90                         </div>
91
92                         <div class="table_row">
93                                 <div class="table_left_medium">
94                                         <h:outputLabel for="city" value="#{msg.ADMIN_PERSONAL_DATA_CITY}" />
95                                 </div>
96
97                                 <div class="table_right_medium">
98                                         <h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{adminContactController.city}" />
99                                 </div>
100
101                                 <div class="clear"></div>
102                         </div>
103
104                         <div class="table_row">
105                                 <div class="table_left_medium">
106                                         <h:outputLabel for="country" value="#{msg.ADMIN_PERSONAL_DATA_COUNTRY_CODE}" />
107                                 </div>
108
109                                 <div class="table_right_medium">
110                                         <h:selectOneMenu  styleClass="select" id="country" value="#{adminContactController.country}" converter="CountryConverter">
111                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
112                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
113                                         </h:selectOneMenu>
114                                 </div>
115
116                                 <div class="clear"></div>
117                         </div>
118
119                         <div class="table_row">
120                                 <div class="table_left_medium">
121                                         <h:outputLabel value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
122                                 </div>
123
124                                 <div class="table_right_medium">
125                                         <h:selectOneMenu styleClass="select" id="countryPhoneCode" value="#{adminContactController.phoneCountry}" converter="CountryConverter">
126                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
127                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
128                                         </h:selectOneMenu>
129
130                                         <h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{adminContactController.phoneAreaCode}">
131                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
132                                         </h:inputText>
133
134                                         <h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{adminContactController.phoneNumber}">
135                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
136                                         </h:inputText>
137                                 </div>
138
139                                 <div class="clear"></div>
140                         </div>
141
142                         <div class="table_row">
143                                 <div class="table_left_medium">
144                                         <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
145                                 </div>
146
147                                 <div class="table_right_medium">
148                                         <h:selectOneMenu styleClass="select" id="faxCountryCode" value="#{adminContactController.faxCountry}" converter="CountryConverter">
149                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
150                                                 <f:selectItems value="#{countryController.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
151                                         </h:selectOneMenu>
152
153                                         <h:inputText styleClass="input" id="faxAreaCode" size="5" maxlength="10" value="#{adminContactController.faxAreaCode}">
154                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
155                                         </h:inputText>
156
157                                         <h:inputText styleClass="input" id="faxNumber" size="10" maxlength="20" value="#{adminContactController.faxNumber}">
158                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
159                                         </h:inputText>
160                                 </div>
161
162                                 <div class="clear"></div>
163                         </div>
164
165                         <div class="table_row">
166                                 <div class="table_left_medium">
167                                         <h:outputLabel for="cellphoneNumber" value="#{msg.ADMIN_PERSONAL_DATA_CELLPHONE_NUMBER}" />
168                                 </div>
169
170                                 <div class="table_right_medium">
171                                         <ui:include src="/WEB-INF/templates/generic/mobile_selection_box.tpl">
172                                                 <ui:param name="targetController" value="#{adminContactController}" />
173                                         </ui:include>
174                                 </div>
175
176                                 <div class="clear"></div>
177                         </div>
178
179                         <div class="table_row">
180                                 <div class="table_left_medium">
181                                         <h:outputLabel for="emailAddress" value="#{msg.ADMIN_PERSONAL_DATA_EMAIL_ADDRESS}" />
182                                 </div>
183
184                                 <div class="table_right_medium">
185                                         <h:inputText styleClass="input" id="emailAddress" size="10" maxlength="255" value="#{adminContactController.emailAddress}" />
186                                 </div>
187
188                                 <div class="clear"></div>
189                         </div>
190                 </fieldset>
191         </div>
192 </ui:composition>