oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1{{/* deck_settings — GET/POST /d/{sqid}/settings.
2
3 The deck's own settings and nothing else: name, theme, and who can
4 open it. The rung is a choice-field rather than a select, because
5 the three answers each need a sentence — "Private" on its own does
6 not say who that leaves out — and because a radio group signals
7 pick-one where a dropdown hides the alternatives.
8
9 Deleting is not a control on this form. It is a link to its own
10 page, which asks the question and carries the only button that
11 answers it. */}}
12{{define "content"}}
13{{template "back-nav" dict "Href" .BackHref "Label" .BackLabel}}
14{{template "page-header" dict "Title" .Title}}
15<div rst-box>
16 <form rst-form method="post" action="{{.Action}}">
17 {{template "field-text" dict
18 "Name" "title" "Label" .TitleLabel "Value" .TitleValue
19 "Required" true "Primary" true
20 "Error" (index .Errors "Title")}}
21 {{template "field-select" dict
22 "ID" "theme" "Name" "theme" "Label" .ThemeLabel
23 "Options" .Themes "Required" true
24 "Error" (index .Errors "Theme")}}
25 {{template "choice-field" dict
26 "Legend" .RungLegend "Name" "rung" "Options" .Rungs}}
27 {{template "form-error" (index .Errors "Rung")}}
28 {{template "form-foot" dict
29 "Submit" .Submit "CancelHref" .CancelHref "CancelLabel" .CancelLabel}}
30 </form>
31</div>
32<div rst-box-head><h2>{{.DeleteLabel}}</h2></div>
33<div rst-box>
34 <p>{{.DeleteBody}}</p>
35 <p><a rst-btn href="{{.DeleteHref}}">{{.DeleteLabel}}</a></p>
36</div>
37{{end}}
38