{{/* quick add — one sentence becomes an event. The disclosure is a
, so it opens with NO SCRIPT. That is the whole reason it is not a button and a class: the popover is an affordance, and AGENTS.md says no affordance may require script. The form is an ordinary POST to /events/quick. With script, the pane below has already shown what the server will do, so submitting confirms it; without script the event page is the confirmation, one click from Edit. Nothing here needs JavaScript to work — the live pane is the only thing script adds. name="rst-shell-menu" is deliberately NOT set: this is not one of the shell's exclusive disclosures, and joining that group would let opening the account menu close a half-typed sentence. */}} {{define "quickadd"}}
{{icon "plus"}} Quick add
{{/* The pane. Rendered here for the scriptless first paint (empty, explaining itself) and REPLACED wholesale by the same template rendered server-side as a fragment when script is on — one template, so the two paths cannot drift into disagreeing. */}}
{{template "quickpane" .QuickPane}}
{{/* hidden until quickadd.js reveals it: with no script, Enter inserts a newline like any other textarea, and a page that advertised a shortcut it does not have would be lying. */}} Times, dates, durations, places and email addresses are read from the sentence.
{{end}}