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">
8 <ui:define name="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 onPostback="true" action="#{beanHelper.copyContactToController()}" />
15 <ui:define name="admin_title">
16 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_DELETE_CONTACT}" />
19 <ui:define name="content_header">
20 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_DELETE_CONTACT}" />
23 <ui:define name="content">
24 <ui:fragment rendered="#{empty beanHelper.contact}">
25 <ui:include src="/WEB-INF/templates/messages/message_box.tpl">
26 <ui:param name="message" value="#{msg.ERROR_CONTACT_ID_NOT_FOUND}" />
27 <ui:param name="styleClass" value="errors" />
31 <h:form id="form_admin_edit_user" rendered="#{not empty beanHelper.contact}">
32 <h:panelGroup styleClass="table" layout="block">
33 <div class="table_header">
34 <h:outputFormat value="#{msg.ADMIN_DELETE_CONTACT_TITLE}">
35 <f:param value="#{beanHelper.contact.contactId}" />
39 <div class="para notice">
40 <h:outputText value="#{msg.ADMIN_DELETE_CONTACT_NOTICE}" />
43 <ui:include src="/WEB-INF/templates/admin/contact/admin_show_contact_data.tpl" />
45 <div class="table_footer">
46 <h:commandButton styleClass="reset right_space" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
47 <h:commandButton styleClass="delete_button" type="submit" id="delete_contact" value="#{msg.BUTTON_ADMIN_DELETE_CONTACT}" action="#{adminContactController.deleteContactData()}" />