]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/department/admin_department_edit.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / department / admin_department_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="departmentId"
15                                 value="#{adminDepartmentActionController.currentDepartment}"
16                                 converter="DepartmentConverter"
17                                 required="true"
18                                 requiredMessage="#{msg.ERROR_PARAMETER_DEPARTMENT_ID_NOT_SET}"
19                                 converterMessage="#{msg.PARAMETER_DEPARTMENT_ID_INVALID}"
20                                 />
21
22                         <f:viewAction
23                                 action="#{adminDepartmentActionController.copyAllDepartmentProperties()}"
24                                 />
25                 </f:metadata>
26         </ui:define>
27
28         <ui:define name="document_admin_title">
29                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_DEPARTMENT}" />
30         </ui:define>
31
32         <ui:define name="content_header">
33                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_DEPARTMENT}" />
34         </ui:define>
35
36         <ui:define name="content">
37                 <h:form
38                         id="form-admin-edit-department"
39                         rendered="#{not empty adminDepartmentActionController.currentDepartment}"
40                         >
41                         <h:inputHidden value="#{adminDepartmentActionController.departmentId}" />
42
43                         <p:panelGrid
44                                 columns="1"
45                                 layout="grid"
46                                 >
47                                 <f:facet name="header">
48                                         <h:outputFormat
49                                                 value="#{msg.ADMIN_EDIT_DEPARTMENT_TITLE}"
50                                                 title="#{beanHelper.renderDepartment(adminDepartmentActionController.currentDepartment, false)}"
51                                                 >
52                                                 <f:param value="#{local[adminDepartmentActionController.departmentI18nKey]}" />
53                                                 <f:param value="#{adminDepartmentActionController.departmentId}" />
54                                         </h:outputFormat>
55                                 </f:facet>
56
57                                 <h:panelGroup styleClass="para" layout="block">
58                                         <h:outputText value="#{msg.ADMIN_DEPARTMENT_MINIMUM_DATA}" />
59                                 </h:panelGroup>
60
61                                 <ui:include src="/WEB-INF/templates/admin/department/admin_form_department_data.tpl" />
62
63                                 <f:facet name="footer">
64                                         <p:panelGrid columns="2" layout="grid">
65                                                 <p:commandButton
66                                                         type="reset"
67                                                         value="#{msg.BUTTON_RESET_FORM}"
68                                                         />
69
70                                                 <p:commandButton
71                                                         type="submit"
72                                                         value="#{msg.BUTTON_ADMIN_EDIT_DEPARTMENT}"
73                                                         action="#{adminDepartmentActionController.updateDepartment()}"
74                                                         />
75                                         </p:panelGrid>
76                                 </f:facet>
77                         </p:panelGrid>
78                 </h:form>
79         </ui:define>
80 </ui:composition>