]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_edit.xhtml
WIP: Please cherry-pick:
[jjobs-war.git] / web / admin / contact / admin_contact_edit.xhtml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5                                 xmlns:h="http://xmlns.jcp.org/jsf/html"
6                                 xmlns:f="http://xmlns.jcp.org/jsf/core">
7
8         <ui:define name="metadata">
9                 <f:metadata>
10                         <f:viewParam name="contactId" value="#{beanHelper.contact}" converter="ContactConverter" required="true" requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}" converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}" />
11                         <f:viewAction action="#{beanHelper.copyContactToController()}" />
12                 </f:metadata>
13         </ui:define>
14
15         <ui:define name="admin_title">
16                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}" />
17         </ui:define>
18
19         <ui:define name="content_header">
20                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}" />
21         </ui:define>
22
23         <ui:define name="content">
24                 <ui:fragment rendered="#{empty beanHelper.contact}">
25                         <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
26                                 <ui:param name="message" value="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" />
27                                 <ui:param name="styleClass" value="errors" />
28                         </ui:include>
29                 </ui:fragment>
30
31                 <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
32                         <h:panelGroup styleClass="table_medium" layout="block">
33                                 <div class="table_header">
34                                         <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
35                                                 <f:param value="#{beanHelper.contact.contactId}" />
36                                         </h:outputFormat>
37                                 </div>
38
39                                 <div class="para notice">
40                                         <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}" />
41                                 </div>
42
43                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl">
44                                         <ui:param name="mode" value="edit" />
45                                 </ui:include>
46
47                                 <div class="table_footer">
48                                         <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
49                                         <h:commandButton styleClass="submit" type="submit" id="edit_contact" value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}" action="#{adminContactController.editContactData()}" />
50                                 </div>
51                         </h:panelGroup>
52                 </h:form>
53         </ui:define>
54 </ui:composition>