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">
8 <h:panelGroup styleClass="para notice" layout="block">
9 <h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
12 <h:panelGroup styleClass="para" layout="block">
13 <fieldset class="fieldset" id="country_data">
14 <legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
15 <h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
18 <h:panelGroup styleClass="table_row" layout="block">
19 <div class="table_left_medium">
20 <h:outputLabel for="countryAbroadDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_ABROAD_DIAL_PREFIX}" />
23 <div class="table_right_medium">
24 <h:inputText styleClass="input" id="countryAbroadDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryAbroadDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_ABORAD_DIAL_PREFIX_REQUIRED}">
25 <f:validator validatorId="AbroadDialValidator" />
30 <h:panelGroup styleClass="error_container" layout="block">
31 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
34 <h:panelGroup styleClass="table_row" layout="block">
35 <div class="table_left_medium">
36 <h:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
39 <div class="table_right_medium">
40 <h:inputText styleClass="input" id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
41 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
44 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
48 <h:panelGroup styleClass="error_container" layout="block">
49 <h:message for="countryCode" errorClass="errors" fatalClass="errors" warnClass="errors" />
52 <h:panelGroup styleClass="table_row" layout="block">
53 <div class="table_left_medium">
54 <h:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
57 <div class="table_right_medium">
58 <h:inputText styleClass="input" id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
59 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
64 <h:panelGroup styleClass="error_container" layout="block">
65 <h:message for="countryI18nKey" errorClass="errors" fatalClass="errors" warnClass="errors" />
68 <h:panelGroup styleClass="table_row" layout="block">
69 <div class="table_left_medium">
70 <h:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
73 <div class="table_right_medium">
74 <h:selectOneListbox styleClass="select" required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
75 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
76 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
81 <h:panelGroup styleClass="error_container" layout="block">
82 <h:message for="countryIsLocalPrefixRequired" errorClass="errors" fatalClass="errors" warnClass="errors" />
85 <h:panelGroup styleClass="table_row" layout="block">
86 <div class="table_left_medium">
87 <h:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
90 <div class="table_right_medium">
91 <h:inputText styleClass="input" id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
92 <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
97 <h:panelGroup styleClass="error_container" layout="block">
98 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
101 <h:panelGroup styleClass="table_row" layout="block">
102 <div class="table_left_medium">
103 <h:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
106 <div class="table_right_medium">
107 <h:inputText styleClass="input" id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
108 <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
111 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
115 <h:panelGroup styleClass="error_container" layout="block">
116 <h:message for="countryPhoneCode" errorClass="errors" fatalClass="errors" warnClass="errors" />