]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / templates / admin / mobile / admin_form_add_contact_mobile.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://xmlns.jcp.org/jsf/core"
5         xmlns:h="http://xmlns.jcp.org/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <ui:fragment rendered="#{empty beanHelper.contact}">
9                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
10                         <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" />
11                         <ui:param name="styleClass" value="errors" />
12                 </ui:include>
13         </ui:fragment>
14
15         <h:form id="form_add_contact_mobile" rendered="#{not empty beanHelper.contact}">
16                 <h:panelGroup styleClass="table_medium" layout="block">
17                         <div class="table_header">
18                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
19                         </div>
20
21                         <div class="para">
22                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
23                         </div>
24
25                         <div class="table_row">
26                                 <div class="table_left_medium">
27                                         <h:outputLabel for="choosenMobileNumber" value="#{msg.ADMIN_SELECT_MOBILE_NUMBER}" />
28                                 </div>
29
30                                 <div class="table_right_medium">
31                                         <h:selectOneMenu styleClass="select right_space" id="choosenMobileNumber" value="#{adminPhoneController.choosenMobileNumber}">
32                                                 <f:converter converterId="MobileNumberConverter" />
33                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
34                                                 <f:selectItems value="#{adminPhoneController.allNonLinkedMobileNumbers()}" var="mobileNumber" itemValue="#{mobileNumber}" itemLabel="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix} (#{mobileNumber.mobileProvider.providerDialPrefix}) #{mobileNumber.phoneNumber}" />
35                                         </h:selectOneMenu>
36                                 </div>
37                         </div>
38
39                         <div class="para">
40                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
41                         </div>
42
43                         <div class="table_row">
44                                 <div class="table_left_medium">
45                                         <h:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
46                                 </div>
47
48                                 <div class="table_right_medium">
49                                         <ui:include src="/WEB-INF/templates/input_fields/mobile_input_fields.tpl">
50                                                 <ui:param name="targetController" value="#{adminPhoneController}" />
51                                         </ui:include>
52                                 </div>
53                         </div>
54
55                         <div class="table_footer">
56                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
57
58                                 <h:commandButton styleClass="submit" id="submit_add_link_contact_mobile" type="submit" action="#{adminContactPhoneController.doLinkAddMobileNumber(beanHelper.contact)}" value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}">
59                                         <f:param name="contactId" value="#{param.contactId}" />
60                                 </h:commandButton>
61                         </div>
62                 </h:panelGroup>
63         </h:form>
64 </ui:composition>