]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl
1403a0d8ffe2987c4d2bc65b50a89e1bfeb2d0d3
[jjobs-war.git] / web / WEB-INF / templates / admin / fax / admin_form_add_contact_fax.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://xmlns.jcp.org/jsf/core"
5         xmlns:h="http://xmlns.jcp.org/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" rendered="#{empty beanHelper.contact}" />
9
10         <h:form id="form_add_contact_fax" rendered="#{not empty beanHelper.contact}">
11                 <h:panelGroup styleClass="table_medium" layout="block">
12                         <div class="table_header">
13                                 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_LAND_LINE_FORM_TITLE}" />
14                         </div>
15
16                         <div class="para">
17                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
18                         </div>
19
20                         <div class="table_row">
21                                 <div class="table_left_medium">
22                                         <h:outputLabel for="choosenLandLineNumber" value="#{msg.ADMIN_SELECT_LAND_LINE}" />
23                                 </div>
24
25                                 <div class="table_right_medium">
26                                         <h:selectOneMenu styleClass="select right_space" id="choosenLandLineNumber" value="#{adminPhoneController.choosenLandLineNumber}">
27                                                 <f:converter converterId="LandLineConverter" />
28                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
29                                                 <f:selectItems value="#{adminPhoneController.allNonLinkedLandLineNumbers()}" var="faxNumber" itemValue="#{faxNumber}" itemLabel="#{faxNumber.faxProvider.providerCountry.countryExternalDialPrefix} (#{faxNumber.faxProvider.providerDialPrefix}) #{faxNumber.phoneNumber}" />
30                                         </h:selectOneMenu>
31                                 </div>
32                         </div>
33
34                         <div class="para">
35                                 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_LAND_LINE_DATA}" />
36                         </div>
37
38                         <div class="table_row">
39                                 <div class="table_left_medium">
40                                         <h:outputLabel for="faxNumber" value="#{msg.ADMIN_PERSONAL_DATA_LAND_LINE_NUMBER}" />
41                                 </div>
42
43                                 <div class="table_right_medium">
44                                         <ui:include src="/WEB-INF/templates/generic/landline_selection_box.tpl">
45                                                 <ui:param name="targetController" value="#{adminPhoneController}" />
46                                         </ui:include>
47                                 </div>
48                         </div>
49
50                         <div class="table_footer">
51                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
52                                 <h:commandButton styleClass="submit" type="submit" action="#{adminContactPhoneController.doLinkAddLandLine(beanHelper.contact)}" value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_LAND_LINE}" />
53                         </div>
54                 </h:panelGroup>
55         </h:form>
56 </ui:composition>