]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/admin/country/admin_form_country_data.tpl
Please cherry-pick:
[addressbook-war.git] / web / WEB-INF / templates / admin / country / admin_form_country_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
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
8         <h:panelGroup styleClass="para notice" layout="block">
9                 <h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
10         </h:panelGroup>
11
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}" />
16                         </legend>
17
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}" />
21                                 </div>
22
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" />
26                                         </h:inputText>
27                                 </div>
28                         </h:panelGroup>
29
30                         <h:panelGroup styleClass="error_container" layout="block">
31                                 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
32                         </h:panelGroup>
33
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}" />
37                                 </div>
38
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}" />
42                                         </h:inputText>
43
44                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
45                                 </div>
46                         </h:panelGroup>
47
48                         <h:panelGroup styleClass="error_container" layout="block">
49                                 <h:message for="countryCode" errorClass="errors" fatalClass="errors" warnClass="errors" />
50                         </h:panelGroup>
51
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}" />
55                                 </div>
56
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,}" />
60                                         </h:inputText>
61                                 </div>
62                         </h:panelGroup>
63
64                         <h:panelGroup styleClass="error_container" layout="block">
65                                 <h:message for="countryI18nKey" errorClass="errors" fatalClass="errors" warnClass="errors" />
66                         </h:panelGroup>
67
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}" />
71                                 </div>
72
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}" />
77                                         </h:selectOneListbox>
78                                 </div>
79                         </h:panelGroup>
80
81                         <h:panelGroup styleClass="error_container" layout="block">
82                                 <h:message for="countryIsLocalPrefixRequired" errorClass="errors" fatalClass="errors" warnClass="errors" />
83                         </h:panelGroup>
84
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}" />
88                                 </div>
89
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" />
93                                         </h:inputText>
94                                 </div>
95                         </h:panelGroup>
96
97                         <h:panelGroup styleClass="error_container" layout="block">
98                                 <h:message for="countryAbroadDialPrefix" errorClass="errors" fatalClass="errors" warnClass="errors" />
99                         </h:panelGroup>
100
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}" />
104                                 </div>
105
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" />
109                                         </h:inputText>
110
111                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
112                                 </div>
113                         </h:panelGroup>
114
115                         <h:panelGroup styleClass="error_container" layout="block">
116                                 <h:message for="countryPhoneCode" errorClass="errors" fatalClass="errors" warnClass="errors" />
117                         </h:panelGroup>
118                 </fieldset>
119         </h:panelGroup>
120 </ui:composition>