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 <widgets:outputMessageBox message="#{msg.ADMIN_CONTACT_LIST_EMPTY}" styleClass="errors" rendered="#{contactController.allContacts().isEmpty()}" />
21 <h:form id="form_export_contacts" rendered="#{not contactController.allContacts().isEmpty()}">
22 <p:dataTable id="table_export_contacts" var="contact" value="#{contactController.allContacts()}" tableStyleClass="table_full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_CONTACT}">
23 <p:column exportable="false">
24 <f:facet name="header">
25 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ID}" />
28 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
29 <f:param name="contactId" value="#{contact.contactId}" />
34 <f:facet name="header">
35 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_PERSONAL_TITLE}" />
38 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
42 <f:facet name="header">
43 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ACADEMIC_TITLE}" />
46 <h:outputText value="#{contact.contactTitle}" />
50 <f:facet name="header">
51 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FIRST_NAME}" />
54 <h:outputText value="#{contact.contactFirstName}" />
58 <f:facet name="header">
59 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAMILY_NAME}" />
62 <h:outputText value="#{contact.contactFamilyName}" />
66 <f:facet name="header">
67 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_STREET}" />
70 <h:outputText value="#{contact.contactStreet}" />
74 <f:facet name="header">
75 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_HOUSE_NUMBER}" />
78 <h:outputText value="#{contact.contactHouseNumber}#{contact.contactHouseNumberExtension}" />
82 <f:facet name="header">
83 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_COUNTRY_CODE}" />
86 <h:outputText value="#{contact.contactCountry.countryCode}" />
90 <f:facet name="header">
91 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ZIP_CODE}" />
94 <h:outputText value="#{contact.contactZipCode}" />
98 <f:facet name="header">
99 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CITY}" />
102 <h:outputText value="#{contact.contactCity}" />
106 <f:facet name="header">
107 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_EMAIL_ADDRESS}" />
110 <h:outputText value="#{contact.contactEmailAddress}" />
114 <f:facet name="header">
115 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_BIRTHDAY}" />
118 <h:outputText id="contactBirthday" value="#{contact.contactBirthday}">
119 <f:convertDateTime for="contactBirthday" type="date" dateStyle="medium" />
124 <f:facet name="header">
125 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_MOBILE_NUMBER}" />
128 <h:outputText value="#{adminContactController.generateMobileNumber(contact.contactMobileNumber)}" />
132 <f:facet name="header">
133 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
136 <h:outputText value="#{adminContactController.generatePhoneNumber(contact.contactLandLineNumber)}" />
140 <f:facet name="header">
141 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_FAX_NUMBER}" />
144 <h:outputText value="#{adminContactController.generatePhoneNumber(contact.contactFaxNumber)}" />
148 <f:facet name="header">
149 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
152 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
153 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
158 <h:panelGroup styleClass="table_medium" layout="block">
159 <div class="table_header">
160 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TITLE}" />
164 <h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TIMEOUT_WARNING}" />
167 <div class="table_footer">
168 <h:commandButton styleClass="submit" type="submit" id="export_contacts_xls" value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}">
169 <p:dataExporter type="xls" target="table_export_contacts" fileName="all_contacts" />