]> git.mxchange.org Git - addressbook-war.git/blob - web/admin/user/admin_user_show.xhtml
Continued a bit: (please cherry-pick this)
[addressbook-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                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_name_required')}">
40                                         <h:column>
41                                                 <h:outputLabel for="userName" styleClass="data_label" value="#{msg.ADMIN_USER_NAME}" />
42
43                                                 <h:outputText id="userName" styleClass="data_field" value="#{beanHelper.user.userName}" />
44                                         </h:column>
45                                 </ui:fragment>
46
47                                 <h:column>
48                                         <h:outputLabel for="userCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CREATED}" />
49
50                                         <h:outputText id="userCreated" styleClass="data_field" value="#{beanHelper.user.userCreated.time}">
51                                                 <f:convertDateTime for="userCreated" type="both" />
52                                         </h:outputText>
53                                 </h:column>
54
55                                 <h:column>
56                                         <h:outputLabel for="userUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_UPDATED}" />
57
58                                         <h:outputText id="userUpdated" styleClass="data_field" value="#{beanHelper.user.userUpdated.time}">
59                                                 <f:convertDateTime for="userUpdated" type="both" />
60                                         </h:outputText>
61                                 </h:column>
62
63                                 <h:column>
64                                         <h:outputLabel for="userAccountStatus" styleClass="data_label" value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
65
66                                         <h:outputText id="userAccountStatus" styleClass="data_field #{beanHelper.user.userAccountStatus.styleClass}" value="#{msg[beanHelper.user.userAccountStatus.messageKey]}" />
67                                 </h:column>
68
69                                 <h:column>
70                                         <h:outputLabel for="userProfileMode" styleClass="data_label" value="#{msg.ADMIN_USER_PROFILE_MODE}" />
71
72                                         <h:outputText id="userProfileMode" styleClass="data_field" value="#{msg[beanHelper.user.userProfileMode.messageKey]}" />
73                                 </h:column>
74
75                                 <h:column>
76                                         <h:outputLabel for="userLastLocked" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
77
78                                         <h:outputText id="userLastLocked" styleClass="data_field" value="#{beanHelper.user.userLastLocked.time}">
79                                                 <f:convertDateTime for="userLastLocked" type="both" />
80                                         </h:outputText>
81                                 </h:column>
82
83                                 <h:column>
84                                         <h:outputLabel for="lastLockedReason" styleClass="data_label" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
85
86                                         <h:outputText id="lastLockedReason" styleClass="data_field" value="#{beanHelper.user.userLastLockedReason}" />
87                                 </h:column>
88
89                                 <h:column>
90                                         <h:outputLabel for="contactCreated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_CREATED}" />
91
92                                         <h:outputText id="contactCreated" styleClass="data_field" value="#{beanHelper.user.userContact.contactCreated.time}">
93                                                 <f:convertDateTime for="contactCreated" type="both" />
94                                         </h:outputText>
95                                 </h:column>
96
97                                 <h:column>
98                                         <h:outputLabel for="contactUpdated" styleClass="data_label" value="#{msg.ADMIN_USER_CONTACT_UPDATED}" />
99
100                                         <h:outputText id="contactUpdated" styleClass="data_field" value="#{beanHelper.user.userContact.contactUpdated.time}">
101                                                 <f:convertDateTime for="contactUpdated" type="both" />
102                                         </h:outputText>
103                                 </h:column>
104
105                                 <h:column>
106                                         <h:outputLabel for="isOwnContact" styleClass="data_label" value="#{msg.ADMIN_CONTACT_IS_OWN_CONTACT}" />
107
108                                         <h:outputText id="isOwnContact" styleClass="data_field" value="#{beanHelper.user.userContact.isOwnContact()}" />
109                                 </h:column>
110
111                                 <h:column>
112                                         <h:outputLabel for="contactGender" styleClass="data_label" value="#{msg.ADMIN_CONTACT_GENDER}" />
113
114                                         <h:outputText id="contactGender" styleClass="data_field" value="#{msg[beanHelper.user.userContact.contactGender.messageKey]}" />
115                                 </h:column>
116
117                                 <h:column>
118                                         <h:outputLabel for="contactTitle" styleClass="data_label" value="#{msg.ADMIN_CONTACT_TITLE}" />
119
120                                         <h:outputText id="contactTitle" styleClass="data_field" value="#{beanHelper.user.userContact.contactTitle}" />
121                                 </h:column>
122
123                                 <h:column>
124                                         <h:outputLabel for="contactFirstName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
125
126                                         <h:outputText id="contactFirstName" styleClass="data_field" value="#{beanHelper.user.userContact.contactFirstName}" />
127                                 </h:column>
128
129                                 <h:column>
130                                         <h:outputLabel for="contactFamilyName" styleClass="data_label" value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
131
132                                         <h:outputText id="contactFamilyName" styleClass="data_field" value="#{beanHelper.user.userContact.contactFamilyName}" />
133                                 </h:column>
134
135                                 <h:column>
136                                         <h:outputLabel for="contactStreet" styleClass="data_label" value="#{msg.ADMIN_CONTACT_STREET}" />
137
138                                         <h:outputText id="contactStreet" styleClass="data_field" value="#{beanHelper.user.userContact.contactStreet}" />
139                                 </h:column>
140
141                                 <h:column>
142                                         <h:outputLabel for="contactHouseNumber" styleClass="data_label" value="#{msg.ADMIN_CONTACT_HOUSE_NUMBER}" />
143
144                                         <h:outputText id="contactHouseNumber" styleClass="data_field" value="#{beanHelper.user.userContact.contactHouseNumber}" />
145                                 </h:column>
146
147                                 <h:column>
148                                         <h:outputLabel for="contactZipCode" styleClass="data_label" value="#{msg.ADMIN_CONTACT_ZIP_CODE}" />
149
150                                         <h:outputText id="contactZipCode" styleClass="data_field" value="#{beanHelper.user.userContact.contactZipCode}" />
151                                 </h:column>
152
153                                 <h:column>
154                                         <h:outputLabel for="contactCity" styleClass="data_label" value="#{msg.ADMIN_CONTACT_CITY}" />
155
156                                         <h:outputText id="contactCity" styleClass="data_field" value="#{beanHelper.user.userContact.contactCity}" />
157                                 </h:column>
158
159                                 <h:column>
160                                         <h:outputLabel for="contactEmailAddress" styleClass="data_label" value="#{msg.ADMIN_CONTACT_EMAIL_ADDRESS}" />
161
162                                         <h:outputLink id="contactEmailAddress" styleClass="data_field" value="mailto:#{beanHelper.user.userContact.contactEmailAddress}">
163                                                 <h:outputText value="#{beanHelper.user.userContact.contactEmailAddress}" />
164                                         </h:outputLink>
165                                 </h:column>
166
167                                 <h:column>
168                                         <h:outputLabel for="contactBirthday" styleClass="data_label" value="#{msg.ADMIN_CONTACT_BIRTHDAY}" />
169
170                                         <h:outputText id="contactBirthday" styleClass="data_field" value="#{beanHelper.user.userContact.contactBirthday.time}">
171                                                 <f:convertDateTime for="contactBirthday" type="date" />
172                                         </h:outputText>
173                                 </h:column>
174                         </h:panelGrid>
175
176                         <div>
177                                 <ui:include src="/WEB-INF/templates/admin/user/admin_user_links.tpl">
178                                         <ui:param name="user" value="#{beanHelper.user}" />
179                                 </ui:include>
180                         </div>
181
182                         <div>
183                                 <ui:include src="/WEB-INF/templates/admin/cellphone/admin_cellphone_add_show.tpl">
184                                         <ui:param name="cellphoneNumber" value="#{beanHelper.user.userContact.contactCellphoneNumber}" />
185                                         <ui:param name="contact" value="#{beanHelper.user.userContact}" />
186                                 </ui:include>
187                         </div>
188                 </ui:define>
189         </ui:composition>
190 </html>