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:widgets="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">
10 <ui:define name="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 action="#{beanHelper.notifyControllerContactConverted()}" />
17 <ui:define name="admin_title">
18 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}" />
21 <ui:define name="content_header">
22 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}" />
25 <ui:define name="content">
26 <widgets:outputMessageBox id="error-handler-contact" message="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" messageStyleClass="alert-danger" rendered="#{empty beanHelper.contact}" />
28 <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
29 <h:panelGroup styleClass="table table-medium" layout="block">
30 <div class="table-header">
31 <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
32 <f:param value="#{beanHelper.contact.contactId}" />
36 <div class="para notice">
37 <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}" />
40 <widgets:outputAdminContactDataFormFields />
42 <div class="table-footer">
43 <p:commandButton styleClass="reset divider-right" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
44 <p:commandButton styleClass="submit" type="submit" id="button_edit_contact" value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}" action="#{adminContactController.editContactData()}" />