]> 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:outputText styleClass="errors" value="#{msg.ADMIN_CONTACT_LIST_EMPTY}"rendered="#{userController.allUsers().isEmpty()}" />
21
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()}">
23                                 <h:column>
24                                         <f:facet name="header">
25                                                 <h:outputText value="#{msg.ADMIN_CONTACT_ID}" />
26                                         </f:facet>
27
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}" />
30                                         </h:link>
31                                 </h:column>
32
33                                 <h:column>
34                                         <f:facet name="header">
35                                                 <h:outputText value="#{msg.ADMIN_CONTACT_GENDER}" />
36                                         </f:facet>
37
38                                         <h:outputText value="#{msg[contact.contactGender.messageKey]}" />
39                                 </h:column>
40
41                                 <h:column>
42                                         <f:facet name="header">
43                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FIRST_NAME}" />
44                                         </f:facet>
45
46                                         <h:outputText value="#{contact.contactFirstName}" />
47                                 </h:column>
48
49                                 <h:column>
50                                         <f:facet name="header">
51                                                 <h:outputText value="#{msg.ADMIN_CONTACT_FAMILY_NAME}" />
52                                         </f:facet>
53
54                                         <h:outputText value="#{contact.contactFamilyName}" />
55                                 </h:column>
56
57                                 <h:column>
58                                         <f:facet name="header">
59                                                 <h:outputText value="#{msg.ADMIN_CONTACT_USAGE}" />
60                                         </f:facet>
61
62                                         <h:outputText value="#{msg[beanHelper.getContactUsageMessageKey(contact)]}" />
63                                 </h:column>
64
65                                 <h:column>
66                                         <f:facet name="header">
67                                                 <h:outputText value="#{msg.ADMIN_CONTACT_CREATED}" />
68                                         </f:facet>
69
70                                         <h:outputText id="contactCreated" value="#{contact.contactCreated.time}">
71                                                 <f:convertDateTime for="contactCreated" type="both" timeStyle="short" dateStyle="short" />
72                                         </h:outputText>
73                                 </h:column>
74                         </h:dataTable>
75
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}" />
80                                         </div>
81
82                                         <div class="para">
83                                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MINIMUM_DATA}" />
84                                         </div>
85
86                                         <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
87
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()}" />
91                                         </div>
92                                 </h:panelGroup>
93                         </h:form>
94                 </ui:define>
95         </ui:composition>
96 </html>