]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/admin/contact/admin_contact_export.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / contact / admin_contact_export.xhtml
index 2a5685a3bda71ef7e82ecb13cf96ce2cef8b07b7..c1e081632aa7ede2c13a3bee86f64eb6fb2fc156 100644 (file)
@@ -1,13 +1,13 @@
 <?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: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="admin_title">
+       <ui:define name="document_admin_title">
                <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EXPORT_CONTACT}" />
        </ui:define>
 
        </ui:define>
 
        <ui:define name="content">
-               <widgets:outputMessageBox message="#{msg.ADMIN_CONTACT_LIST_EMPTY}" messageStyleClass="alert-danger" rendered="#{contactController.allContacts().isEmpty()}" />
-
                <h:form id="form_export_contacts" rendered="#{not contactController.allContacts().isEmpty()}">
-                       <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}">
+                       <p:dataTable
+                               id="table_export_contacts"
+                               var="contact"
+                               value="#{contactController.allContacts()}"
+                               tableStyleClass="table table-full"
+                               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>
 
-                                       <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
+                                       <p:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
                                                <f:param name="contactId" value="#{contact.contactId}" />
-                                       </h:link>
+                                       </p:link>
                                </p:column>
 
                                <p:column>
                                </p:column>
                        </p:dataTable>
 
-                       <h:panelGroup styleClass="table table-medium" layout="block">
+                       <h:panelGroup styleClass="table table-full" layout="block">
                                <div class="table-header">
                                        <h:outputText value="#{msg.ADMIN_EXPORT_CONTACTS_TITLE}" />
                                </div>
                                </div>
 
                                <div class="table-footer">
-                                       <h:commandButton styleClass="submit" type="submit" id="button_export_contacts_xls" value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}">
+                                       <p:commandButton styleClass="submit" type="submit" id="submit_export_contacts_xls" value="#{msg.BUTTON_ADMIN_EXPORT_CONTACTS_XLS}">
                                                <p:dataExporter type="xls" target="table_export_contacts" fileName="all_contacts" />
-                                       </h:commandButton>
+                                       </p:commandButton>
                                </div>
                        </h:panelGroup>
                </h:form>