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 <h:outputText styleClass="errors" value="#{msg.ADMIN_CONTACT_LIST_EMPTY}"rendered="#{userController.allUsers().isEmpty()}" />
22 <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()}">
24 <f:facet name="header">
25 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
28 <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_TITLE}" value="#{contact.contactId}">
29 <f:param name="contactId" value="#{contact.contactId}" />
34 <f:facet name="header">
35 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
38 <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
42 <f:facet name="header">
43 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
46 <h:outputText value="#{contact.contactFirstName}" />
50 <f:facet name="header">
51 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
54 <h:outputText value="#{contact.contactFamilyName}" />
58 <f:facet name="header">
59 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
62 <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
66 <f:facet name="header">
67 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
70 <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
71 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
76 <h:form id="form_admin_add_contact">
77 <h:panelGroup styleClass="table_medium" layout="block">
78 <div class="table_header">
79 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
83 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
86 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
88 <div class="table_footer">
89 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
90 <h:commandButton styleClass="submit" type="submit" id="add_contact" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />