]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/fax/admin_fax_list.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / fax / admin_fax_list.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="admin_title">
9                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_FAX_NUMBER}" />
10         </ui:define>
11
12         <ui:define name="content_header">
13                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_FAX_NUMBER}" />
14         </ui:define>
15
16         <ui:define name="content">
17                 <h:dataTable id="table_list_fax" var="faxNumber" value="#{phoneController.allFaxNumbers()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_FAXS}" rendered="#{not phoneController.allFaxNumbers().isEmpty()}">
18                         <h:column>
19                                 <f:facet name="header">
20                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
21                                 </f:facet>
22
23                                 <h:link outcome="admin_show_fax" value="#{faxNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}">
24                                         <f:param name="phoneId" value="#{faxNumber.phoneId}" />
25                                 </h:link>
26                         </h:column>
27
28                         <h:column>
29                                 <f:facet name="header">
30                                         <h:outputLabel for="faxNumber" value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
31                                 </f:facet>
32
33                                 <h:outputText id="faxNumber" value="#{faxNumber.phoneCountry.countryAbroadDialPrefix}#{faxNumber.phoneCountry.countryPhoneCode} (#{faxNumber.phoneAreaCode}) #{faxNumber.phoneNumber}" />
34                         </h:column>
35
36                         <h:column>
37                                 <f:facet name="header">
38                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
39                                 </f:facet>
40
41                                 <h:outputText value="#{faxNumber.phoneEntryCreated.time}">
42                                         <f:convertDateTime type="both" />
43                                 </h:outputText>
44                         </h:column>
45
46                         <h:column>
47                                 <f:facet name="header">
48                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
49                                 </f:facet>
50
51                                 <h:outputText value="#{faxNumber.phoneEntryUpdated.time}">
52                                         <f:convertDateTime type="both" />
53                                 </h:outputText>
54                         </h:column>
55                 </h:dataTable>
56
57                 <ui:fragment rendered="#{phoneController.allFaxNumbers().isEmpty()}">
58                         <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
59                                 <ui:param name="message" value="#{msg.ADMIN_LIST_FAX_NUMBER_EMPTY}" />
60                                 <ui:param name="styleClass" value="errors" />
61                         </ui:include>
62                 </ui:fragment>
63         </ui:define>
64 </ui:composition>