]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/user/admin_show_user_data.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / admin / user / admin_show_user_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:f="http://java.sun.com/jsf/core"
6         xmlns:h="http://java.sun.com/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:p="http://primefaces.org/ui">
9
10         <!--
11         @TODO summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_USER_DATA}"
12         -->
13         <p:panelGrid styleClass="table table-full" columns="3" rendered="#{not empty beanHelper.user}">
14                 <f:facet name="header">
15                         <h:outputFormat value="#{msg.ADMIN_HEADER_SHOW_USER}">
16                                 <f:param value="#{beanHelper.user.userName}" />
17                                 <f:param value="#{beanHelper.user.userId}" />
18                         </h:outputFormat>
19                 </f:facet>
20
21                 <h:column>
22                         <p:outputLabel for="userId" styleClass="table-data-label" value="#{msg.ADMIN_USER_ID}" />
23
24                         <h:outputText id="userId" styleClass="table-data-field" value="#{beanHelper.user.userId}" />
25                 </h:column>
26
27                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
28                         <h:column>
29                                 <p:outputLabel for="userName" styleClass="table-data-label" value="#{msg.ADMIN_USER_NAME}" />
30
31                                 <h:outputText id="userName" styleClass="table-data-field" value="#{beanHelper.user.userName}" />
32                         </h:column>
33                 </ui:fragment>
34
35                 <h:column>
36                         <p:outputLabel for="userCreated" styleClass="table-data-label" value="#{msg.ADMIN_USER_CREATED}" />
37
38                         <h:outputText id="userCreated" styleClass="table-data-field" value="#{beanHelper.user.userCreated.time}">
39                                 <f:convertDateTime for="userCreated" type="both" />
40                         </h:outputText>
41                 </h:column>
42
43                 <h:column>
44                         <p:outputLabel for="userUpdated" styleClass="table-data-label" value="#{msg.ADMIN_USER_UPDATED}" />
45
46                         <h:outputText id="userUpdated" styleClass="table-data-field" value="#{beanHelper.user.userUpdated.time}">
47                                 <f:convertDateTime for="userUpdated" type="both" />
48                         </h:outputText>
49                 </h:column>
50
51                 <h:column>
52                         <p:outputLabel for="userAccountStatus" styleClass="table-data-label" value="#{msg.ADMIN_USER_ACCOUNT_STATUS}" />
53
54                         <h:outputText id="userAccountStatus" styleClass="table-data-field #{beanHelper.user.userAccountStatus.styleClass}" value="#{msg[beanHelper.user.userAccountStatus.messageKey]}" />
55                 </h:column>
56
57                 <h:column>
58                         <p:outputLabel for="userProfileMode" styleClass="table-data-label" value="#{msg.ADMIN_USER_PROFILE_MODE}" />
59
60                         <h:outputText id="userProfileMode" styleClass="table-data-field" value="#{msg[beanHelper.user.userProfileMode.messageKey]}" />
61                 </h:column>
62
63                 <h:column>
64                         <p:outputLabel for="userLastLocked" styleClass="table-data-label" value="#{msg.ADMIN_USER_LAST_LOCKED}" />
65
66                         <h:outputText id="userLastLocked" styleClass="table-data-field" value="#{beanHelper.user.userLastLocked.time}">
67                                 <f:convertDateTime for="userLastLocked" type="both" />
68                         </h:outputText>
69                 </h:column>
70
71                 <h:column>
72                         <p:outputLabel for="userLastLockedReason" styleClass="table-data-label" value="#{msg.ADMIN_USER_LAST_LOCKED_REASON}" />
73
74                         <h:outputText id="userLastLockedReason" styleClass="table-data-field" value="#{beanHelper.user.userLastLockedReason}" />
75                 </h:column>
76
77                 <core:outputContactDataGridColumns />
78         </p:panelGrid>
79 </ui:composition>