1 <?xml version="1.0" encoding="UTF-8" ?>
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">
8 <ui:fragment rendered="#{empty beanHelper.contact}">
9 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
10 <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_CONTACT_NOT_SET}" />
11 <ui:param name="styleClass" value="errors" />
15 <h:form id="form_add_contact_mobile" rendered="#{not empty beanHelper.contact}">
16 <h:panelGroup styleClass="table_medium" layout="block">
17 <div class="table_header">
18 <h:outputText value="#{msg.ADMIN_ADD_CONTACT_MOBILE_NUMBER_FORM_TITLE}" />
22 <ui:include src="/WEB-INF/templates/admin/contact/admin_contact_data_mini.tpl" />
25 <div class="table_row">
26 <div class="table_left_medium">
27 <h:outputLabel for="choosenMobileNumber" value="#{msg.ADMIN_SELECT_MOBILE_NUMBER}" />
30 <div class="table_right_medium">
31 <h:selectOneMenu styleClass="select right_space" id="choosenMobileNumber" value="#{adminPhoneController.choosenMobileNumber}">
32 <f:converter converterId="MobileNumberConverter" />
33 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
34 <f:selectItems value="#{adminPhoneController.allNonLinkedMobileNumbers()}" var="mobileNumber" itemValue="#{mobileNumber}" itemLabel="#{mobileNumber.mobileProvider.providerCountry.countryExternalDialPrefix} (#{mobileNumber.mobileProvider.providerDialPrefix}) #{mobileNumber.phoneNumber}" />
40 <h:outputText value="#{msg.ADMIN_OR_ENTER_CONTACT_NEW_MOBILE_DATA}" />
43 <div class="table_row">
44 <div class="table_left_medium">
45 <h:outputLabel for="mobileNumber" value="#{msg.ADMIN_PERSONAL_DATA_MOBILE_NUMBER}" />
48 <div class="table_right_medium">
49 <ui:include src="/WEB-INF/templates/input_fields/mobile_input_fields.tpl">
50 <ui:param name="targetController" value="#{adminPhoneController}" />
55 <div class="table_footer">
56 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
58 <h:commandButton styleClass="submit" id="submit_add_link_contact_mobile" type="submit" action="#{adminContactPhoneController.doLinkAddMobileNumber(beanHelper.contact)}" value="#{msg.BUTTON_ADMIN_LINK_ADD_CONTACT_MOBILE_NUMBER}">
59 <f:param name="contactId" value="#{param.contactId}" />