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