Files
LithosAnanke/site/org/inquiries/InquirySheet.xwiki
T
Claude c2ff10015f
Build / Image MILKV (push) Canceled after 0s
Build / Image PC (push) Canceled after 0s
Build / Image RASPI (push) Canceled after 0s
Build / v4 tests (32- and 64-bit cells) (push) Canceled after 0s
site: the design's colours over the wikis' high-contrast theme; .org inquiries
- 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
2026-11-07 13:47:37 +00:00

27 lines
979 B
Plaintext

{{velocity}}
#set ($o = $doc.getObject('Inquiries.Code.InquiryClass'))
#if (!$o)
This page holds no inquiry.
#else
[[&#8592; 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" != '') &#183; <a href="mailto:$escapetool.xml($escapetool.url($o.getProperty('email').value).replace('%40','@'))">Reply by e-mail</a>#end</p>{{/html}}
#end
#end
{{/velocity}}