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" />
29 <div class="clear"></div>
32 <h:panelGroup styleClass="error_container" layout="block">
33 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
36 <h:panelGroup styleClass="table_row" layout="block">
37 <div class="table_left_medium">
38 <h:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
41 <div class="table_right_medium">
42 <h:inputText styleClass="input" 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}" />
49 <div class="clear"></div>
52 <h:panelGroup styleClass="error_container" layout="block">
53 <h:message for="countryCode" errorClass="errors" fatalClass="errors" warnClass="errors" />
56 <h:panelGroup styleClass="table_row" layout="block">
57 <div class="table_left_medium">
58 <h:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
61 <div class="table_right_medium">
62 <h:inputText styleClass="input" id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
63 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
67 <div class="clear"></div>
70 <h:panelGroup styleClass="error_container" layout="block">
71 <h:message for="countryI18nKey" errorClass="errors" fatalClass="errors" warnClass="errors" />
74 <h:panelGroup styleClass="table_row" layout="block">
75 <div class="table_left_medium">
76 <h:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
79 <div class="table_right_medium">
80 <h:selectOneListbox styleClass="select" required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
81 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
82 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
86 <div class="clear"></div>
89 <h:panelGroup styleClass="error_container" layout="block">
90 <h:message for="countryIsLocalPrefixRequired" errorClass="errors" fatalClass="errors" warnClass="errors" />
93 <h:panelGroup styleClass="table_row" layout="block">
94 <div class="table_left_medium">
95 <h:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
98 <div class="table_right_medium">
99 <h:inputText styleClass="input" id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
100 <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
104 <div class="clear"></div>
107 <h:panelGroup styleClass="error_container" layout="block">
108 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
111 <h:panelGroup styleClass="table_row" layout="block">
112 <div class="table_left_medium">
113 <h:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
116 <div class="table_right_medium">
117 <h:inputText styleClass="input" id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
118 <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
121 <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
124 <div class="clear"></div>
127 <h:panelGroup styleClass="error_container" layout="block">
128 <h:message for="countryPhoneCode" errorClass="errors" fatalClass="errors" warnClass="errors" />