]> 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
11         <core:outputMessageBox panelGroupId="errorHandlerAddMobileContact" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
12
13         <h:form id="form_add_contact_mobile" rendered="#{not empty beanHelper.contact}">
14                 <h:panelGroup layout="block">
15                         <div class="table-header">
16                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
17                         </div>
18
19                         <div class="para">
20                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
21                         </div>
22
23                         <h:panelGroup styleClass="table-row" layout="block">
24                                 <div class="table-left-medium">
25                                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_SELECT_MOBILE_NUMBER}" />
26                                 </div>
27
28                                 <div class="table-right-medium">
29                                         <p:selectOneMenu styleClass="select" id="mobileNumber" value="#{adminPhoneController.mobileNumber}">
30                                                 <f:converter converterId="MobileNumberConverter" />
31
32                                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
33
34                                                 <f:selectItems
35                                                         value="#{adminPhoneController.allNonLinkedMobileNumbers()}"
36                                                         var="mobileNumber"
37                                                         itemValue="#{mobileNumber}"
38                                                         itemLabel="#{beanHelper.renderMobileNumber(mobileNumber)}"
39                                                         />
40                                         </p:selectOneMenu>
41                                 </div>
42                         </h:panelGroup>
43
44                         <div class="para">
45                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
46                         </div>
47
48                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
49                         <core:inputMobileNumberPanelGrid targetController="#{adminPhoneController}" />
50
51                         <p:panelGrid columns="2" layout="grid">
52                                 <p:commandButton
53                                         type="reset"
54                                         value="#{msg.BUTTON_RESET_FORM}"
55                                         />
56
57                                 <p:commandButton
58                                         process="@form"
59                                         type="submit"
60                                         action="#{adminContactPhoneController.doLinkAddMobileNumber(beanHelper.contact)}"
61                                         value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}"
62                                         >
63                                         <f:param name="contactId" value="#{param.contactId}" />
64                                 </p:commandButton>
65                         </p:panelGrid>
66                 </h:panelGroup>
67         </h:form>
68 </ui:composition>