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