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">
27 id="countryAbroadDialPrefix"
30 value="#{adminCountryController.countryAbroadDialPrefix}"
32 requiredMessage="#{msg.ADMIN_COUNTRY_ABROAD_DIAL_PREFIX_REQUIRED}"
34 <f:validator validatorId="AbroadDialValidator" />
39 <h:panelGroup styleClass="error-container" layout="block">
40 <p:message for="countryAbroadDialPrefix" />
43 <h:panelGroup styleClass="table-row" layout="block">
44 <div class="table-left-medium">
45 <p:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
48 <div class="table-right-medium">
49 <p:inputText id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
50 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
53 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
57 <h:panelGroup styleClass="error-container" layout="block">
58 <p:message for="countryCode" />
61 <h:panelGroup styleClass="table-row" layout="block">
62 <div class="table-left-medium">
63 <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
66 <div class="table-right-medium">
70 value="#{adminCountryController.countryI18nKey}"
72 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
74 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
79 <h:panelGroup styleClass="error-container" layout="block">
80 <p:message for="countryI18nKey" />
83 <h:panelGroup styleClass="table-row" layout="block">
84 <div class="table-left-medium">
85 <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
88 <div class="table-right-medium">
89 <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
90 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
91 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
96 <h:panelGroup styleClass="error-container" layout="block">
97 <p:message for="countryIsLocalPrefixRequired" />
100 <h:panelGroup styleClass="table-row" layout="block">
101 <div class="table-left-medium">
102 <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
105 <div class="table-right-medium">
106 <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
107 <f:validateLongRange minimum="0" maximum="99" />
112 <h:panelGroup styleClass="error-container" layout="block">
113 <p:message for="countryAbroadDialPrefix" />
116 <h:panelGroup styleClass="table-row" layout="block">
117 <div class="table-left-medium">
118 <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
121 <div class="table-right-medium">
122 <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
123 <f:validateLongRange minimum="0" maximum="99" />
126 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
130 <h:panelGroup styleClass="error-container" layout="block">
131 <p:message for="countryPhoneCode" />