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}" />
39 outcome="admin_show_contact"
40 value="#{contact.contactId}"
41 title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}"
43 <f:param name="contactId" value="#{contact.contactId}" />
48 <f:facet name="header">
49 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}" />
52 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
56 <f:facet name="header">
57 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
60 <h:outputText value="#{contact.contactFirstName}" />
64 <f:facet name="header">
65 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
68 <h:outputText value="#{contact.contactFamilyName}" />
72 <f:facet name="header">
73 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
76 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
80 <f:facet name="header">
81 <h:outputText value="#{msg.ENTRY_CREATED_HEADER}" />
84 <h:outputText id="contactCreated" value="#{contact.contactCreated}">
85 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
90 <f:facet name="header">
91 <h:outputText value="#{msg.ADMIN_ACTION_LINKS_HEADER}" />
94 <links:outputContactAdminDropdownMenu contact="#{contact}" />
104 <f:facet name="header">
105 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
108 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
110 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
112 <f:facet name="footer">
116 value="#{msg.BUTTON_RESET_FORM}"
120 value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
121 action="#{adminContactController.addContact()}"
122 update=":master:form-list-contacts:contactList"