]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl
Updated copyright year
[addressbook-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:core="http://mxchange.org/jsf/core/widgets"
5         xmlns:validator="http://mxchange.org/jsf/core/validators"
6         xmlns:f="http://xmlns.jcp.org/jsf/core"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
9         xmlns:p="http://primefaces.org/ui"
10         >
11         <p:fieldset
12                 legend="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND}"
13                 title="#{msg.ADMIN_CONTACT_PERSONAL_DATA_LEGEND_TITLE}"
14                 >
15                 <p:panelGrid
16                         layout="grid"
17                         columns="2"
18                         columnClasses="ui-grid-col-4,ui-grid-col-8"
19                         styleClass="ui-noborder"
20                         >
21                         <p:outputLabel for="personalTitle" value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
22                         <core:outputPersonalTitleSelectionBox targetController="#{adminContactController}" />
23
24                         <p:outputLabel for="firstName" value="#{msg.ADMIN_PERSONAL_DATA_FIRST_NAME}" />
25                         <p:inputText
26                                 id="firstName"
27                                 size="10"
28                                 maxlength="255"
29                                 value="#{adminContactController.firstName}"
30                                 required="true"
31                                 requiredMessage="#{msg.ADMIN_CONTACT_DATA_FIRST_NAME_REQUIRED}"
32                                 />
33
34                         <p:outputLabel for="title" value="#{msg.ADMIN_PERSONAL_DATA_TITLE}" />
35                         <p:inputText
36                                 id="title"
37                                 size="5"
38                                 maxlength="255"
39                                 value="#{adminContactController.academicTitle}"
40                                 />
41
42                         <p:outputLabel for="familyName" value="#{msg.ADMIN_PERSONAL_DATA_FAMILY_NAME}" />
43                         <p:inputText
44                                 id="familyName"
45                                 size="10"
46                                 maxlength="255"
47                                 value="#{adminContactController.familyName}"
48                                 required="true"
49                                 requiredMessage="#{msg.ADMIN_CONTACT_DATA_FAMILY_NAME_REQUIRED}"
50                                 />
51
52                         <p:outputLabel for="street" value="#{msg.ADMIN_DATA_STREET_NAME}" />
53                         <p:inputText
54                                 id="street"
55                                 size="20"
56                                 maxlength="255"
57                                 value="#{adminContactController.street}"
58                                 />
59
60                         <p:outputLabel for="houseNumber" value="#{msg.ADMIN_DATA_HOUSE_NUMBER}" />
61                         <p:inputText
62                                 id="houseNumber"
63                                 size="3"
64                                 maxlength="5"
65                                 value="#{adminContactController.houseNumber}"
66                                 validatorMessage="#{msg.ENTERED_HOUSE_NUMBER_INVALID}"
67                                 >
68                                 <f:validateLongRange minimum="1" maximum="500" />
69                         </p:inputText>
70
71                         <p:outputLabel for="houseNumberExtension" value="#{msg.ADMIN_DATA_HOUSE_NUMBER_EXTENSION}" />
72                         <p:inputText
73                                 id="houseNumberExtension"
74                                 size="2"
75                                 maxlength="2"
76                                 value="#{adminContactController.houseNumberExtension}"
77                                 />
78
79                         <p:outputLabel for="zipCode" value="#{msg.DATA_ZIP_CODE}" />
80                         <p:inputText
81                                 id="zipCode"
82                                 size="5"
83                                 maxlength="6"
84                                 value="#{adminContactController.zipCode}"
85                                 validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}"
86                                 >
87                                 <f:validateLongRange minimum="1" maximum="99999" />
88                         </p:inputText>
89
90                         <p:outputLabel for="city" value="#{msg.ADMIN_DATA_CITY}" />
91                         <p:inputText
92                                 id="city"
93                                 size="10"
94                                 maxlength="255"
95                                 value="#{adminContactController.city}"
96                                 />
97
98                         <p:outputLabel for="country" value="#{msg.ADMIN_SELECT_COUNTRY}" />
99                         <core:outputCountrySelector
100                                 id="country"
101                                 value="#{adminContactController.contactCountry}"
102                                 required="true"
103                                 requiredMessage="#{msg.ADMIN_SELECT_CONTACT_COUNTRY_REQUIRED}"
104                                 />
105
106                         <p:outputLabel for="landLineCountry" value="#{msg.ADMIN_PERSONAL_DATA_PHONE_NUMBER}" />
107                         <core:inputLandLineNumberPanelGrid targetController="#{adminContactController}" />
108
109                         <p:outputLabel for="faxCountry" value="#{msg.ADMIN_PERSONAL_DATA_FAX_NUMBER}" />
110                         <core:inputFaxNumberPanelGrid targetController="#{adminContactController}" />
111
112                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
113                         <core:inputMobileNumberPanelGrid targetController="#{adminContactController}" />
114
115                         <p:outputLabel for="emailAddress" value="#{msg.DATA_EMAIL_ADDRESS}" />
116                         <p:inputText
117                                 id="emailAddress"
118                                 size="20"
119                                 maxlength="255"
120                                 value="#{adminContactController.emailAddress}"
121                                 validatorMessage="#{msg.ENTERED_EMAIL_ADDRESS_IS_INVALID}"
122                                 >
123                                 <validator:emailAddressValidator allowEmptyRequiredData="true" />
124                         </p:inputText>
125
126                         <p:outputLabel for="contactBirthday" value="#{msg.ADMIN_PERSONAL_DATA_BIRTHDAY}" />
127                         <p:calendar
128                                 id="contactBirthday"
129                                 value="#{contactController.birthday}"
130                                 title="#{msg.ADMIN_PERSONAL_DATA_BIRTHDAY_TITLE}"
131                                 pattern="#{msg.DATE_PATTERN}"
132                                 navigator="true"
133                                 />
134
135                         <p:outputLabel for="contactComment" value="#{msg.ADMIN_PERSONAL_DATA_COMMENT}" />
136                         <p:inputTextarea
137                                 id="contactComment"
138                                 value="#{adminContactController.comment}"
139                                 rows="7"
140                                 cols="35"
141                                 />
142                 </p:panelGrid>
143         </p:fieldset>
144
145         <h:panelGroup styleClass="para notice" layout="block">
146                 <ul>
147                         <li>
148                                 <h:outputText value="#{msg.ADMIN_CONTACT_DATA_EMAIL_ADDRESS_NOTICE}" />
149                         </li>
150                 </ul>
151         </h:panelGroup>
152 </ui:composition>