| 1 | {{define "title"}}{{.Title}}{{end}} |
| 2 | {{/* The Oficina door (estilo chrome). Exactly one card: the form, the |
| 3 | check-your-email notice, the card between the form and Keymail (with |
| 4 | .Data.Continue's meta refresh in head), where Home sign-out lands, or |
| 5 | the confirm step an emailed link opens on. |
| 6 | The form posts its address as "address", the name the auth plugin |
| 7 | reads. */}} |
| 8 | {{define "head"}}{{with .Data.Continue}}{{template "home-oauth-head" .}}{{end}}{{end}} |
| 9 | {{define "content"}} |
| 10 | {{- with .Data.Form}}{{template "estilo-signin" .}}{{end}} |
| 11 | {{- with .Data.Sent}}{{template "estilo-signin-sent" .}}{{end}} |
| 12 | {{- with .Data.SignedOut}}{{template "estilo-signed-out" .}}{{end}} |
| 13 | {{- /* The confirm step an emailed link opens on (renderConfirm): the door |
| 14 | with its address field taken away, and one Sign in button that posts |
| 15 | the link's token back. GET /auth/verify spends nothing; this POST |
| 16 | does. The token is the link's own query value, escaped here. */}} |
| 17 | {{- with .Data.Confirm}}{{template "estilo-door-open" .Door}} |
| 18 | <h1>{{.Door.Heading}}</h1> |
| 19 | {{- with .Door.Lede}} |
| 20 | <p estilo-signin-lede>{{.}}</p> |
| 21 | {{- end}} |
| 22 | <form rst-form estilo-signin-form method="post" action="{{.Action}}"> |
| 23 | <input type="hidden" name="token" value="{{.Token}}"> |
| 24 | <div rst-form-foot><button rst-btn="primary" type="submit" autofocus>{{.Door.Submit}}</button></div> |
| 25 | </form> |
| 26 | {{template "estilo-door-close"}}{{end}} |
| 27 | {{end}} |
| 28 | |