]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/form_personal_data.tpl
wrong bait, wrong fish, wrong fix ;-)
[addressbook-war.git] / web / WEB-INF / templates / generic / form_personal_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://java.sun.com/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                                 </div>
24
25                                 <div class="clear"></div>
26                         </div>
27
28                         <div class="table_row">
29                                 <div class="table_left">
30                                         <h:outputLabel for="firstName" value="#{msg.PERSONAL_DATA_FIRST_NAME}" />
31                                 </div>
32
33                                 <div class="table_right">
34                                         <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{userController.firstName}" required="true">
35                                                 <f:validator validatorId="NameValidator" />
36                                         </h:inputText>
37                                 </div>
38
39                                 <div class="clear"></div>
40                         </div>
41
42                         <div class="table_row">
43                                 <div class="table_left">
44                                         <h:outputLabel for="familyName" value="#{msg.PERSONAL_DATA_FAMILY_NAME}" />
45                                 </div>
46
47                                 <div class="table_right">
48                                         <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{userController.familyName}" required="true">
49                                                 <f:validator validatorId="NameValidator" />
50                                         </h:inputText>
51                                 </div>
52
53                                 <div class="clear"></div>
54                         </div>
55
56                         <div class="table_row">
57                                 <div class="table_left">
58                                         <h:outputLabel for="street" value="#{msg.PERSONAL_DATA_STREET}" />
59                                 </div>
60
61                                 <div class="table_right">
62                                         <h:inputText class="input" id="street" size="20" maxlength="255" value="#{userController.street}" required="true">
63                                                 <f:validator validatorId="NameValidator" />
64                                         </h:inputText>
65                                 </div>
66
67                                 <div class="clear"></div>
68                         </div>
69
70                         <div class="table_row">
71                                 <div class="table_left">
72                                         <h:outputLabel for="houseNumber" value="#{msg.PERSONAL_DATA_HOUSE_NUMBER}" />
73                                 </div>
74
75                                 <div class="table_right">
76                                         <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{userController.houseNumber}" required="true">
77                                                 <f:validateLongRange minimum="1" maximum="500" />
78                                         </h:inputText>
79                                 </div>
80
81                                 <div class="clear"></div>
82                         </div>
83
84                         <div class="table_row">
85                                 <div class="table_left">
86                                         <h:outputLabel for="zipCode" value="#{msg.PERSONAL_DATA_ZIP_CODE}" />
87                                 </div>
88
89                                 <div class="table_right">
90                                         <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{userController.zipCode}" required="true" />
91                                 </div>
92
93                                 <div class="clear"></div>
94                         </div>
95
96                         <div class="table_row">
97                                 <div class="table_left">
98                                         <h:outputLabel for="city" value="#{msg.PERSONAL_DATA_CITY}" />
99                                 </div>
100
101                                 <div class="table_right">
102                                         <h:inputText class="input" id="city" size="10" maxlength="255" value="#{userController.city}" required="true">
103                                                 <f:validator validatorId="NameValidator" />
104                                         </h:inputText>
105                                 </div>
106
107                                 <div class="clear"></div>
108                         </div>
109
110                         <div class="table_row">
111                                 <div class="table_left">
112                                         <h:outputLabel for="country" value="#{msg.PERSONAL_DATA_COUNTRY_CODE}" />
113                                 </div>
114
115                                 <div class="table_right">
116                                         <h:selectOneMenu class="select" id="country" value="#{userController.country}">
117                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryCode} (#{msg[c.countryI18nkey]})" />
118                                         </h:selectOneMenu>
119                                 </div>
120
121                                 <div class="clear"></div>
122                         </div>
123
124                         <div class="table_row">
125                                 <div class="table_left">
126                                         <h:outputLabel value="#{msg.PERSONAL_DATA_PHONE_NUMBER}" />
127                                 </div>
128
129                                 <div class="table_right">
130                                         <h:selectOneMenu class="select" id="phoneCountryCode" value="#{userController.phoneCountry}">
131                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
132                                         </h:selectOneMenu>
133
134                                         <h:inputText class="input" id="phoneAreaCode" size="5" maxlength="10" value="#{userController.phoneAreaCode}">
135                                                 <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
136                                         </h:inputText>
137
138                                         <h:inputText class="input" id="phoneNumber" size="10" maxlength="20" value="#{userController.phoneNumber}">
139                                                 <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
140                                         </h:inputText>
141                                 </div>
142
143                                 <div class="clear"></div>
144                         </div>
145
146                         <div class="table_row">
147                                 <div class="table_left">
148                                         <h:outputLabel for="faxNumber" value="#{msg.PERSONAL_DATA_FAX_NUMBER}" />
149                                 </div>
150
151                                 <div class="table_right">
152                                         <h:selectOneMenu class="select" id="faxCountryCode" value="#{userController.faxCountry}">
153                                                 <f:selectItems value="#{country.allCountries()}" var="c" itemValue="#{c}" itemLabel="#{c.countryAbroadDialPrefix}#{c.countryPhoneCode}" />
154                                         </h:selectOneMenu>
155
156                                         <h:inputText class="input" id="faxAreaCode" size="5" maxlength="10" value="#{userController.faxAreaCode}">
157                                                 <f:validator for="faxAreaCode" validatorId="PhoneNumberValidator" />
158                                         </h:inputText>
159
160                                         <h:inputText class="input" id="faxNumber" size="10" maxlength="20" value="#{userController.faxNumber}">
161                                                 <f:validator for="faxNumber" validatorId="PhoneNumberValidator" />
162                                         </h:inputText>
163                                 </div>
164
165                                 <div class="clear"></div>
166                         </div>
167
168                         <div class="table_row">
169                                 <div class="table_left">
170                                         <h:outputLabel for="cellphoneNumber" value="#{msg.PERSONAL_DATA_CELLPHONE_NUMBER}" />
171                                 </div>
172
173                                 <div class="table_right">
174                                         <h:selectOneMenu class="select" id="cellphoneCarrier" value="#{userController.cellphoneCarrier}">
175                                                 <f:selectItems value="#{cellphone.allSmsProvider()}" var="p" itemValue="#{p}" itemLabel="#{p.country.countryLocalDialPrefix}#{p.providerDialPrefix} (#{p.providerName})" />
176                                         </h:selectOneMenu>
177
178                                         <h:inputText class="input" id="cellphoneNumber" size="10" maxlength="20" value="#{userController.cellphoneNumber}">
179                                                 <f:validator for="cellphoneNumber" validatorId="PhoneNumberValidator" />
180                                         </h:inputText>
181                                 </div>
182
183                                 <div class="clear"></div>
184                         </div>
185                 </fieldset>
186         </div>
187 </ui:composition>