]> git.mxchange.org Git - jfinancials-war.git/blob - web/admin/generic_product/admin_generic_product_edit.xhtml
Product-only:
[jfinancials-war.git] / web / admin / generic_product / admin_generic_product_edit.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         template="/WEB-INF/templates/admin/admin_base.tpl"
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         xmlns:p="http://primefaces.org/ui"
9         >
10
11         <ui:define name="metadata">
12                 <f:metadata>
13                         <f:viewParam
14                                 name="productId"
15                                 value="#{adminGenericProductActionController.currentProduct}"
16                                 converter="GenericProductConverter"
17                                 required="true"
18                                 requiredMessage="#{product.ERROR_PARAMETER_PRODUCT_ID_NOT_SET}"
19                                 converterMessage="#{product.PARAMETER_PRODUCT_ID_INVALID}"
20                                 />
21
22                         <f:viewAction
23                                 action="#{adminGenericProductActionController.copyAllProductProperties()}"
24                                 />
25                 </f:metadata>
26         </ui:define>
27
28         <ui:define name="document_admin_title">
29                 <h:outputText value="#{product.PAGE_TITLE_ADMIN_GENERIC_PRODUCT_EDIT}" />
30         </ui:define>
31
32         <ui:define name="content_header">
33                 <h:outputText value="#{product.CONTENT_TITLE_ADMIN_GENERIC_PRODUCT_EDIT}" />
34         </ui:define>
35
36         <ui:define name="content">
37                 <h:form rendered="#{not empty adminGenericProductActionController.currentProduct}">
38                         <h:inputHidden value="#{adminGenericProductActionController.productId}" />
39
40                         <p:panelGrid
41                                 columns="1"
42                                 layout="grid"
43                                 >
44                                 <f:facet name="header">
45                                         <h:outputFormat
46                                                 value="#{product.ADMIN_EDIT_GENERIC_PRODUCT_TITLE}"
47                                                 title="#{local[adminGenericProductActionController.productI18nKey]}"
48                                                 >
49                                                 <f:param value="#{adminGenericProductActionController.productId}" />
50                                         </h:outputFormat>
51                                 </f:facet>
52
53                                 <h:panelGroup styleClass="para" layout="block">
54                                         <h:outputText value="#{product.ADMIN_EDIT_GENERIC_PRODUCT_MINIMUM_DATA}" />
55                                 </h:panelGroup>
56
57                                 <ui:include src="/WEB-INF/templates/admin/generic_product/admin_form_generic_product_data.tpl" />
58
59                                 <f:facet name="footer">
60                                         <p:panelGrid columns="2" layout="grid">
61                                                 <p:commandButton
62                                                         type="reset"
63                                                         value="#{msg.BUTTON_RESET_FORM}"
64                                                         />
65
66                                                 <p:commandButton
67                                                         type="submit"
68                                                         value="#{product.BUTTON_ADMIN_EDIT_GENERIC_PRODUCT}"
69                                                         action="#{adminGenericProductActionController.updateProduct()}"
70                                                         />
71                                         </p:panelGrid>
72                                 </f:facet>
73                         </p:panelGrid>
74                 </h:form>
75         </ui:define>
76 </ui:composition>