]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/country/admin_form_country_data.tpl
Improved many things: (please cherry-pick)
[jjobs-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         <div class="para notice">
9                 #{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}
10         </div>
11
12         <div class="para">
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                         <div class="table_row">
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">
25                                                 <f:validateLongRange for="countryAbroadDialPrefix" minimum="0" maximum="99" />
26                                         </h:inputText>
27                                 </div>
28
29                                 <div class="clear"></div>
30                         </div>
31
32                         <div class="table_row">
33                                 <div class="table_left_medium">
34                                         <h:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
35                                 </div>
36
37                                 <div class="table_right_medium">
38                                         <h:inputText styleClass="input" id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
39                                                 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
40                                         </h:inputText>
41
42                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
43                                 </div>
44
45                                 <div class="clear"></div>
46                         </div>
47
48                         <div class="table_row">
49                                 <div class="table_left_medium">
50                                         <h:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
51                                 </div>
52
53                                 <div class="table_right_medium">
54                                         <h:inputText styleClass="input" id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
55                                                 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
56                                         </h:inputText>
57                                 </div>
58
59                                 <div class="clear"></div>
60                         </div>
61
62                         <div class="table_row">
63                                 <div class="table_left_medium">
64                                         <h:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
65                                 </div>
66
67                                 <div class="table_right_medium">
68                                         <h:selectOneListbox styleClass="select" required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
69                                                 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
70                                                 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
71                                         </h:selectOneListbox>
72                                 </div>
73
74                                 <div class="clear"></div>
75                         </div>
76
77                         <div class="table_row">
78                                 <div class="table_left_medium">
79                                         <h:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
80                                 </div>
81
82                                 <div class="table_right_medium">
83                                         <h:inputText styleClass="input" id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true">
84                                                 <f:validateLongRange for="countryAbroadDialPrefix" minimum="0" maximum="99" />
85                                         </h:inputText>
86                                 </div>
87
88                                 <div class="clear"></div>
89                         </div>
90
91                         <div class="table_row">
92                                 <div class="table_left_medium">
93                                         <h:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
94                                 </div>
95
96                                 <div class="table_right_medium">
97                                         <h:inputText styleClass="input" id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true">
98                                                 <f:validateLongRange for="countryAbroadDialPrefix" minimum="0" maximum="99" />
99                                         </h:inputText>
100
101                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
102                                 </div>
103
104                                 <div class="clear"></div>
105                         </div>
106                 </fieldset>
107         </div>
108 </ui:composition>