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