{{define "title"}}{{.Title}}{{end}} {{define "content"}}

Delete “{{.Data.Event.Title}}”?

{{if .Data.Series}} {{/* One question, and the expensive answer is LAST with its count said out loud. "All of them" as a default, or as the first radio, is how somebody deletes a year of standups meaning to delete tomorrow's. */}}
{{template "choice-field" dict "Legend" "This repeats. What should go?" "Name" "scope" "Type" "radio" "Options" (list (dict "Value" "this" "Title" "Just this one" "Desc" "The rest of the series stays exactly as it is." "Checked" true) (dict "Value" "all" "Title" (deleteAllLabel .Data.Count .Data.Forever) "Desc" "Every occurrence, past and future. This cannot be undone."))}} {{template "form-foot" dict "Submit" "Delete" "Danger" true "CancelHref" (printf "/events/%d" .Data.Event.ID) "CancelLabel" "Keep it"}}
{{else}} {{template "confirm-form" dict "Action" (printf "/events/%d/delete" .Data.Event.ID) "Label" "Delete this event" "Danger" true "CancelHref" (printf "/events/%d" .Data.Event.ID) "CancelLabel" "Keep it"}} {{end}} {{end}}