]> git.mxchange.org Git - jjobs-war.git/blob - web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl
Continued a bit: (please cherry-pick)
[jjobs-war.git] / web / WEB-INF / templates / admin / landline / admin_form_landline_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
8         <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_LAND_LINE_NUMBER_NOT_SET}" rendered="#{empty beanHelper.landLineNumber}" />
9
10         <div class="para">
11                 <fieldset class="fieldset" id="landline_data">
12                         <legend title="#{msg.ADMIN_LAND_LINE_DATA_LEGEND_TITLE}">
13                                 <h:outputText value="#{msg.ADMIN_LAND_LINE_DATA_LEGEND}" />
14                         </legend>
15
16                         <div class="table_row">
17                                 <div class="table_left_medium">
18                                         <h:outputLabel for="landLineNumberId" value="#{msg.ADMIN_SHOW_PHONE_ID}" />
19                                 </div>
20
21                                 <div class="table_right_medium">
22                                         <h:outputText id="landLineNumberId" value="#{beanHelper.landLineNumber.phoneId}" />
23                                 </div>
24
25                                 <div class="clear"></div>
26                         </div>
27
28                         <div class="table_row">
29                                 <div class="table_left_medium">
30                                         <h:outputLabel for="landLineNumber" value="#{msg.ADMIN_EDIT_LAND_LINE_NUMBER}" />
31                                 </div>
32
33                                 <div class="table_right_medium">
34                                         <h:selectOneMenu styleClass="select right_space" id="countryPhoneCode" value="#{adminPhoneController.phoneCountry}">
35                                                 <f:converter converterId="CountryConverter" />
36                                                 <f:selectItem itemValue="" itemLabel="#{msg.NONE_SELECTED}" />
37                                                 <f:selectItems value="#{countryController.allCountries()}" var="country" itemValue="#{country}" itemLabel="#{country.countryAbroadDialPrefix}#{country.countryPhoneCode}" />
38                                         </h:selectOneMenu>
39
40                                         <h:inputText styleClass="input right_space" id="landLineAreaCode" size="5" maxlength="10" value="#{adminPhoneController.phoneAreaCode}">
41                                                 <f:validator validatorId="PhoneNumberValidator" />
42                                         </h:inputText>
43
44                                         <h:inputText styleClass="input" id="landLineNumber" size="10" maxlength="20" value="#{adminPhoneController.phoneNumber}">
45                                                 <f:validator validatorId="PhoneNumberValidator" />
46                                         </h:inputText>
47                                 </div>
48
49                                 <div class="clear"></div>
50
51                                 <div class="error_container">
52                                         <h:message for="landLineNumber" errorClass="errors" fatalClass="errors" warnClass="errors" />
53                                 </div>
54                         </div>
55                 </fieldset>
56         </div>
57 </ui:composition>