]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl
MOJARRA - Please cherry-pick:
[pizzaservice-war.git] / web / WEB-INF / templates / admin / mobile / admin_mobile_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:generic="http://mxchange.org/jsf/core"
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         <generic:outputMessageBox message="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" styleClass="errors" rendered="#{empty beanHelper.mobileNumber}" />
10
11         <h:panelGrid id="mobile_data" summary="#{msg.ADMIN_TABLE_SUMMARY_SHOW_MOBILE_NUMBER_DATA}" headerClass="table_header_column" styleClass="table_medium" columns="2" rendered="#{not empty beanHelper.mobileNumber}">
12                 <f:facet name="header">
13                         <h:outputText value="#{msg.ADMIN_HEADER_SHOW_MOBILE_NUMBER_DATA}" />
14                 </f:facet>
15
16                 <h:column>
17                         <h:panelGroup>
18                                 <h:outputLabel for="mobileNumberId" styleClass="table_data_label" value="#{msg.ADMIN_SHOW_PHONE_ID}" />
19
20                                 <h:outputText id="mobileNumberId" styleClass="table_data_field" value="#{beanHelper.mobileNumber.phoneId}" />
21
22                                 <h:message for="mobileNumberId" errorClass="errors" fatalClass="errors" warnClass="errors" />
23                         </h:panelGroup>
24                 </h:column>
25
26                 <h:column>
27                         <h:outputLabel for="mobileProvider" styleClass="table_data_label" value="#{msg.ADMIN_SHOW_MOBILE_PROVIDER_NAME}" />
28
29                         <h:link id="mobileProvider" outcome="admin_show_mobile_provider">
30                                 <h:outputText styleClass="table_data_field" value="#{beanHelper.mobileNumber.mobileProvider.providerName}" />
31                                 <f:param name="providerId" value="#{beanHelper.mobileNumber.mobileProvider.providerId}" />
32                         </h:link>
33                 </h:column>
34
35                 <h:column>
36                         <h:outputLabel for="mobileNumber" styleClass="table_data_label" value="#{msg.ADMIN_SHOW_MOBILE_NUMBER_COMPLETE}" />
37
38                         <h:outputText id="mobileNumber" styleClass="table_data_field" value="#{beanHelper.mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix}#{beanHelper.mobileNumber.mobileProvider.providerDialPrefix}-#{beanHelper.mobileNumber.phoneNumber}" />
39                 </h:column>
40
41                 <h:column>
42                         <h:outputLabel for="mobileCreated" styleClass="table_data_label" value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
43
44                         <h:outputText id="mobileCreated" styleClass="table_data_field" value="#{beanHelper.mobileNumber.phoneEntryCreated.time}">
45                                 <f:convertDateTime for="contactCreated" type="both" />
46                         </h:outputText>
47                 </h:column>
48
49                 <h:column>
50                         <h:outputLabel for="mobileUpdated" styleClass="table_data_label" value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
51
52                         <h:outputText id="mobileUpdated" styleClass="table_data_field" value="#{beanHelper.mobileNumber.phoneEntryUpdated.time}">
53                                 <f:convertDateTime for="contactUpdated" type="both" />
54                         </h:outputText>
55                 </h:column>
56
57                 <h:column rendered="#{empty showAdminLinks or showAdminLinks}">
58                         <h:outputLabel styleClass="table_data_label" value="#{msg.ADMIN_SHOW_ADMINISTRATIVE_LINKS}" />
59
60                         <div class="table_data_field">
61                                 <ui:include src="/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl">
62                                         <ui:param name="isShowPage" value="#{isShowPage}" />
63                                 </ui:include>
64                         </div>
65                 </h:column>
66         </h:panelGrid>
67 </ui:composition>