]> git.mxchange.org Git - addressbook-war.git/blob - web/admin/contact/admin_contact_edit.xhtml
Updated copyright year
[addressbook-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
15                                 name="contactId"
16                                 value="#{beanHelper.contact}"
17                                 converter="ContactConverter"
18                                 required="true"
19                                 requiredMessage="#{msg.ERROR_PARAMETER_CONTACT_ID_NOT_SET}"
20                                 converterMessage="#{msg.PARAMETER_CONTACT_ID_INVALID}"
21                                 />
22                         <f:viewAction action="#{beanHelper.notifyControllerContactConverted()}" />
23                 </f:metadata>
24         </ui:define>
25
26         <ui:define name="document_admin_title">
27                 <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CONTACT}" />
28         </ui:define>
29
30         <ui:define name="content_header">
31                 <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CONTACT}" />
32         </ui:define>
33
34         <ui:define name="content">
35                 <h:form rendered="#{not empty beanHelper.contact}">
36                         <h:inputHidden value="#{adminContactController.contactId}" />
37
38                         <h:panelGroup layout="block">
39                                 <div class="table-header">
40                                         <h:outputFormat value="#{msg.ADMIN_EDIT_CONTACT_TITLE}">
41                                                 <f:param value="#{beanHelper.contact.contactId}" />
42                                         </h:outputFormat>
43                                 </div>
44
45                                 <div class="para notice">
46                                         <h:outputText value="#{msg.ADMIN_CONTACT_PERSONAL_DATA_MINIMUM_NOTICE}" />
47                                 </div>
48
49                                 <ui:include src="/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl" />
50
51                                 <p:panelGrid columns="2" layout="grid">
52                                         <p:commandButton
53                                                 type="reset"
54                                                 value="#{msg.BUTTON_RESET_FORM}"
55                                                 />
56
57                                         <p:commandButton
58                                                 type="submit"
59                                                 value="#{msg.BUTTON_ADMIN_EDIT_CONTACT}"
60                                                 action="#{adminContactController.editContactData()}"
61                                                 />
62                                 </p:panelGrid>
63                         </h:panelGroup>
64                 </h:form>
65         </ui:define>
66 </ui:composition>