]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/admin/landline/admin_landline_data.tpl
Please cherry-pick:
[pizzaservice-war.git] / web / WEB-INF / templates / admin / landline / admin_landline_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://java.sun.com/jsf/core"
6         xmlns:h="http://java.sun.com/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
8
9         <widgets:outputMessageBox message="#{msg.ERROR_BEAN_HELPER_LAND_LINE_NUMBER_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.landLineNumber}" />
10
11         <h:panelGrid id="landline_data" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_LAND_LINE_NUMBER_DATA}" headerClass="table-header-column" styleClass="table table-medium" columns="2" rendered="#{not empty beanHelper.landLineNumber}">
12                 <f:facet name="header">
13                         <h:outputText value="#{msg.ADMIN_HEADER_SHOW_LAND_LINE_NUMBER_DATA}" />
14                 </f:facet>
15
16                 <h:column>
17                         <h:panelGroup>
18                                 <h:outputLabel for="landLineNumberId" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_ID}" />
19
20                                 <h:outputText id="landLineNumberId" styleClass="table-data-field" value="#{beanHelper.landLineNumber.phoneId}" />
21
22                                 <h:message for="landLineNumberId" errorClass="alert-danger" fatalClass="alert-danger" warnClass="alert-warning" />
23                         </h:panelGroup>
24                 </h:column>
25
26                 <h:column>
27                         <h:outputLabel for="landLineNumber" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_LAND_LINE_NUMBER_COMPLETE}" />
28
29                         <h:outputText id="landLineNumber" styleClass="table-data-field" value="#{beanHelper.landLineNumber.phoneCountry.countryAbroadDialPrefix}#{beanHelper.landLineNumber.phoneCountry.countryPhoneCode} (#{beanHelper.landLineNumber.phoneAreaCode}) #{beanHelper.landLineNumber.phoneNumber}" />
30                 </h:column>
31
32                 <h:column>
33                         <h:outputLabel for="landLineCreated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
34
35                         <h:outputText id="landLineCreated" styleClass="table-data-field" value="#{beanHelper.landLineNumber.phoneEntryCreated.time}">
36                                 <f:convertDateTime for="contactCreated" type="both" />
37                         </h:outputText>
38                 </h:column>
39
40                 <h:column>
41                         <h:outputLabel for="landLineUpdated" styleClass="table-data-label" value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
42
43                         <h:outputText id="landLineUpdated" styleClass="table-data-field" value="#{beanHelper.landLineNumber.phoneEntryUpdated.time}">
44                                 <f:convertDateTime for="contactUpdated" type="both" />
45                         </h:outputText>
46                 </h:column>
47
48                 <h:column rendered="#{empty showAdminLinks or showAdminLinks}">
49                         <h:outputLabel styleClass="table-data-label" value="#{msg.ADMIN_SHOW_ADMINISTRATIVE_LINKS}" />
50
51                         <div class="table-data-field">
52                                 <ui:include src="/WEB-INF/templates/admin/landline/admin_landline_links.tpl">
53                                         <ui:param name="isShowPage" value="#{isShowPage}" />
54                                 </ui:include>
55                         </div>
56                 </h:column>
57         </h:panelGrid>
58 </ui:composition>