oficina / sheets Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2{{/* estilo's sign-in page, or the sent state that replaces the form
3 (estilo-signin, estilo-signin-sent; spec §9.2 and §9.3). One narrow,
4 left-aligned column capped at 26rem, which fixes the old primary
5 button stranded at the end of a 704px form. Every message comes from
6 signinError's fixed set — there is no path from the URL into this
7 page. */}}
8{{/* The confirm step an emailed link opens on (renderConfirm): the door
9 with its address field taken away, and one Sign in button that posts
10 the link's token back. GET /auth/verify spends nothing; this POST
11 does. The token is the link's own query value, escaped here. */}}
12{{with .Data.Confirm}}{{template "estilo-door-open" .Door}}
13 <h1>{{.Door.Heading}}</h1>
14 {{- with .Door.Lede}}
15 <p estilo-signin-lede>{{.}}</p>
16 {{- end}}
17 <form rst-form estilo-signin-form method="post" action="{{.Action}}">
18 <input type="hidden" name="token" value="{{.Token}}">
19 <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Door.Submit}}</button></div>
20 </form>
21{{template "estilo-door-close"}}
22{{- else with .Data.Sent}}{{template "estilo-signin-sent" .}}{{else}}{{template "estilo-signin" .Data.Form}}{{end}}
23{{end}}
24