]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/country/admin_form_country_data.tpl
WIP - 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" id="country_data">
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 styleClass="input" 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 styleClass="input" 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 styleClass="input" id="countryI18nKey" size="20" maxlength="100" value="#{adminCountryController.countryI18nKey}" required="true">
60                                                 <f:validateRegex for="countryI18nKey" pattern="[A-Z_]{2,}" />
61                                         </p:inputText>
62                                 </div>
63                         </h:panelGroup>
64
65                         <h:panelGroup styleClass="error-container" layout="block">
66                                 <p:message for="countryI18nKey" />
67                         </h:panelGroup>
68
69                         <h:panelGroup styleClass="table-row" layout="block">
70                                 <div class="table-left-medium">
71                                         <p:outputLabel for="countryIsLocalPrefixRequired" value="#{msg.ADMIN_SELECT_COUNTRY_IS_EXTERNAL_DIAL_PREFIX_REQUIRED}" />
72                                 </div>
73
74                                 <div class="table-right-medium">
75                                         <h:selectOneListbox required="true" id="countryIsLocalPrefixRequired" value="#{adminCountryController.countryIsLocalPrefixRequired}" size="1">
76                                                 <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
77                                                 <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
78                                         </h:selectOneListbox>
79                                 </div>
80                         </h:panelGroup>
81
82                         <h:panelGroup styleClass="error-container" layout="block">
83                                 <p:message for="countryIsLocalPrefixRequired" />
84                         </h:panelGroup>
85
86                         <h:panelGroup styleClass="table-row" layout="block">
87                                 <div class="table-left-medium">
88                                         <p:outputLabel for="countryExternalDialPrefix" value="#{msg.ADMIN_ENTER_COUNTRY_EXTERNAL_DIAL_PREFIX}" />
89                                 </div>
90
91                                 <div class="table-right-medium">
92                                         <p:inputText styleClass="input" id="countryExternalDialPrefix" size="2" maxlength="10" value="#{adminCountryController.countryExternalDialPrefix}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_EXTERNAL_DIAL_PREFIX_REQUIRED}">
93                                                 <f:validateLongRange for="countryExternalDialPrefix" minimum="0" maximum="99" />
94                                         </p:inputText>
95                                 </div>
96                         </h:panelGroup>
97
98                         <h:panelGroup styleClass="error-container" layout="block">
99                                 <p:message for="countryAbroadDialPrefix" />
100                         </h:panelGroup>
101
102                         <h:panelGroup styleClass="table-row" layout="block">
103                                 <div class="table-left-medium">
104                                         <p:outputLabel for="countryPhoneCode" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE}" />
105                                 </div>
106
107                                 <div class="table-right-medium">
108                                         <p:inputText styleClass="input" id="countryPhoneCode" size="2" maxlength="6" value="#{adminCountryController.countryPhoneCode}" required="true" requiredMessage="#{msg.ADMIN_COUNTRY_PHONE_CODE_REQUIRED}">
109                                                 <f:validateLongRange for="countryPhoneCode" minimum="0" maximum="99" />
110                                         </p:inputText>
111
112                                         <h:outputText styleClass="small notice" value="#{msg.ADMIN_ENTER_COUNTRY_PHONE_CODE_EXAMPLE}" />
113                                 </div>
114                         </h:panelGroup>
115
116                         <h:panelGroup styleClass="error-container" layout="block">
117                                 <p:message for="countryPhoneCode" />
118                         </h:panelGroup>
119                 </fieldset>
120         </h:panelGroup>
121 </ui:composition>