This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
contact_admin.xhtml
64 lines (52 loc) · 2.76 KB
/
contact_admin.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.org/schema/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
template="/WEB-INF/template/template.xhtml">
<ui:param name="showGlobalMessages" value="true"/>
<ui:define name="page_title">#{messages['jsf.ContactAdmin']}</ui:define>
<ui:define name="center_content">
<h:form>
<s:token allowMultiplePosts="true" />
<h1>#{messages['jsf.ContactAdmin']}</h1>
<rich:panel>
<s:decorate id="nameField" template="../WEB-INF/layout/display.xhtml">
<ui:define name="label">#{messages['jsf.email.From']}</ui:define>
<h:outputText id="senderName" value="#{sendEmail.fromName}"
required="true" />
</s:decorate>
<s:decorate id="replyEmailField" template="../WEB-INF/layout/display.xhtml">
<ui:define name="label">#{messages['jsf.email.ReplyAddress']}<br/>#{messages['jsf.email.ReplyAddress.description']}</ui:define>
<h:outputText id="email" value="#{sendEmail.replyEmail}" required="true" />
</s:decorate>
<s:decorate id="subjectField"
template="../WEB-INF/layout/edit.xhtml">
<ui:define name="label">#{messages['jsf.email.Subject']}</ui:define>
<h:inputText id="subject" value="#{sendEmail.subject}"
required="true" />
</s:decorate>
<s:decorate id="messageField"
template="../WEB-INF/layout/edit.xhtml">
<ui:define name="label">#{messages['jsf.email.MessageBody']}</ui:define>
<rich:editor id="message" width="400" height="300"
style="width:400px;" required="true"
value="#{sendEmail.htmlMessage}" viewMode="visual"
useSeamText="false" configuration="richeditor" theme="advanced">
</rich:editor>
</s:decorate>
<div style="clear: both"></div>
<div class="actionButtons">
<h:commandButton id="send" value="#{messages['jsf.email.Send']}"
action="#{sendEmail.send}" />
<s:button id="cancel" value="#{messages['jsf.Cancel']}"
propagation="none" action="#{sendEmail.cancel}" />
</div>
</rich:panel>
</h:form>
</ui:define>
</ui:composition>