]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl
81871788350a9e8ab735f749de7e68887f105b60
[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
12                 panelGroupId="errorHandlerAddMobileContact"
13                 message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}"
14                 messageStyleClass="alert-danger"
15                 rendered="#{empty beanHelper.contact}"
16                 />
17
18         <h:form rendered="#{not empty beanHelper.contact}">
19                 <h:panelGroup layout="block">
20                         <div class="table-header">
21                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
22                         </div>
23
24                         <div class="para">
25                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
26                         </div>
27
28                         <p:panelGrid
29                                 layout="grid"
30                                 columns="2"
31                                 >
32                                 <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_SELECT_MOBILE_NUMBER}" />
33                                 <p:selectOneMenu
34                                         id="mobileNumber"
35                                         value="#{adminMobileController.mobileNumber}"
36                                         >
37
38                                         <f:converter converterId="MobileNumberConverter" />
39
40                                         <f:selectItem
41                                                 itemValue="#{null}"
42                                                 itemLabel="#{msg.NONE_SELECTED}"
43                                                 />
44
45                                         <f:selectItems
46                                                 value="#{adminMobileController.allNonLinkedMobileNumbers}"
47                                                 var="mobileNumber"
48                                                 itemValue="#{mobileNumber}"
49                                                 itemLabel="#{beanHelper.renderMobileNumber(mobileNumber)}"
50                                                 />
51                                 </p:selectOneMenu>
52                         </p:panelGrid>
53
54                         <div class="para">
55                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
56                         </div>
57
58                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
59                         <core:inputMobileNumberPanelGrid targetController="#{adminMobileController}" />
60
61                         <p:panelGrid
62                                 layout="grid"
63                                 columns="2"
64                                 >
65                                 <p:commandButton
66                                         type="reset"
67                                         value="#{msg.BUTTON_RESET_FORM}"
68                                         />
69
70                                 <p:commandButton
71                                         type="submit"
72                                         action="#{adminContactMobileController.doLinkAddMobileNumber(beanHelper.contact)}"
73                                         value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}"
74                                         >
75                                         <f:param name="contactId" value="#{param.contactId}" />
76                                 </p:commandButton>
77                         </p:panelGrid>
78                 </h:panelGroup>
79         </h:form>
80 </ui:composition>