]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl
6b50af2594648fddaa75b8e4c7b3ee5b129090a4
[jjobs-war.git] / web / WEB-INF / templates / admin / landline / admin_form_add_contact_landline.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 id="error-helper-contact-add-landline" message="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
12
13         <h:form id="form_add_contact_landline" rendered="#{not empty beanHelper.contact}">
14                 <h:panelGroup layout="block">
15                         <div class="table-header">
16                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_LAND_LINE_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="landLineNumber" value="#{msg.ADMIN_SELECT_LAND_LINE_NUMBER}" />
26                                 </div>
27
28                                 <div class="table-right-medium">
29                                         <p:selectOneMenu styleClass="select" id="landLineNumber" value="#{adminPhoneController.landLineNumber}">
30                                                 <f:converter converterId="LandLineNumberConverter" />
31                                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
32                                                 <f:selectItems value="#{adminPhoneController.allNonLinkedLandLineNumbers()}" var="landlineNumber" itemValue="#{landlineNumber}" itemLabel="#{landlineNumber.phoneCountry.countryExternalDialPrefix} (#{landlineNumber.phoneAreaCode}) #{landlineNumber.phoneNumber}" />
33                                         </p:selectOneMenu>
34                                 </div>
35                         </h:panelGroup>
36
37                         <div class="para">
38                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_LAND_LINE_DATA}" />
39                         </div>
40
41                         <core:outputLandLineInputTableRow targetController="#{adminPhoneController}" labelMessage="#{msg.ADMIN_PERSONAL_DATA_LAND_LINE_NUMBER}" />
42
43                         <p:panelGrid columns="2" layout="grid">
44                                 <p:commandButton
45                                         type="reset"
46                                         value="#{msg.BUTTON_RESET_FORM}"
47                                         />
48
49                                 <p:commandButton
50                                         process="@form"
51                                         type="submit"
52                                         action="#{adminContactPhoneController.doLinkAddLandLineNumber(beanHelper.contact)}"
53                                         value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_LAND_LINE_NUMBER}"
54                                         >
55                                         <f:param name="contactId" value="#{param.contactId}" />
56                                 </p:commandButton>
57                         </p:panelGrid>
58                 </h:panelGroup>
59         </h:form>
60 </ui:composition>