]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/mobile/admin_mobile_edit.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / mobile / admin_mobile_edit.xhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html
3         lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
4         xmlns="http://www.w3.org/1999/xhtml"
5         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
6         xmlns:h="http://xmlns.jcp.org/jsf/html"
7         xmlns:f="http://xmlns.jcp.org/jsf/core"
8         >
9
10         <ui:define name="metadata">
11                 <f:metadata>
12                         <f:viewParam name="phoneId" value="#{beanHelper.mobileNumber}" converter="MobileNumberConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" />
13                         <f:viewAction action="#{beanHelper.copyMobileNumberToController()}" />
14                 </f:metadata>
15         </ui:define>
16
17         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
18                 <ui:define name="admin_title">
19                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_MOBILE_NUMBER}" />
20                 </ui:define>
21
22                 <ui:define name="content_header">
23                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_MOBILE_NUMBER}" />
24                 </ui:define>
25
26                 <ui:define name="content">
27                         <h:form id="form_edit_mobile" rendered="#{not empty beanHelper.mobileNumber}">
28                                 <h:panelGroup styleClass="table_medium" layout="block">
29                                         <div class="table_header">
30                                                 <h:outputFormat value="#{msg.ADMIN_EDIT_MOBILE_NUMBER_TITLE}">
31                                                         <f:param value="#{beanHelper.mobileNumber.phoneId}" />
32                                                 </h:outputFormat>
33                                         </div>
34
35                                         <ui:include src="/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl" />
36
37                                         <div class="table_footer">
38                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
39                                                 <h:commandButton styleClass="submit" type="submit" id="edit_mobile" value="#{msg.BUTTON_ADMIN_EDIT_MOBILE_NUMBER}" action="#{adminPhoneController.editMobileData()}" />
40                                         </div>
41                                 </h:panelGroup>
42                         </h:form>
43
44                         <h:outputText styleClass="errors" value="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" rendered="#{empty beanHelper.mobileNumber}" />
45                 </ui:define>
46         </ui:composition>
47 </html>