]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/user/admin_user_export.xhtml
Please cherry-pick:
[pizzaservice-war.git] / web / admin / user / admin_user_export.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/admin/admin_base.tpl"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:core="http://mxchange.org/jsf/core/widgets"
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         xmlns:p="http://primefaces.org/ui"
10         >
11
12         <ui:define name="document_admin_title">
13                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_USER}" />
14         </ui:define>
15
16         <ui:define name="content_header">
17                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EXPORT_USER}" />
18         </ui:define>
19
20         <ui:define name="content">
21                 <h:form id="form-export-users">
22                         <p:dataTable
23                                 id="table-export-users"
24                                 var="user"
25                                 value="#{userListController.allUsers}"
26                                 paginator="true"
27                                 rows="10"
28                                 summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_USER}"
29                                 emptyMessage="#{msg.ADMIN_EMPTY_LIST_USER}"
30                                 >
31                                 <p:column exportable="false">
32                                         <f:facet name="header">
33                                                 <h:outputText value="#{msg.ADMIN_EXPORT_USER_ID}" />
34                                         </f:facet>
35
36                                         <p:link
37                                                 outcome="admin_show_user"
38                                                 value="#{user.userId}"
39                                                 title="#{msg.ADMIN_LINK_SHOW_USER_TITLE}"
40                                                 >
41                                                 <f:param name="userId" value="#{user.userId}" />
42                                         </p:link>
43                                 </p:column>
44
45                                 <ui:fragment rendered="#{featureController.isFeatureEnabled('user_login_require_user_name')}">
46                                         <p:column>
47                                                 <f:facet name="header">
48                                                         <h:outputText value="#{msg.ADMIN_EXPORT_USER_NAME_TITLE}" />
49                                                 </f:facet>
50
51                                                 <h:outputText value="#{user.userName}" />
52                                         </p:column>
53                                 </ui:fragment>
54
55                                 <p:column>
56                                         <f:facet name="header">
57                                                 <h:outputText value="#{msg.ADMIN_EXPORT_USER_ACCOUNT_STATUS}" />
58                                         </f:facet>
59
60                                         <h:outputText styleClass="#{user.userAccountStatus.styleClass}" value="#{msg[user.userAccountStatus.messageKey]}" />
61                                 </p:column>
62
63                                 <p:column>
64                                         <f:facet name="header">
65                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
66                                         </f:facet>
67
68                                         <h:outputText value="#{msg[user.userContact.contactPersonalTitle.messageKey]}" />
69                                 </p:column>
70
71                                 <p:column>
72                                         <f:facet name="header">
73                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
74                                         </f:facet>
75
76                                         <h:outputText value="#{user.userContact.contactTitle}" />
77                                 </p:column>
78
79                                 <p:column>
80                                         <f:facet name="header">
81                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
82                                         </f:facet>
83
84                                         <h:outputText value="#{user.userContact.contactFirstName}" />
85                                 </p:column>
86
87                                 <p:column>
88                                         <f:facet name="header">
89                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
90                                         </f:facet>
91
92                                         <h:outputText value="#{user.userContact.contactFamilyName}" />
93                                 </p:column>
94
95                                 <p:column>
96                                         <f:facet name="header">
97                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
98                                         </f:facet>
99
100                                         <h:outputText value="#{user.userContact.contactStreet}" />
101                                 </p:column>
102
103                                 <p:column>
104                                         <f:facet name="header">
105                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
106                                         </f:facet>
107
108                                         <h:outputText value="#{user.userContact.contactHouseNumber}#{user.userContact.contactHouseNumberExtension}" />
109                                 </p:column>
110
111                                 <p:column>
112                                         <f:facet name="header">
113                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
114                                         </f:facet>
115
116                                         <h:outputText value="#{user.userContact.contactCountry.countryCode}" />
117                                 </p:column>
118
119                                 <p:column>
120                                         <f:facet name="header">
121                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
122                                         </f:facet>
123
124                                         <h:outputText value="#{user.userContact.contactZipCode}" />
125                                 </p:column>
126
127                                 <p:column>
128                                         <f:facet name="header">
129                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
130                                         </f:facet>
131
132                                         <h:outputText value="#{user.userContact.contactCity}" />
133                                 </p:column>
134
135                                 <p:column>
136                                         <f:facet name="header">
137                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
138                                         </f:facet>
139
140                                         <h:outputText value="#{user.userContact.contactEmailAddress}" />
141                                 </p:column>
142
143                                 <p:column>
144                                         <f:facet name="header">
145                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
146                                         </f:facet>
147
148                                         <h:outputText id="contactBirthday" value="#{user.userContact.contactBirthday}">
149                                                 <f:convertDateTime type="date" dateStyle="medium" />
150                                         </h:outputText>
151                                 </p:column>
152
153                                 <p:column>
154                                         <f:facet name="header">
155                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
156                                         </f:facet>
157
158                                         <h:outputText value="#{adminContactController.generateMobileNumber(user.userContact.contactMobileNumber)}" />
159                                 </p:column>
160
161                                 <p:column>
162                                         <f:facet name="header">
163                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LAND_LINE_NUMBER}" />
164                                         </f:facet>
165
166                                         <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactLandLineNumber)}" />
167                                 </p:column>
168
169                                 <p:column>
170                                         <f:facet name="header">
171                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
172                                         </f:facet>
173
174                                         <h:outputText value="#{adminContactController.generatePhoneNumber(user.userContact.contactFaxNumber)}" />
175                                 </p:column>
176
177                                 <p:column>
178                                         <f:facet name="header">
179                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
180                                         </f:facet>
181
182                                         <h:outputText value="#{user.userContact.contactEntryCreated}">
183                                                 <f:convertDateTime
184                                                         type="both"
185                                                         timeStyle="short"
186                                                         dateStyle="short"
187                                                         locale="#{localizationController.locale}"
188                                                         />
189                                         </h:outputText>
190                                 </p:column>
191
192                                 <p:column>
193                                         <f:facet name="header">
194                                                 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_UPDATED}" />
195                                         </f:facet>
196
197                                         <h:outputText value="#{user.userContact.contactEntryUpdated}">
198                                                 <f:convertDateTime
199                                                         type="both"
200                                                         timeStyle="short"
201                                                         dateStyle="short"
202                                                         locale="#{localizationController.locale}"
203                                                         />
204                                         </h:outputText>
205                                 </p:column>
206                         </p:dataTable>
207
208                         <h:panelGroup layout="block">
209                                 <div class="table-header">
210                                         <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TITLE}" />
211                                 </div>
212
213                                 <div class="para">
214                                         <h:outputText value="#{msg.ADMIN_EXPORT_USERS_TIMEOUT_WARNING}" />
215                                 </div>
216
217                                 <p:commandButton
218                                         ajax="false"
219                                         type="submit"
220                                         value="#{msg.BUTTON_ADMIN_EXPORT_USERS_XLS}"
221                                         >
222
223                                         <p:dataExporter
224                                                 type="xls"
225                                                 target="table-export-users"
226                                                 fileName="all_users"
227                                                 />
228                                 </p:commandButton>
229                         </h:panelGroup>
230                 </h:form>
231         </ui:define>
232 </ui:composition>