]> 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
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 id="countryCode" size="2" maxlength="2" value="#{adminCountryController.countryCode}" required="true">
50                                                 <f:validateRegex for="countryCode" pattern="[A-Z]{2}" />
51                                         </p:inputText>
52
53                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_CODE_EXAMPLE}" />
54                                 </div>
55                         </h:panelGroup>
56
57                         <h:panelGroup styleClass="error-container" layout="block">
58                                 <p:message for="countryCode" />
59                         </h:panelGroup>
60
61                         <h:panelGroup styleClass="table-row" layout="block">
62                                 <div class="table-left-medium">
63                                         <p:outputLabel for="countryI18nKey" value="#{msg.ADMIN_ENTER_COUNTRY_I18N_KEY}" />
64                                 </div>
65
66                                 <div class="table-right-medium">
67                                         <p:inputText
68                                                 id="countryI18nKey"
69                                                 maxlength="100"
70                                                 value="#{adminCountryController.countryI18nKey}"
71                                                 required="true"
72                                                 requiredMessage="#{msg.ADMIN_COUNTRY_I18N_KEY_REQUIRED}"
73                                                 >
74                                                 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
75                                         </p:inputText>
76                                 </div>
77                         </h:panelGroup>
78
79                         <h:panelGroup styleClass="error-container" layout="block">
80                                 <p:message for="countryI18nKey" />
81                         </h:panelGroup>
82
83                         <h:panelGroup styleClass="table-row" layout="block">
84                                 <div class="table-left-medium">
85                                         <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
86                                 </div>
87
88                                 <div class="table-right-medium">
89                                         <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
90                                                 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
91                                                 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
92                                         </h:selectOneListbox>
93                                 </div>
94                         </h:panelGroup>
95
96                         <h:panelGroup styleClass="error-container" layout="block">
97                                 <p:message for="countryIsLocalPrefixRequired" />
98                         </h:panelGroup>
99
100                         <h:panelGroup styleClass="table-row" layout="block">
101                                 <div class="table-left-medium">
102                                         <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
103                                 </div>
104
105                                 <div class="table-right-medium">
106                                         <p:inputText id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
107                                                 <f:validateLongRange minimum="0" maximum="99" />
108                                         </p:inputText>
109                                 </div>
110                         </h:panelGroup>
111
112                         <h:panelGroup styleClass="error-container" layout="block">
113                                 <p:message for="countryAbroadDialPrefix" />
114                         </h:panelGroup>
115
116                         <h:panelGroup styleClass="table-row" layout="block">
117                                 <div class="table-left-medium">
118                                         <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
119                                 </div>
120
121                                 <div class="table-right-medium">
122                                         <p:inputText id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
123                                                 <f:validateLongRange minimum="0" maximum="99" />
124                                         </p:inputText>
125
126                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
127                                 </div>
128                         </h:panelGroup>
129
130                         <h:panelGroup styleClass="error-container" layout="block">
131                                 <p:message for="countryPhoneCode" />
132                         </h:panelGroup>
133                 </fieldset>
134         </h:panelGroup>
135 </ui:composition>