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">#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT}</ui:define>
13 <ui:define name="content_header">
14 #{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}
17 <ui:define name="content">
18 <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="#{not contactController.allContacts().isEmpty()}">
20 <f:facet name="header">
21 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
24 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_TITLE}" value="#{contact.contactId}">
25 <f:param name="contactId" value="#{contact.contactId}" />
30 <f:facet name="header">
31 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
34 <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
38 <f:facet name="header">
39 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
42 <h:outputText value="#{contact.contactFirstName}" />
46 <f:facet name="header">
47 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
50 <h:outputText value="#{contact.contactFamilyName}" />
54 <f:facet name="header">
55 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
58 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
62 <f:facet name="header">
63 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
66 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
67 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
72 <h:form id="form_admin_add_contact">
73 <h:panelGroup styleClass="table_medium" layout="block">
74 <div class="table_header">
75 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
79 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
82 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
84 <div class="table_footer">
85 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
86 <h:commandButton styleClass="submit" type="submit" id="add_contact" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />