1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4 xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6 xmlns:h="http://xmlns.jcp.org/jsf/html"
7 xmlns:f="http://xmlns.jcp.org/jsf/core"
10 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
11 <ui:define name="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 <ui:fragment rendered="#{contactController.allContacts().isEmpty()}">
21 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
22 <ui:param name="message" value="#{msg.ADMIN_CONTACT_LIST_EMPTY}" />
23 <ui:param name="styleClass" value="errors" />
27 <h:dataTable id="table_list_contacts" var="contact" value="#{contactController.allContacts()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}" rendered="#{not contactController.allContacts().isEmpty()}">
29 <f:facet name="header">
30 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
33 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_DATA_TITLE}" value="#{contact.contactId}">
34 <f:param name="contactId" value="#{contact.contactId}" />
39 <f:facet name="header">
40 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
43 <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
47 <f:facet name="header">
48 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
51 <h:outputText value="#{contact.contactFirstName}" />
55 <f:facet name="header">
56 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
59 <h:outputText value="#{contact.contactFamilyName}" />
63 <f:facet name="header">
64 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
67 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
71 <f:facet name="header">
72 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
75 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
76 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
81 <h:form id="form_admin_add_contact">
82 <h:panelGroup styleClass="table_medium" layout="block">
83 <div class="table_header">
84 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
88 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
91 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
93 <div class="table_footer">
94 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
95 <h:commandButton styleClass="submit" type="submit" id="add_contact" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />