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:core="http://mxchange.org/jsf/core/widgets"
5 xmlns:links="http://mxchange.org/jsf/core/links"
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">
11 <ui:define name="document_admin_title">
12 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT}" />
15 <ui:define name="content_header">
16 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}" />
19 <ui:define name="content">
20 <h:form id="form-list-contacts">
24 value="#{contactController.allContacts()}"
25 tableStyleClass="table table-full"
28 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}"
29 emptyMessage="#{msg.ADMIN_EMPTY_LIST_CONTACT}"
30 widgetVar="contactList"
33 <f:facet name="header">
34 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
37 <p:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
38 <f:param name="contactId" value="#{contact.contactId}" />
43 <f:facet name="header">
44 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
47 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
51 <f:facet name="header">
52 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
55 <h:outputText value="#{contact.contactFirstName}" />
59 <f:facet name="header">
60 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
63 <h:outputText value="#{contact.contactFamilyName}" />
67 <f:facet name="header">
68 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
71 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
75 <f:facet name="header">
76 <h:outputText value="#{msg.ADMIN_HEADER_ENTRY_CREATED}" />
79 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
80 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
85 <f:facet name="header">
86 <h:outputText value="#{msg.ADMIN_HEADER_ACTION_LINKS}" />
89 <links:outputContactAdminMiniLinks contact="#{contact}" />
95 <p:panelGrid layout="grid" columns="1" styleClass="table table-full">
96 <f:facet name="header">
97 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
100 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
102 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
104 <f:facet name="footer">
108 value="#{msg.BUTTON_RESET_FORM}"
113 value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
114 action="#{adminContactController.addContact()}"
115 update=":master:form-list-contacts:contactList"