]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl
Updated copyright year
[pizzaservice-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
12                 panelGroupId="errorHelperContactAddLandline"
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_LAND_LINE_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="landLineNumber" value="#{msg.ADMIN_SELECT_LAND_LINE_NUMBER}" />
33                                 <p:selectOneMenu
34                                         id="landLineNumber"
35                                         styleClass="select"
36                                         value="#{adminPhoneController.landLineNumber}"
37                                         >
38                                         <f:converter converterId="LandLineNumberConverter" />
39
40                                         <f:selectItem
41                                                 itemValue="#{null}"
42                                                 itemLabel="#{msg.NONE_SELECTED}"
43                                                 />
44
45                                         <f:selectItems
46                                                 value="#{adminPhoneController.allNonLinkedLandLineNumbers}"
47                                                 var="landlineNumber"
48                                                 itemValue="#{landlineNumber}"
49                                                 itemLabel="#{beanHelper.renderPhoneNumber(landlineNumber)}"
50                                                 />
51                                 </p:selectOneMenu>
52                         </p:panelGrid>
53
54                         <div class="para">
55                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_LAND_LINE_DATA}" />
56                         </div>
57
58                         <core:outputLandLineInputTableRow targetController="#{adminPhoneController}" labelMessage="#{msg.ADMIN_PERSONAL_DATA_LAND_LINE_NUMBER}" />
59
60                         <p:panelGrid columns="2" layout="grid">
61                                 <p:commandButton
62                                         type="reset"
63                                         value="#{msg.BUTTON_RESET_FORM}"
64                                         />
65
66                                 <p:commandButton
67                                         type="submit"
68                                         action="#{adminContactPhoneController.doLinkAddLandLineNumber(beanHelper.contact)}"
69                                         value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_LAND_LINE_NUMBER}"
70                                         >
71                                         <f:param name="contactId" value="#{param.contactId}" />
72                                 </p:commandButton>
73                         </p:panelGrid>
74                 </h:panelGroup>
75         </h:form>
76 </ui:composition>