]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_list.xhtml
Continued with contacts:
[jjobs-war.git] / web / admin / contact / admin_contact_list.xhtml
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">
3 <html
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"
9         >
10
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>
13
14                 <ui:define name="content_header">
15                         #{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}
16                 </ui:define>
17
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()}">
20                                 <h:column>
21                                         <f:facet name="header">#{msg.ADMIN_CONTACT_ID}</f:facet>
22
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}" />
25                                         </h:link>
26                                 </h:column>
27
28                                 <h:column>
29                                         <f:facet name="header">#{msg.ADMIN_CONTACT_GENDER}</f:facet>
30
31                                         <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
32                                 </h:column>
33
34                                 <h:column>
35                                         <f:facet name="header">#{msg.ADMIN_CONTACT_FIRST_NAME}</f:facet>
36
37                                         <h:outputText value="#{contact.contactFirstName}" />
38                                 </h:column>
39
40                                 <h:column>
41                                         <f:facet name="header">#{msg.ADMIN_CONTACT_FAMILY_NAME}</f:facet>
42
43                                         <h:outputText value="#{contact.contactFamilyName}" />
44                                 </h:column>
45
46                                 <h:column>
47                                         <f:facet name="header">#{msg.ADMIN_CONTACT_USAGE}</f:facet>
48
49                                         <h:outputText value="#{msg[adminHelper.getUserCustomerUsageMessageKey(contact)]}" />
50                                 </h:column>
51
52                                 <h:column>
53                                         <f:facet name="header">#{msg.ADMIN_CONTACT_CREATED}</f:facet>
54
55                                         <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
56                                                 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
57                                         </h:outputText>
58                                 </h:column>
59                         </h:dataTable>
60
61                         <div class="table_medium">
62                                 <h:form id="admin_add_contact">
63                                         <div class="table_header">
64                                                 #{msg.ADMIN_ADD_CONTACT_TITLE}
65                                         </div>
66
67                                         <div class="para">
68                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
69                                         </div>
70
71                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
72
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()}" />
76                                         </div>
77                                 </h:form>
78                         </div>
79                 </ui:define>
80         </ui:composition>
81 </html>