{{/* deck_settings — GET/POST /d/{sqid}/settings. The deck's own settings and nothing else: name, theme, and who can open it. The rung is a choice-field rather than a select, because the three answers each need a sentence — "Private" on its own does not say who that leaves out — and because a radio group signals pick-one where a dropdown hides the alternatives. Deleting is not a control on this form. It is a link to its own page, which asks the question and carries the only button that answers it. */}} {{define "content"}} {{template "back-nav" dict "Href" .BackHref "Label" .BackLabel}} {{template "page-header" dict "Title" .Title}}
{{template "field-text" dict "Name" "title" "Label" .TitleLabel "Value" .TitleValue "Required" true "Primary" true "Error" (index .Errors "Title")}} {{template "field-select" dict "ID" "theme" "Name" "theme" "Label" .ThemeLabel "Options" .Themes "Required" true "Error" (index .Errors "Theme")}} {{template "choice-field" dict "Legend" .RungLegend "Name" "rung" "Options" .Rungs}} {{template "form-error" (index .Errors "Rung")}} {{template "form-foot" dict "Submit" .Submit "CancelHref" .CancelHref "CancelLabel" .CancelLabel}}

{{.DeleteLabel}}

{{.DeleteBody}}

{{.DeleteLabel}}

{{end}}