]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/input_fields/landline_input_fields.tpl
536bfecc54aa2f5d3942f8ba6374dd248cba0315
[pizzaservice-war.git] / web / WEB-INF / templates / input_fields / landline_input_fields.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
7
8         <ui:fragment rendered="#{empty targetController}">
9                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
10                         <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
11                         <ui:param name="styleClass" value="errors" />
12                 </ui:include>
13         </ui:fragment>
14
15         <ui:fragment rendered="#{not empty targetController}">
16                 <h:selectOneMenu styleClass="select right_space" id="countryPhoneCode" value="#{targetController.phoneCountry}">
17                         <f:converter converterId="CountryConverter" />
18                         <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
19                         <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
20                 </h:selectOneMenu>
21
22                 <h:inputText styleClass="input right_space" id="landLineAreaCode" size="5" maxlength="10" value="#{targetController.phoneAreaCode}">
23                         <f:validator validatorId="PhoneNumberValidator" />
24                 </h:inputText>
25
26                 <h:inputText styleClass="input" id="landLineNumber" size="10" maxlength="20" value="#{targetController.phoneNumber}">
27                         <f:validator validatorId="PhoneNumberValidator" />
28                 </h:inputText>
29         </ui:fragment>
30 </ui:composition>