1 <?xml version="1.0" encoding="UTF-8" ?>
3 template="/WEB-INF/templates/admin/admin_base.tpl"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:core="http://mxchange.org/jsf/core/widgets"
6 xmlns:links="http://mxchange.org/jsf/core/links"
7 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8 xmlns:h="http://xmlns.jcp.org/jsf/html"
9 xmlns:f="http://xmlns.jcp.org/jsf/core"
10 xmlns:p="http://primefaces.org/ui"
13 <ui:define name="document_admin_title">
14 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT}" />
17 <ui:define name="content_header">
18 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}" />
21 <ui:define name="content">
22 <h:form id="form-list-contacts">
26 value="#{contactController.allContacts()}"
29 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}"
30 emptyMessage="#{msg.ADMIN_EMPTY_LIST_CONTACT}"
31 widgetVar="contactList"
34 <f:facet name="header">
35 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
38 <p:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
39 <f:param name="contactId" value="#{contact.contactId}" />
44 <f:facet name="header">
45 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
48 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
52 <f:facet name="header">
53 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
56 <h:outputText value="#{contact.contactFirstName}" />
60 <f:facet name="header">
61 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
64 <h:outputText value="#{contact.contactFamilyName}" />
68 <f:facet name="header">
69 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
72 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
76 <f:facet name="header">
77 <h:outputText value="#{msg.ENTRY_CREATED_HEADER}" />
80 <h:outputText id="contactCreated" value="#{contact.contactCreated}">
81 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
86 <f:facet name="header">
87 <h:outputText value="#{msg.ADMIN_ACTION_LINKS_HEADER}" />
90 <links:outputContactAdminDropdownMenu contact="#{contact}" />
100 <f:facet name="header">
101 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
104 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
106 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
108 <f:facet name="footer">
112 value="#{msg.BUTTON_RESET_FORM}"
117 value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
118 action="#{adminContactController.addContact()}"
119 update=":master:form-list-contacts:contactList"