Download this file
| 1 | {{/* The Oficina door (estilo chrome): one card on the suite's sky, Calls' |
| 2 | mark and name at its head. The form, or once a link has been asked |
| 3 | for, the check-your-email notice — or, on the way to Keymail, the |
| 4 | door's notice with .Continue's meta refresh in head (renderKeymail). |
| 5 | auth.go's localSignin builds the first two, refused the form with its |
| 6 | 403, and renderConfirm the confirm step. */}} |
| 7 | {{define "head"}}{{with .Continue}}{{template "home-oauth-head" .}}{{end}}{{end}} |
| 8 | {{define "content"}} |
| 9 | {{/* The confirm step an emailed link opens on (renderConfirm): the door |
| 10 | with its address field taken away, and one Sign in button that posts |
| 11 | the link's token back. GET /auth/verify spends nothing; this POST |
| 12 | does. The token is the link's own query value, escaped here. */}} |
| 13 | {{with .Confirm}}{{template "estilo-door-open" .Door}} |
| 14 | <h1>{{.Door.Heading}}</h1> |
| 15 | {{- with .Door.Lede}} |
| 16 | <p estilo-signin-lede>{{.}}</p> |
| 17 | {{- end}} |
| 18 | <form rst-form estilo-signin-form method="post" action="{{.Action}}"> |
| 19 | <input type="hidden" name="token" value="{{.Token}}"> |
| 20 | <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Door.Submit}}</button></div> |
| 21 | </form> |
| 22 | {{template "estilo-door-close"}} |
| 23 | {{- else}}{{if .Sent}}{{template "estilo-signin-sent" .Notice}}{{else}}{{template "estilo-signin" .Door}}{{end}}{{end}} |
| 24 | {{end}} |
| 25 | |