1 <?xml version="1.0" encoding="UTF-8" ?>
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 xmlns:p="http://primefaces.org/ui"
10 <h:panelGroup styleClass="para notice" layout="block">
11 <h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
14 <h:panelGroup styleClass="para" layout="block">
15 <fieldset class="fieldset">
16 <legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
17 <h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
20 <h:panelGroup styleClass="table-row" layout="block">
21 <div class="table-left-medium">
22 <p:outputLabel for="countryAbroadDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_ABROAD_DIAL_PREFIX}" />
25 <div class="table-right-medium">
26 <p:inputText id="countryAbroadDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryAbroadDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_ABORAD_DIAL_PREFIX_REQUIRED}">
27 <f:validator validatorId="AbroadDialValidator" />
32 <h:panelGroup styleClass="error-container" layout="block">
33 <p:message for="countryAbroadDialPrefix" />
36 <h:panelGroup styleClass="table-row" layout="block">
37 <div class="table-left-medium">
38 <p:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
41 <div class="table-right-medium">
42 <p:inputText id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
43 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
46 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
50 <h:panelGroup styleClass="error-container" layout="block">
51 <p:message for="countryCode" />
54 <h:panelGroup styleClass="table-row" layout="block">
55 <div class="table-left-medium">
56 <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
59 <div class="table-right-medium">
63 value="#{adminCountryController.countryI18nKey}"
65 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
67 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
72 <h:panelGroup styleClass="error-container" layout="block">
73 <p:message for="countryI18nKey" />
76 <h:panelGroup styleClass="table-row" layout="block">
77 <div class="table-left-medium">
78 <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
81 <div class="table-right-medium">
82 <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
83 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
84 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
89 <h:panelGroup styleClass="error-container" layout="block">
90 <p:message for="countryIsLocalPrefixRequired" />
93 <h:panelGroup styleClass="table-row" layout="block">
94 <div class="table-left-medium">
95 <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
98 <div class="table-right-medium">
99 <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
100 <f:validateLongRange minimum="0" maximum="99" />
105 <h:panelGroup styleClass="error-container" layout="block">
106 <p:message for="countryAbroadDialPrefix" />
109 <h:panelGroup styleClass="table-row" layout="block">
110 <div class="table-left-medium">
111 <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
114 <div class="table-right-medium">
115 <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
116 <f:validateLongRange minimum="0" maximum="99" />
119 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
123 <h:panelGroup styleClass="error-container" layout="block">
124 <p:message for="countryPhoneCode" />