]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_list.xhtml
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">
12                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT}" />
13                 </ui:define>
14
15                 <ui:define name="content_header">
16                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT}" />
17                 </ui:define>
18
19                 <ui:define name="content">
20                         <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()}">
21                                 <h:column>
22                                         <f:facet name="header">
23                                                 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
24                                         </f:facet>
25
26                                         <h:link outcome="admin_show_contact" title="#{msg.ADMIN_LINK_SHOW_CONTACT_TITLE}" value="#{contact.contactId}">
27                                                 <f:param name="contactId" value="#{contact.contactId}" />
28                                         </h:link>
29                                 </h:column>
30
31                                 <h:column>
32                                         <f:facet name="header">
33                                                 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
34                                         </f:facet>
35
36                                         <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
37                                 </h:column>
38
39                                 <h:column>
40                                         <f:facet name="header">
41                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
42                                         </f:facet>
43
44                                         <h:outputText value="#{contact.contactFirstName}" />
45                                 </h:column>
46
47                                 <h:column>
48                                         <f:facet name="header">
49                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
50                                         </f:facet>
51
52                                         <h:outputText value="#{contact.contactFamilyName}" />
53                                 </h:column>
54
55                                 <h:column>
56                                         <f:facet name="header">
57                                                 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
58                                         </f:facet>
59
60                                         <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
61                                 </h:column>
62
63                                 <h:column>
64                                         <f:facet name="header">
65                                                 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
66                                         </f:facet>
67
68                                         <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
69                                                 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
70                                         </h:outputText>
71                                 </h:column>
72                         </h:dataTable>
73
74                         <h:form id="form_admin_add_contact">
75                                 <h:panelGroup styleClass="table_medium" layout="block">
76                                         <div class="table_header">
77                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_TITLE}" />
78                                         </div>
79
80                                         <div class="para">
81                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
82                                         </div>
83
84                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
85
86                                         <div class="table_footer">
87                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
88                                                 <h:commandButton styleClass="submit" type="submit" id="add_contact" value="#{msg.BUTTON_ADMIN_ADD_CONTACT}" action="#{adminContactController.addContact()}" />
89                                         </div>
90                                 </h:panelGroup>
91                         </h:form>
92                 </ui:define>
93         </ui:composition>
94 </html>