]> git.mxchange.org Git - jjobs-war.git/blob - web/admin/contact/admin_contact_delete.xhtml
e334721fbb5763f82263529e94e2c773c4c2180a
[jjobs-war.git] / web / admin / contact / admin_contact_delete.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 onPostback="true" action="#{beanHelper.copyContactToController()}" />
12                 </f:metadata>
13         </ui:define>
14
15         <ui:define name="admin_title">
16                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_DELETE_CONTACT}" />
17         </ui:define>
18
19         <ui:define name="content_header">
20                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_DELETE_CONTACT}" />
21         </ui:define>
22
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" />
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" layout="block">
33                                 <div class="table_header">
34                                         <h:outputFormat value="#{msg.ADMIN_DELETE_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_DELETE_CONTACT_NOTICE}" />
41                                 </div>
42
43                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_show_contact_data.tpl" />
44
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()}" />
48                                 </div>
49                         </h:panelGroup>
50                 </h:form>
51         </ui:define>
52 </ui:composition>