]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/country/admin_form_country_data.tpl
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         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 id="countryAbroadDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryAbroadDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_ABORAD_DIAL_PREFIX_REQUIRED}">
27                                                 <f:validator validatorId="AbroadDialValidator" />
28                                         </p:inputText>
29                                 </div>
30                         </h:panelGroup>
31
32                         <h:panelGroup styleClass="error-container" layout="block">
33                                 <p:message for="countryAbroadDialPrefix" />
34                         </h:panelGroup>
35
36                         <h:panelGroup styleClass="table-row" layout="block">
37                                 <div class="table-left-medium">
38                                         <p:outputLabel for="countryCode" value="#{msg.ADMIN_ENTER_COUNTRY_CODE}" />
39                                 </div>
40
41                                 <div class="table-right-medium">
42                                         <p:inputText id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
43                                                 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
44                                         </p:inputText>
45
46                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
47                                 </div>
48                         </h:panelGroup>
49
50                         <h:panelGroup styleClass="error-container" layout="block">
51                                 <p:message for="countryCode" />
52                         </h:panelGroup>
53
54                         <h:panelGroup styleClass="table-row" layout="block">
55                                 <div class="table-left-medium">
56                                         <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
57                                 </div>
58
59                                 <div class="table-right-medium">
60                                         <p:inputText
61                                                 id="countryI18nKey"
62                                                 maxlength="100"
63                                                 value="#{adminCountryController.countryI18nKey}"
64                                                 required="true"
65                                                 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
66                                                 >
67                                                 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
68                                         </p:inputText>
69                                 </div>
70                         </h:panelGroup>
71
72                         <h:panelGroup styleClass="error-container" layout="block">
73                                 <p:message for="countryI18nKey" />
74                         </h:panelGroup>
75
76                         <h:panelGroup styleClass="table-row" layout="block">
77                                 <div class="table-left-medium">
78                                         <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
79                                 </div>
80
81                                 <div class="table-right-medium">
82                                         <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
83                                                 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
84                                                 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
85                                         </h:selectOneListbox>
86                                 </div>
87                         </h:panelGroup>
88
89                         <h:panelGroup styleClass="error-container" layout="block">
90                                 <p:message for="countryIsLocalPrefixRequired" />
91                         </h:panelGroup>
92
93                         <h:panelGroup styleClass="table-row" layout="block">
94                                 <div class="table-left-medium">
95                                         <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
96                                 </div>
97
98                                 <div class="table-right-medium">
99                                         <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
100                                                 <f:validateLongRange minimum="0" maximum="99" />
101                                         </p:inputText>
102                                 </div>
103                         </h:panelGroup>
104
105                         <h:panelGroup styleClass="error-container" layout="block">
106                                 <p:message for="countryAbroadDialPrefix" />
107                         </h:panelGroup>
108
109                         <h:panelGroup styleClass="table-row" layout="block">
110                                 <div class="table-left-medium">
111                                         <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
112                                 </div>
113
114                                 <div class="table-right-medium">
115                                         <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
116                                                 <f:validateLongRange minimum="0" maximum="99" />
117                                         </p:inputText>
118
119                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
120                                 </div>
121                         </h:panelGroup>
122
123                         <h:panelGroup styleClass="error-container" layout="block">
124                                 <p:message for="countryPhoneCode" />
125                         </h:panelGroup>
126                 </fieldset>
127         </h:panelGroup>
128 </ui:composition>