]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/customer/admin_customer_show.xhtml
Please cherry-pick:
[pizzaservice-war.git] / web / admin / customer / admin_customer_show.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html
4         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5         xmlns="http://www.w3.org/1999/xhtml"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         >
10
11         <f:metadata>
12                 <f:viewParam name="customerId" value="#{beanHelper.customer}" converter="CustomerConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_USER_ID_NOT_SET}" />
13                 <f:viewAction action="#{beanHelper.copyCustomerToController()}" />
14         </f:metadata>
15
16         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
17                 <ui:define name="admin_title">
18                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_SHOW_USER}" />
19                 </ui:define>
20
21                 <ui:define name="content_header">
22                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_SHOW_USER}" />
23                 </ui:define>
24
25                 <ui:define name="content">
26                         <h:outputText styleClass="errors" value="#{msg.ERROR_USER_ID_NOT_FOUND}" rendered="#{empty beanHelper.customer}" />
27
28                         <h:panelGrid id="customer_profile" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_USER}" headerClass="table_header_column" styleClass="table_big" columns="3" rendered="#{not empty beanHelper.customer}">
29                                 <f:facet name="header">
30                                         <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_USER}">
31                                                 <f:param value="#{beanHelper.customer.customerId}" />
32                                         </h:outputFormat>
33                                 </f:facet>
34
35                                 <h:column>
36                                         <h:outputLabel for="customerId" styleClass="data_label" value="#{msg.ADMIN_USER_ID}" />
37
38                                         <h:outputText id="customerId" styleClass="data_field" value="#{beanHelper.customer.customerId}" />
39                                 </h:column>
40
41                                 <h:column>
42                                         <h:outputLabel for="customerName" styleClass="data_label" value="#{msg.ADMIN_USER_NUMBER}" />
43
44                                         <h:outputText id="customerName" styleClass="data_field" value="#{beanHelper.customer.customerNumber}" />
45                                 </h:column>
46
47                                 <h:column>
48                                         <h:outputLabel for="customerCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CREATED}" />
49
50                                         <h:outputText id="customerCreated" styleClass="data_field" value="#{beanHelper.customer.customerCreated.time}">
51                                                 <f:convertDateTime for="customerCreated" type="both" />
52                                         </h:outputText>
53                                 </h:column>
54
55                                 <h:column>
56                                         <h:outputLabel for="customerUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_UPDATED}" />
57
58                                         <h:outputText id="customerUpdated" styleClass="data_field" value="#{beanHelper.customer.customerUpdated.time}">
59                                                 <f:convertDateTime for="customerUpdated" type="both" />
60                                         </h:outputText>
61                                 </h:column>
62
63                                 <h:column>
64                                         <h:outputLabel for="customerAccountStatus" styleClass="data_label" value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
65
66                                         <h:outputText id="customerAccountStatus" styleClass="data_field #{beanHelper.customer.customerAccountStatus.styleClass}" value="#{msg[beanHelper.customer.customerAccountStatus.messageKey]}" />
67                                 </h:column>
68
69                                 <h:column>
70                                         <h:outputLabel for="customerLastLocked" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
71
72                                         <h:outputText id="customerLastLocked" styleClass="data_field" value="#{beanHelper.customer.customerLastLocked.time}">
73                                                 <f:convertDateTime for="customerLastLocked" type="both" />
74                                         </h:outputText>
75                                 </h:column>
76
77                                 <h:column>
78                                         <h:outputLabel for="customerLastLockedReason" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
79
80                                         <h:outputText id="customerLastLockedReason" styleClass="data_field" value="#{beanHelper.customer.customerLastLockedReason}" />
81                                 </h:column>
82
83                                 <h:column>
84                                         <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_CREATED}" />
85
86                                         <h:outputText id="contactCreated" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactCreated.time}">
87                                                 <f:convertDateTime for="contactCreated" type="both" />
88                                         </h:outputText>
89                                 </h:column>
90
91                                 <h:column>
92                                         <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_UPDATED}" />
93
94                                         <h:outputText id="contactUpdated" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactUpdated.time}">
95                                                 <f:convertDateTime for="contactUpdated" type="both" />
96                                         </h:outputText>
97                                 </h:column>
98
99                                 <h:column>
100                                         <h:outputLabel for="isOwnContact" styleClass="data_label" value="#{msg.ADMIN_CONTACT_IS_OWN_CONTACT}" />
101
102                                         <h:outputText id="isOwnContact" styleClass="data_field" value="#{beanHelper.customer.customerContact.isOwnContact()}" />
103                                 </h:column>
104
105                                 <h:column>
106                                         <h:outputLabel for="contactGender" styleClass="data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
107
108                                         <h:outputText id="contactGender" styleClass="data_field" value="#{msg[beanHelper.customer.customerContact.contactGender.messageKey]}" />
109                                 </h:column>
110
111                                 <h:column>
112                                         <h:outputLabel for="contactTitle" styleClass="data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
113
114                                         <h:outputText id="contactTitle" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactTitle}" />
115                                 </h:column>
116
117                                 <h:column>
118                                         <h:outputLabel for="contactFirstName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
119
120                                         <h:outputText id="contactFirstName" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactFirstName}" />
121                                 </h:column>
122
123                                 <h:column>
124                                         <h:outputLabel for="contactFamilyName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
125
126                                         <h:outputText id="contactFamilyName" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactFamilyName}" />
127                                 </h:column>
128
129                                 <h:column>
130                                         <h:outputLabel for="contactStreet" styleClass="data_label" value="#{msg.ADMIN_CONTACT_STREET}" />
131
132                                         <h:outputText id="contactStreet" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactStreet}" />
133                                 </h:column>
134
135                                 <h:column>
136                                         <h:outputLabel for="contactHouseNumber" styleClass="data_label" value="#{msg.ADMIN_CONTACT_HOUSE_NUMBER}" />
137
138                                         <h:outputText id="contactHouseNumber" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactHouseNumber}" />
139                                 </h:column>
140
141                                 <h:column>
142                                         <h:outputLabel for="contactZipCode" styleClass="data_label" value="#{msg.ADMIN_CONTACT_ZIP_CODE}" />
143
144                                         <h:outputText id="contactZipCode" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactZipCode}" />
145                                 </h:column>
146
147                                 <h:column>
148                                         <h:outputLabel for="contactCity" styleClass="data_label" value="#{msg.ADMIN_CONTACT_CITY}" />
149
150                                         <h:outputText id="contactCity" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactCity}" />
151                                 </h:column>
152
153                                 <h:column>
154                                         <h:outputLabel for="contactEmailAddress" styleClass="data_label" value="#{msg.ADMIN_CONTACT_EMAIL_ADDRESS}" />
155
156                                         <h:outputLink id="contactEmailAddress" styleClass="data_field" value="mailto:#{beanHelper.customer.customerContact.contactEmailAddress}">
157                                                 <h:outputText value="#{beanHelper.customer.customerContact.contactEmailAddress}" />
158                                         </h:outputLink>
159                                 </h:column>
160
161                                 <h:column>
162                                         <h:outputLabel for="contactBirthday" styleClass="data_label" value="#{msg.ADMIN_CONTACT_BIRTHDAY}" />
163
164                                         <h:outputText id="contactBirthday" styleClass="data_field" value="#{beanHelper.customer.customerContact.contactBirthday.time}">
165                                                 <f:convertDateTime for="contactBirthday" type="date" />
166                                         </h:outputText>
167                                 </h:column>
168                         </h:panelGrid>
169
170                         <div>
171                                 <ui:include src="/WEB-INF/templates/admin/customer/admin_customer_links.tpl">
172                                         <ui:param name="customer" value="#{beanHelper.customer}" />
173                                 </ui:include>
174                         </div>
175
176                         <div>
177                                 <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">
178                                         <ui:param name="mobileNumber" value="#{beanHelper.customer.customerContact.contactCellphoneNumber}" />
179                                         <ui:param name="contact" value="#{beanHelper.customer.customerContact}" />
180                                 </ui:include>
181                         </div>
182                 </ui:define>
183         </ui:composition>
184 </html>