]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_edit.xhtml
Please cherry-pick:
[jjobs-war.git] / web / admin / contact / admin_contact_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:core="http://mxchange.org/jsf/core/widgets"
6         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
7         xmlns:h="http://xmlns.jcp.org/jsf/html"
8         xmlns:f="http://xmlns.jcp.org/jsf/core"
9         xmlns:p="http://primefaces.org/ui"
10         >
11
12         <ui:define name="metadata">
13                 <f:metadata>
14                         <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}" />
15                         <f:viewAction action="#{beanHelper.notifyControllerContactConverted()}" />
16                 </f:metadata>
17         </ui:define>
18
19         <ui:define name="document_admin_title">
20                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}" />
21         </ui:define>
22
23         <ui:define name="content_header">
24                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}" />
25         </ui:define>
26
27         <ui:define name="content">
28                 <core:outputMessageBox panelGroupId="errorHandlerEditContact" message="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
29
30                 <h:form rendered="#{not empty beanHelper.contact}">
31                         <h:inputHidden value="#{adminContactController.contactId}" />
32
33                         <h:panelGroup layout="block">
34                                 <div class="table-header">
35                                         <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
36                                                 <f:param value="#{beanHelper.contact.contactId}" />
37                                         </h:outputFormat>
38                                 </div>
39
40                                 <div class="para notice">
41                                         <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}" />
42                                 </div>
43
44                                 <core:outputAdminContactDataFormFields allowEmptyRequiredData="true" />
45
46                                 <p:panelGrid columns="2" layout="grid">
47                                         <p:commandButton
48                                                 type="reset"
49                                                 value="#{msg.BUTTON_RESET_FORM}"
50                                                 />
51
52                                         <p:commandButton
53                                                 type="submit"
54                                                 value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}"
55                                                 action="#{adminContactController.editContactData()}"
56                                                 />
57                                 </p:panelGrid>
58                         </h:panelGroup>
59                 </h:form>
60         </ui:define>
61 </ui:composition>