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">
59 <p:inputText id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
60 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
65 <h:panelGroup styleClass="error-container" layout="block">
66 <p:message for="countryI18nKey" />
69 <h:panelGroup styleClass="table-row" layout="block">
70 <div class="table-left-medium">
71 <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
74 <div class="table-right-medium">
75 <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
76 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
77 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
82 <h:panelGroup styleClass="error-container" layout="block">
83 <p:message for="countryIsLocalPrefixRequired" />
86 <h:panelGroup styleClass="table-row" layout="block">
87 <div class="table-left-medium">
88 <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
91 <div class="table-right-medium">
92 <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
93 <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
98 <h:panelGroup styleClass="error-container" layout="block">
99 <p:message for="countryAbroadDialPrefix" />
102 <h:panelGroup styleClass="table-row" layout="block">
103 <div class="table-left-medium">
104 <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
107 <div class="table-right-medium">
108 <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
109 <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
112 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
116 <h:panelGroup styleClass="error-container" layout="block">
117 <p:message for="countryPhoneCode" />