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="#{adminContactController.allContacts()}" styleClass="table_big" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_CONTACT}" rendered="#{adminContactController.hasContacts()}">
21 <f:facet name="header">#{msg.ADMIN_CONTACT_ID}</f:facet>
23 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_TITLE}" value="#{contact.contactId}">
24 <f:param name="contactId" value="#{contact.contactId}" />
29 <f:facet name="header">#{msg.ADMIN_CONTACT_GENDER}</f:facet>
31 <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
35 <f:facet name="header">#{msg.ADMIN_CONTACT_FIRST_NAME}</f:facet>
37 <h:outputText value="#{contact.contactFirstName}" />
41 <f:facet name="header">#{msg.ADMIN_CONTACT_FAMILY_NAME}</f:facet>
43 <h:outputText value="#{contact.contactFamilyName}" />
47 <f:facet name="header">#{msg.ADMIN_CONTACT_USAGE}</f:facet>
49 <h:outputText value="#{msg[adminHelper.getUserCustomerUsageMessageKey(contact)]}" />
53 <f:facet name="header">#{msg.ADMIN_CONTACT_CREATED}</f:facet>
55 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
56 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
61 <div class="table_medium">
62 <h:form id="admin_add_contact">
63 <div class="table_header">
64 #{msg.ADMIN_ADD_CONTACT_TITLE}
68 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
71 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
73 <div class="table_footer">
74 <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
75 <h:commandButton class="submit" type="submit" id="register" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />