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="#{contactListController.allContacts}"
28 paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
29 filteredValue="#{contactListController.filteredContacts}"
31 rowKey="#{contact.contactId}"
33 resizableColumns="true"
34 rowsPerPageTemplate="5,10,20,50,100"
36 summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}"
37 emptyMessage="#{msg.ADMIN_EMPTY_LIST_CONTACT}"
38 widgetVar="contactList"
39 selectionMode="single"
40 selection="#{contactListController.selectedContact}"
44 <f:facet name="header">
48 columnClasses="ui-grid-col-4,ui-grid-col-6,ui-grid-col-2"
54 columnClasses="ui-grid-4,ui-grid-8"
56 styleClass="ui-noborder"
58 <p:outputLabel for="globalFilter" value="#{msg.SEARCH_ALL_FIELDS}" style="float: right" />
59 <p:inputText id="globalFilter" onkeyup="PF('contactList').filter()" placeholder="#{msg.ENTER_KEYWORD}"/>
63 <p:spacer height="4" />
68 value="#{msg.SELECT_SHOWN_COLUMNS}"
69 styleClass="column-selector"
72 <p:columnToggler datasource="contactList" trigger="toggler" />
79 update=":master:form-list-contacts:contact-details"
80 oncomplete="PF('contactDialog').show()"
84 headerText="#{msg.ID_HEADER}"
85 sortBy="#{contact.contactId}"
89 outcome="admin_show_contact"
90 value="#{contact.contactId}"
91 title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}"
93 <f:param name="contactId" value="#{contact.contactId}" />
98 headerText="#{msg.ADMIN_CONTACT_PERSONAL_TITLE}"
99 sortBy="#{contact.contactPersonalTitle}"
100 filterBy="#{contact.contactPersonalTitle}"
101 filterMatchMode="exact"
103 <f:facet name="filter">
104 <p:selectOneMenu onchange="PF('contactList').filter()">
105 <f:converter converterId="PersonalTitleConverter" />
106 <f:selectItem itemLabel="#{msg.CHOICE_ALL}" itemValue="#{null}" />
108 value="#{dataController.personalTitles}"
110 itemValue="#{personalTitle}"
111 itemLabel="#{msg[personalTitle.messageKey]}"
115 <h:outputText value="#{msg[contact.contactPersonalTitle.messageKey]}" />
119 headerText="#{msg.ADMIN_CONTACT_FIRST_NAME}"
120 sortBy="#{contact.contactFirstName}"
121 filterBy="#{contact.contactFirstName}"
122 filterMatchMode="contains"
124 <h:outputText value="#{contact.contactFirstName}" />
128 headerText="#{msg.ADMIN_CONTACT_FAMILY_NAME}"
129 sortBy="#{contact.contactFamilyName}"
130 filterBy="#{contact.contactFamilyName}"
131 filterMatchMode="contains"
133 <h:outputText value="#{contact.contactFamilyName}" />
137 headerText="#{msg.ADMIN_CONTACT_USAGE}"
141 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
145 headerText="#{msg.ENTRY_CREATED_HEADER}"
146 sortBy="#{contact.contactCreated}"
147 filterBy="#{contact.contactCreated}"
148 filterMatchMode="contains"
150 <h:outputText id="contactCreated" value="#{contact.contactCreated}">
151 <f:convertDateTime type="both" timeStyle="short" dateStyle="short" />
156 headerText="#{msg.ADMIN_ACTION_LINKS_HEADER}"
160 <links:outputContactAdminDropdownMenu contact="#{contact}" />
168 header="#{msg.ADMIN_SINGLE_CONTACT_DETAILS_HEADER}"
171 widgetVar="contactDialog"
176 <p:outputPanel id="contact-details">
177 <p:panelGrid columns="2" rendered="#{not empty contactListController.selectedContact}">
178 <f:facet name="header">
179 <h:outputFormat value="#{msg.ADMIN_CONTACT_DETAILS_HEADER}">
180 <f:param value="#{msg[contactListController.selectedContact.contactPersonalTitle.messageKey]}" />
181 <f:param value="#{contactListController.selectedContact.contactFirstName}" />
182 <f:param value="#{contactListController.selectedContact.contactFamilyName}" />
183 <f:param value="#{contactListController.selectedContact.contactId}" />
187 <p:outputLabel value="#{msg.ID_HEADER}" title="#{msg.CONTACT_ID_NUMBER_TITLE}" />
188 <h:outputText value="#{contactListController.selectedContact.contactId}" />
199 <f:facet name="header">
200 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
203 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
205 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
207 <f:facet name="footer">
211 value="#{msg.BUTTON_RESET_FORM}"
215 value="#{msg.BUTTON_ADMIN_ADD_CONTACT}"
216 action="#{adminContactController.addContact()}"
217 update=":master:form-list-contacts:contactList"