1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:widgets="http://mxchange.org/jsf/core/widgets"
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 xmlns:p="http://primefaces.org/ui">
10 <ui:define name="admin_title">
11 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_CONTACT}" />
14 <ui:define name="content_header">
15 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EXPORT_CONTACT}" />
18 <ui:define name="content">
19 <h:form id="form_export_contacts" rendered="#{not contactController.allContacts().isEmpty()}">
20 <p:dataTable id="table_export_contacts" var="contact" value="#{contactController.allContacts()}" tableStyleClass="table table-full" paginator="true" rows="10" emptyMessage="#{msg.ADMIN_CONTACT_LIST_EMPTY}" summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_CONTACT}">
21 <p:column exportable="false">
22 <f:facet name="header">
23 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ID}" />
26 <p:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
27 <f:param name="contactId" value="#{contact.contactId}" />
32 <f:facet name="header">
33 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
36 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
40 <f:facet name="header">
41 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
44 <h:outputText value="#{contact.contactTitle}" />
48 <f:facet name="header">
49 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
52 <h:outputText value="#{contact.contactFirstName}" />
56 <f:facet name="header">
57 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
60 <h:outputText value="#{contact.contactFamilyName}" />
64 <f:facet name="header">
65 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
68 <h:outputText value="#{contact.contactStreet}" />
72 <f:facet name="header">
73 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
76 <h:outputText value="#{contact.contactHouseNumber}#{contact.contactHouseNumberExtension}" />
80 <f:facet name="header">
81 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
84 <h:outputText value="#{contact.contactCountry.countryCode}" />
88 <f:facet name="header">
89 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
92 <h:outputText value="#{contact.contactZipCode}" />
96 <f:facet name="header">
97 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
100 <h:outputText value="#{contact.contactCity}" />
104 <f:facet name="header">
105 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
108 <h:outputText value="#{contact.contactEmailAddress}" />
112 <f:facet name="header">
113 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
116 <h:outputText id="contactBirthday" value="#{contact.contactBirthday}">
117 <f:convertDateTime for="contactBirthday" type="date" dateStyle="medium" />
122 <f:facet name="header">
123 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
126 <h:outputText value="#{adminContactController.generateMobileNumber(contact.contactMobileNumber)}" />
130 <f:facet name="header">
131 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
134 <h:outputText value="#{adminContactController.generatePhoneNumber(contact.contactLandLineNumber)}" />
138 <f:facet name="header">
139 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
142 <h:outputText value="#{adminContactController.generatePhoneNumber(contact.contactFaxNumber)}" />
146 <f:facet name="header">
147 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
150 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
151 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
156 <h:panelGroup styleClass="table table-medium" layout="block">
157 <div class="table-header">
158 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TITLE}" />
162 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TIMEOUT_WARNING}" />
165 <div class="table-footer">
166 <p:commandButton styleClass="submit" type="submit" id="button_export_contacts_xls" value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}">
167 <p:dataExporter type="xls" target="table_export_contacts" fileName="all_contacts" />