- site/colorlock.py: both XWikis force black and white with !important (a HIGH CONTRAST DARK THEME block in the skin's cssVariablesInit.css). On our pages only, the design's colours win: each inline colour made !important, and a stylesheet scoped to the page root (.ssos) for the rest. Used by site/com/build.py and site/org/build.py; the .com reinstalled with it. - site/org/inquiries (Captain Bob, 2026-11-07): the .com's inquiries go to an admin-only master/detail on the .org -- Inquiries.WebHome (Live Data table), one page per inquiry under Inquiries.Entries with a sheet and a status, PublicInquiry (public) filing them with its author's rights and echoing nothing a visitor sends; a hidden trap field for robots. The .com form posts there. Installed and tested: a guest's inquiry filed and deleted; one whose name and message were script macros was stored as text, nothing ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
27 lines
979 B
Plaintext
27 lines
979 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)
|
|
|=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}}
|