]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/landline/admin_landline_list.xhtml
c615e6e1105ee76880d1da23b3dde54f1b5cb449
[pizzaservice-war.git] / web / admin / landline / admin_landline_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:widgets="http://mxchange.org/jsf/core/widgets"
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         <ui:define name="admin_title">
10                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
11         </ui:define>
12
13         <ui:define name="content_header">
14                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_LAND_LINE_NUMBER}" />
15         </ui:define>
16
17         <ui:define name="content">
18                 <h:dataTable id="table_list_landline" var="landLineNumber" value="#{phoneController.allLandLineNumbers()}" styleClass="table-full" headerClass="table-header-column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_LAND_LINES}" rendered="#{not phoneController.allLandLineNumbers().isEmpty()}">
19                         <h:column>
20                                 <f:facet name="header">
21                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
22                                 </f:facet>
23
24                                 <h:link outcome="admin_show_landline" value="#{landLineNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}">
25                                         <f:param name="phoneId" value="#{landLineNumber.phoneId}" />
26                                 </h:link>
27                         </h:column>
28
29                         <h:column>
30                                 <f:facet name="header">
31                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
32                                 </f:facet>
33
34                                 <h:outputText value="#{landLineNumber.phoneCountry.countryAbroadDialPrefix}#{landLineNumber.phoneCountry.countryPhoneCode} (#{landLineNumber.phoneAreaCode}) #{landLineNumber.phoneNumber}" />
35                         </h:column>
36
37                         <h:column>
38                                 <f:facet name="header">
39                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
40                                 </f:facet>
41
42                                 <h:outputText value="#{landLineNumber.phoneEntryCreated.time}">
43                                         <f:convertDateTime type="both" />
44                                 </h:outputText>
45                         </h:column>
46
47                         <h:column>
48                                 <f:facet name="header">
49                                         <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
50                                 </f:facet>
51
52                                 <h:outputText value="#{landLineNumber.phoneEntryUpdated.time}">
53                                         <f:convertDateTime type="both" />
54                                 </h:outputText>
55                         </h:column>
56                 </h:dataTable>
57
58                 <widgets:outputMessageBox message="#{msg.ADMIN_LIST_LAND_LINE_EMPTY}" messageStyleClass="alert-danger" rendered="#{phoneController.allLandLineNumbers().isEmpty()}" />
59         </ui:define>
60 </ui:composition>