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