PublicInquiry files the inquiry as before, then mails it through the wiki's mail service: plain text, the subject fixed but for the topic (line breaks removed), Reply-To the visitor's checked address, a link to the filed entry. If it is not sent the inquiry is filed all the same; a new class field, mailed (E-mailed to Captain Bob), says which, shown on the entry's sheet. Installed on the .org; a guest's test inquiry filed and thanked, mailed 0 -- the wiki has no SMTP account yet (Mail.MailConfig: no host), which Captain Bob sets in Administration > Email. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
28 lines
1017 B
Plaintext
28 lines
1017 B
Plaintext
{{velocity}}
|
|
#set ($o = $doc.getObject('Inquiries.Code.InquiryClass'))
|
|
#if (!$o)
|
|
This page holds no inquiry.
|
|
#else
|
|
[[← All inquiries>>Inquiries.WebHome]]
|
|
|
|
|=Received|$escapetool.xml($xwiki.formatDate($doc.creationDate))
|
|
|=Status|$doc.display('status', $o)
|
|
|=Name|$doc.display('name', $o)
|
|
|=Email|$doc.display('email', $o)
|
|
|=Organization|$doc.display('organization', $o)
|
|
|=Topic|$doc.display('topic', $o)
|
|
|=Announcements|$doc.display('announcements', $o)
|
|
|=E-mailed|$doc.display('mailed', $o)
|
|
|=Source|$doc.display('source', $o)
|
|
|
|
== Message ==
|
|
|
|
$doc.display('message', $o)
|
|
|
|
#if ($xcontext.action == 'view')
|
|
## the e-mail is checked as plain characters when it arrives (PublicInquiry), and escaped here too
|
|
{{html}}<p><a href="$escapetool.xml($doc.getURL('edit', 'editor=inline'))">Set its status</a>#if ("$!o.getProperty('email').value" != '') · <a href="mailto:$escapetool.xml($escapetool.url($o.getProperty('email').value).replace('%40','@'))">Reply by e-mail</a>#end</p>{{/html}}
|
|
#end
|
|
#end
|
|
{{/velocity}}
|