]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/country/admin_form_country_data.tpl
Updated copyright year
[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         xmlns:p="http://primefaces.org/ui"
8         >
9
10         <h:panelGroup styleClass="para notice" layout="block">
11                 <h:outputText value="#{msg.ADMIN_COUNTRY_DATA_MINIMUM_NOTICE}" />
12         </h:panelGroup>
13
14         <h:panelGroup styleClass="para" layout="block">
15                 <fieldset class="fieldset">
16                         <legend title="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND_TITLE}">
17                                 <h:outputText value="#{msg.ADMIN_COUNTRY_PHONE_DATA_LEGEND}" />
18                         </legend>
19
20                         <h:panelGroup styleClass="table-row" layout="block">
21                                 <div class="table-left-medium">
22                                         <p:outputLabel for="countryAbroadDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_ABROAD_DIAL_PREFIX}" />
23                                 </div>
24
25                                 <div class="table-right-medium">
26                                         <p:inputText
27                                                 id="countryAbroadDialPrefix"
28                                                 size="2"
29                                                 maxlength="10"
30                                                 value="#{adminCountryController.countryAbroadDialPrefix}"
31                                                 required="true"
32                                                 requiredMessage="#{msg.ADMIN_COUNTRY_ABROAD_DIAL_PREFIX_REQUIRED}"
33                                                 >
34                                                 <f:validator validatorId="AbroadDialValidator" />
35                                         </p:inputText>
36                                 </div>
37                         </h:panelGroup>
38
39                         <h:panelGroup styleClass="error-container" layout="block">
40                                 <p:message for="countryAbroadDialPrefix" />
41                         </h:panelGroup>
42
43                         <h:panelGroup styleClass="table-row" layout="block">
44                                 <div class="table-left-medium">
45                                         <p:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
46                                 </div>
47
48                                 <div class="table-right-medium">
49                                         <p:inputText
50                                                 id="countryCode"
51                                                 size="2"
52                                                 maxlength="2"
53                                                 value="#{adminCountryController.countryCode}"
54                                                 required="true"
55                                                 >
56                                                 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
57                                         </p:inputText>
58
59                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
60                                 </div>
61                         </h:panelGroup>
62
63                         <h:panelGroup styleClass="error-container" layout="block">
64                                 <p:message for="countryCode" />
65                         </h:panelGroup>
66
67                         <h:panelGroup styleClass="table-row" layout="block">
68                                 <div class="table-left-medium">
69                                         <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
70                                 </div>
71
72                                 <div class="table-right-medium">
73                                         <p:inputText
74                                                 id="countryI18nKey"
75                                                 maxlength="100"
76                                                 value="#{adminCountryController.countryI18nKey}"
77                                                 required="true"
78                                                 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
79                                                 >
80                                                 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
81                                         </p:inputText>
82                                 </div>
83                         </h:panelGroup>
84
85                         <h:panelGroup styleClass="error-container" layout="block">
86                                 <p:message for="countryI18nKey" />
87                         </h:panelGroup>
88
89                         <h:panelGroup styleClass="table-row" layout="block">
90                                 <div class="table-left-medium">
91                                         <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
92                                 </div>
93
94                                 <div class="table-right-medium">
95                                         <h:selectOneListbox
96                                                 required="true"
97                                                 id="countryIsLocalPrefixRequired"
98                                                 value="#{adminCountryController.countryIsLocalPrefixRequired}"
99                                                 size="1"
100                                                 >
101                                                 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
102                                                 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
103                                         </h:selectOneListbox>
104                                 </div>
105                         </h:panelGroup>
106
107                         <h:panelGroup styleClass="error-container" layout="block">
108                                 <p:message for="countryIsLocalPrefixRequired" />
109                         </h:panelGroup>
110
111                         <h:panelGroup styleClass="table-row" layout="block">
112                                 <div class="table-left-medium">
113                                         <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
114                                 </div>
115
116                                 <div class="table-right-medium">
117                                         <p:inputText
118                                                 id="countryExternalDialPrefix"
119                                                 size="2"
120                                                 maxlength="10"
121                                                 value="#{adminCountryController.countryExternalDialPrefix}"
122                                                 required="true"
123                                                 requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}"
124                                                 >
125                                                 <f:validateLongRange minimum="0" maximum="99" />
126                                         </p:inputText>
127                                 </div>
128                         </h:panelGroup>
129
130                         <h:panelGroup styleClass="error-container" layout="block">
131                                 <p:message for="countryAbroadDialPrefix" />
132                         </h:panelGroup>
133
134                         <h:panelGroup styleClass="table-row" layout="block">
135                                 <div class="table-left-medium">
136                                         <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
137                                 </div>
138
139                                 <div class="table-right-medium">
140                                         <p:inputText
141                                                 id="countryPhoneCode"
142                                                 size="2"
143                                                 maxlength="6"
144                                                 value="#{adminCountryController.countryPhoneCode}"
145                                                 required="true"
146                                                 requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}"
147                                                 >
148                                                 <f:validateLongRange minimum="0" maximum="999" />
149                                         </p:inputText>
150
151                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
152                                 </div>
153                         </h:panelGroup>
154
155                         <h:panelGroup styleClass="error-container" layout="block">
156                                 <p:message for="countryPhoneCode" />
157                         </h:panelGroup>
158                 </fieldset>
159         </h:panelGroup>
160 </ui:composition>