]> 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:core="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://xmlns.jcp.org/jsf/core"
6         xmlns:h="http://xmlns.jcp.org/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
8         xmlns:p="http://primefaces.org/ui">
9
10         <core:outputMessageBox id="error-handler-contact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
11
12         <h:form id="form_add_contact_mobile" rendered="#{not empty beanHelper.contact}">
13                 <h:panelGroup styleClass="table table-full" layout="block">
14                         <div class="table-header">
15                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
16                         </div>
17
18                         <div class="para">
19                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
20                         </div>
21
22                         <h:panelGroup styleClass="table-row" layout="block">
23                                 <div class="table-left-medium">
24                                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_SELECT_MOBILE_NUMBER}" />
25                                 </div>
26
27                                 <div class="table-right-medium">
28                                         <p:selectOneMenu styleClass="select" id="mobileNumber" value="#{adminPhoneController.mobileNumber}">
29                                                 <f:converter converterId="MobileNumberConverter" />
30                                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
31                                                 <f:selectItems value="#{adminPhoneController.allNonLinkedMobileNumbers()}" var="mobileNumber" itemValue="#{mobileNumber}" itemLabel="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix} (#{mobileNumber.mobileProvider.providerDialPrefix}) #{mobileNumber.phoneNumber}" />
32                                         </p:selectOneMenu>
33                                 </div>
34                         </h:panelGroup>
35
36                         <div class="para">
37                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
38                         </div>
39
40                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
41                         <core:inputMobileNumberPanelGrid targetController="#{adminPhoneController}" />
42
43                         <div class="table-footer">
44                                 <p:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
45
46                                 <p: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}">
47                                         <f:param name="contactId" value="#{param.contactId}" />
48                                 </p:commandButton>
49                         </div>
50                 </h:panelGroup>
51         </h:form>
52 </ui:composition>