]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/resources/tags/admin/form_data/mobile/admin_form_mobile_data.tpl
Please cherry-pick:
[jjobs-war.git] / web / WEB-INF / resources / tags / admin / form_data / mobile / admin_form_mobile_data.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:widgets="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://java.sun.com/jsf/core"
6         xmlns:h="http://java.sun.com/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
8
9         <h:panelGroup styleClass="para" layout="block" rendered="#{empty rendered or rendered}">
10                 <fieldset class="fieldset" id="mobile_data">
11                         <legend title="#{msg.ADMIN_MOBILE_NUMBER_DATA_LEGEND_TITLE}">
12                                 <h:outputText value="#{msg.ADMIN_MOBILE_NUMBER_DATA_LEGEND}" />
13                         </legend>
14
15                         <h:panelGroup styleClass="table-row" layout="block">
16                                 <div class="table-left-medium">
17                                         <h:outputLabel for="mobileNumberId" value="#{msg.ADMIN_SHOW_PHONE_ID}" />
18                                 </div>
19
20                                 <div class="table-right-medium">
21                                         <h:outputText id="mobileNumberId" value="#{mobileNumber.phoneId}" />
22                                 </div>
23                         </h:panelGroup>
24
25                         <h:panelGroup styleClass="table-row" layout="block">
26                                 <div class="table-left-medium">
27                                         <h:outputLabel for="mobileProvider" value="#{msg.ADMIN_EDIT_MOBILE_PROVIDER}" />
28                                 </div>
29
30                                 <div class="table-right-medium">
31                                         <h:selectOneMenu styleClass="select" id="mobileProvider" value="#{adminPhoneController.mobileProvider}" required="true" requiredMessage="#{msg.ADMIN_MOBILE_PROVIDER_REQUIRED}">
32                                                 <f:converter converterId="MobileProviderConverter" />
33                                                 <f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" />
34                                                 <f:selectItems value="#{mobileProviderController.allMobileProviders()}" var="mobileProvider" itemValue="#{mobileProvider}" itemLabel="#{mobileProvider.providerCountry.countryExternalDialPrefix}#{mobileProvider.providerDialPrefix} (#{mobileProvider.providerName})" />
35                                         </h:selectOneMenu>
36                                 </div>
37                         </h:panelGroup>
38
39                         <h:panelGroup styleClass="error_container" layout="block">
40                                 <h:message for="mobileProvider" errorClass="alert-danger" fatalClass="alert-danger" warnClass="alert-warning" />
41                         </h:panelGroup>
42
43                         <h:panelGroup styleClass="table-row" layout="block">
44                                 <div class="table-left-medium">
45                                         <h:outputLabel for="mobileNumber" value="#{msg.ADMIN_EDIT_MOBILE_NUMBER}" />
46                                 </div>
47
48                                 <div class="table-right-medium">
49                                         <h:inputText styleClass="input" id="mobileNumber" size="10" maxlength="20" value="#{adminPhoneController.phoneNumber}" required="true" requiredMessage="#{msg.ADMIN_MOBILE_NUMBER_REQUIRED}">
50                                                 <f:validator for="mobileNumber" validatorId="PhoneNumberValidator" />
51                                         </h:inputText>
52                                 </div>
53                         </h:panelGroup>
54
55                         <h:panelGroup styleClass="error_container" layout="block">
56                                 <h:message for="mobileNumber" errorClass="alert-danger" fatalClass="alert-danger" warnClass="alert-warning" />
57                         </h:panelGroup>
58                 </fieldset>
59         </h:panelGroup>
60 </ui:composition>