]> git.mxchange.org Git - pizzaservice-war.git/blob - web/admin/mobile/admin_mobile_edit.xhtml
Please cherry-pick:
[pizzaservice-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         <f:metadata>
11                 <f:viewParam name="phoneId" value="#{beanHelper.mobileNumber}" converter="MobileNumberConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_PHONE_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_PHONE_ID_INVALID}" />
12                 <f:viewAction action="#{beanHelper.copyMobileNumberToController()}" />
13         </f:metadata>
14
15         <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
16                 <ui:define name="admin_title">
17                         <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_MOBILE_NUMBER}" />
18                 </ui:define>
19
20                 <ui:define name="content_header">
21                         <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_MOBILE_NUMBER}" />
22                 </ui:define>
23
24                 <ui:define name="content">
25                         <h:form id="form_edit_mobile" rendered="#{not empty beanHelper.mobileNumber}">
26                                 <h:panelGroup styleClass="table_medium" layout="block">
27                                         <div class="table_header">
28                                                 <h:outputFormat value="#{msg.ADMIN_EDIT_MOBILE_NUMBER_TITLE}">
29                                                         <f:param value="#{beanHelper.mobileNumber.phoneId}" />
30                                                 </h:outputFormat>
31                                         </div>
32
33                                         <ui:include src="/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl" />
34
35                                         <div class="table_footer">
36                                                 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
37                                                 <h:commandButton styleClass="submit" type="submit" id="edit_mobile" value="#{msg.BUTTON_ADMIN_EDIT_MOBILE_NUMBER}" action="#{adminPhoneController.editMobileData(beanHelper.mobileNumber)}" />
38                                         </div>
39                                 </h:panelGroup>
40                         </h:form>
41
42                         <ui:fragment rendered="#{empty beanHelper.mobileNumber}">
43                                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
44                                         <ui:param name="message" value="#{msg.ERROR_BEAN_HELPER_MOBILE_NUMBER_NOT_SET}" />
45                                         <ui:param name="styleClass" value="errors" />
46                                 </ui:include>
47                         </ui:fragment>
48                 </ui:define>
49         </ui:composition>
50 </html>