1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
5 xmlns="http://www.w3.org/1999/xhtml"
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"
11 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
12 <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT}</ui:define>
14 <ui:define name="content_header">
15 #{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}
18 <ui:define name="content">
19 <h:dataTable id="table_list_contacts" var="contact" value="#{contactController.allContacts()}" styleClass="table_big" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}" rendered="#{contactController.hasContacts()}">
21 <f:facet name="header">
22 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
25 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_TITLE}" value="#{contact.contactId}">
26 <f:param name="contactId" value="#{contact.contactId}" />
31 <f:facet name="header">
32 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
35 <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
39 <f:facet name="header">
40 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
43 <h:outputText value="#{contact.contactFirstName}" />
47 <f:facet name="header">
48 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
51 <h:outputText value="#{contact.contactFamilyName}" />
55 <f:facet name="header">
56 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
59 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
63 <f:facet name="header">
64 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
67 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
68 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
73 <div class="table_medium">
74 <h:form id="admin_add_contact">
75 <div class="table_header">
76 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
80 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
83 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
85 <div class="table_footer">
86 <h:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
87 <h:commandButton styleClass="submit" type="submit" id="add_contact" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />