]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_list.xhtml
Improved many things: (please cherry-pick)
[jjobs-war.git] / web / admin / contact / admin_contact_list.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
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"
8         >
9
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>
12
13                 <ui:define name="content_header">
14                         #{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}
15                 </ui:define>
16
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()}">
19                                 <h:column>
20                                         <f:facet name="header">
21                                                 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
22                                         </f:facet>
23
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}" />
26                                         </h:link>
27                                 </h:column>
28
29                                 <h:column>
30                                         <f:facet name="header">
31                                                 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
32                                         </f:facet>
33
34                                         <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
35                                 </h:column>
36
37                                 <h:column>
38                                         <f:facet name="header">
39                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
40                                         </f:facet>
41
42                                         <h:outputText value="#{contact.contactFirstName}" />
43                                 </h:column>
44
45                                 <h:column>
46                                         <f:facet name="header">
47                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
48                                         </f:facet>
49
50                                         <h:outputText value="#{contact.contactFamilyName}" />
51                                 </h:column>
52
53                                 <h:column>
54                                         <f:facet name="header">
55                                                 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
56                                         </f:facet>
57
58                                         <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
59                                 </h:column>
60
61                                 <h:column>
62                                         <f:facet name="header">
63                                                 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
64                                         </f:facet>
65
66                                         <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
67                                                 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
68                                         </h:outputText>
69                                 </h:column>
70                         </h:dataTable>
71
72                         <div class="table_medium">
73                                 <h:form id="form_admin_add_contact">
74                                         <div class="table_header">
75                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
76                                         </div>
77
78                                         <div class="para">
79                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
80                                         </div>
81
82                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
83
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()}" />
87                                         </div>
88                                 </h:form>
89                         </div>
90                 </ui:define>
91         </ui:composition>
92 </html>