<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:widgets="http://mxchange.org/jsf/core/widgets"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- xmlns:p="http://primefaces.org/ui">
-
- <ui:define name="admin_title">
+<ui:composition
+ template="/WEB-INF/templates/admin/admin_base.tpl"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:core="http://mxchange.org/jsf/core/widgets"
+ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+ xmlns:h="http://xmlns.jcp.org/jsf/html"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ xmlns:p="http://primefaces.org/ui"
+ >
+
+ <ui:define name="document_admin_title">
<h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_CONTACT}" />
</ui:define>
</ui:define>
<ui:define name="content">
- <h:form id="form_export_contacts" rendered="#{not contactController.allContacts().isEmpty()}">
- <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}">
- <p:column exportable="false">
+ <h:form rendered="#{not contactListController.allContacts.isEmpty()}">
+ <p:dataTable
+ id="table_export_contacts"
+ var="contact"
+ value="#{contactListController.allContacts}"
+ paginator="true"
+ rows="10"
+ emptyMessage="#{msg.ADMIN_EMPTY_LIST_CONTACT}"
+ summary="#{msg.TABLE_SUMMARY_ADMIN_EXPORT_CONTACT}"
+ >
+ <p:column
+ exportable="false"
+ >
<f:facet name="header">
<h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_ID}" />
</f:facet>
- <p:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
+ <p:link
+ outcome="admin_show_contact"
+ value="#{contact.contactId}"
+ title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}"
+ >
<f:param name="contactId" value="#{contact.contactId}" />
</p:link>
</p:column>
</f:facet>
<h:outputText id="contactBirthday" value="#{contact.contactBirthday}">
- <f:convertDateTime for="contactBirthday" type="date" dateStyle="medium" />
+ <f:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
</p:column>
<p:column>
<f:facet name="header">
- <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LANDLINE_NUMBER}" />
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_LAND_LINE_NUMBER}" />
</f:facet>
<h:outputText value="#{adminContactController.generatePhoneNumber(contact.contactLandLineNumber)}" />
<h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_CREATED}" />
</f:facet>
- <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
- <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" locale="#{localizationController.locale}" />
+ <h:outputText value="#{contact.contactEntryCreated}">
+ <f:convertDateTime
+ type="both"
+ timeStyle="short"
+ dateStyle="short"
+ locale="#{localizationController.locale}"
+ />
+ </h:outputText>
+ </p:column>
+
+ <p:column>
+ <f:facet name="header">
+ <h:outputText value="#{msg.ADMIN_EXPORT_CONTACT_UPDATED}" />
+ </f:facet>
+
+ <h:outputText value="#{contact.contactEntryUpdated}">
+ <f:convertDateTime
+ type="both"
+ timeStyle="short"
+ dateStyle="short"
+ locale="#{localizationController.locale}"
+ />
</h:outputText>
</p:column>
</p:dataTable>
- <h:panelGroup styleClass="table table-medium" layout="block">
+ <h:panelGroup layout="block">
<div class="table-header">
<h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TITLE}" />
</div>
<h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TIMEOUT_WARNING}" />
</div>
- <div class="table-footer">
- <p:commandButton styleClass="submit" type="submit" id="button_export_contacts_xls" value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}">
- <p:dataExporter type="xls" target="table_export_contacts" fileName="all_contacts" />
+ <p:panelGrid columns="2" layout="grid">
+ <p:commandButton
+ ajax="false"
+ type="submit"
+ value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}"
+ >
+
+ <p:dataExporter
+ type="xls"
+ target="table_export_contacts"
+ fileName="all_contacts"
+ />
</p:commandButton>
- </div>
+ </p:panelGrid>
</h:panelGroup>
</h:form>
</ui:define>