]> 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 template="/WEB-INF/templates/admin/admin_base.tpl"
3                                 xmlns="http://www.w3.org/1999/xhtml"
4                                 xmlns:core="http://mxchange.org/jsf/core/widgets"
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         <ui:define name="metadata">
11                 <f:metadata>
12                         <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}" />
13                         <f:viewAction onPostback="true" action="#{beanHelper.notifyControllerContactConverted()}" />
14                 </f:metadata>
15         </ui:define>
16
17         <ui:define name="document_admin_title">
18                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}" />
19         </ui:define>
20
21         <ui:define name="content_header">
22                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}" />
23         </ui:define>
24
25         <ui:define name="content">
26                 <core:outputMessageBox id="error-handler-contact" message="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
27
28                 <h:form id="form-admin-edit-user" rendered="#{not empty beanHelper.contact}">
29                         <h:panelGroup styleClass="table table-full" layout="block">
30                                 <div class="table-header">
31                                         <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
32                                                 <f:param value="#{beanHelper.contact.contactId}" />
33                                         </h:outputFormat>
34                                 </div>
35
36                                 <div class="para notice">
37                                         <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}" />
38                                 </div>
39
40                                 <core:outputAdminContactDataFormFields />
41
42                                 <div class="table-footer">
43                                         <p:commandButton styleClass="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
44                                         <p:commandButton styleClass="submit" type="submit" id="submit_edit_contact" value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}" action="#{adminContactController.editContactData()}" />
45                                 </div>
46                         </h:panelGroup>
47                 </h:form>
48         </ui:define>
49 </ui:composition>