]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl
611d39d60e2b8364331278908c22cc5ae262b83a
[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                                         <f:converter converterId="MobileNumberConverter" />
38
39                                         <f:selectItem
40                                                 itemValue="#{null}"
41                                                 itemLabel="#{msg.NONE_SELECTED}"
42                                                 />
43
44                                         <f:selectItems
45                                                 value="#{adminMobileController.allNonLinkedMobileNumbers}"
46                                                 var="mobileNumber"
47                                                 itemValue="#{mobileNumber}"
48                                                 itemLabel="#{beanHelper.renderMobileNumber(mobileNumber)}"
49                                                 />
50                                 </p:selectOneMenu>
51                         </p:panelGrid>
52
53                         <div class="para">
54                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
55                         </div>
56
57                         <p:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
58                         <core:inputMobileNumberPanelGrid targetController="#{adminMobileController}" />
59
60                         <p:panelGrid
61                                 layout="grid"
62                                 columns="2"
63                                 >
64                                 <p:commandButton
65                                         type="reset"
66                                         value="#{msg.BUTTON_RESET_FORM}"
67                                         />
68
69                                 <p:commandButton
70                                         type="submit"
71                                         action="#{adminContactMobileController.doLinkAddMobileNumber(beanHelper.contact)}"
72                                         value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}"
73                                         >
74                                         <f:param name="contactId" value="#{param.contactId}" />
75                                 </p:commandButton>
76                         </p:panelGrid>
77                 </h:panelGroup>
78         </h:form>
79 </ui:composition>