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">
9 <h:panelGroup styleClass="para notice" layout="block">
10 <h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
13 <h:panelGroup styleClass="para" layout="block">
14 <fieldset class="fieldset">
15 <legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
16 <h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
19 <h:panelGroup styleClass="table-row" layout="block">
20 <div class="table-left-medium">
21 <p:outputLabel for="countryAbroadDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_ABROAD_DIAL_PREFIX}" />
24 <div class="table-right-medium">
25 <p:inputText id="countryAbroadDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryAbroadDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_ABORAD_DIAL_PREFIX_REQUIRED}">
26 <f:validator validatorId="AbroadDialValidator" />
31 <h:panelGroup styleClass="error-container" layout="block">
32 <p:message for="countryAbroadDialPrefix" />
35 <h:panelGroup styleClass="table-row" layout="block">
36 <div class="table-left-medium">
37 <p:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
40 <div class="table-right-medium">
41 <p:inputText id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
42 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
45 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
49 <h:panelGroup styleClass="error-container" layout="block">
50 <p:message for="countryCode" />
53 <h:panelGroup styleClass="table-row" layout="block">
54 <div class="table-left-medium">
55 <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
58 <div class="table-right-medium">
62 value="#{adminCountryController.countryI18nKey}"
64 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
66 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
71 <h:panelGroup styleClass="error-container" layout="block">
72 <p:message for="countryI18nKey" />
75 <h:panelGroup styleClass="table-row" layout="block">
76 <div class="table-left-medium">
77 <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
80 <div class="table-right-medium">
81 <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
82 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
83 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
88 <h:panelGroup styleClass="error-container" layout="block">
89 <p:message for="countryIsLocalPrefixRequired" />
92 <h:panelGroup styleClass="table-row" layout="block">
93 <div class="table-left-medium">
94 <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
97 <div class="table-right-medium">
98 <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
99 <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
104 <h:panelGroup styleClass="error-container" layout="block">
105 <p:message for="countryAbroadDialPrefix" />
108 <h:panelGroup styleClass="table-row" layout="block">
109 <div class="table-left-medium">
110 <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
113 <div class="table-right-medium">
114 <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
115 <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
118 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
122 <h:panelGroup styleClass="error-container" layout="block">
123 <p:message for="countryPhoneCode" />