Download this file
| 1 | {{/* home-link — the Home account-connection screens, and the signed-out |
| 2 | page, which is estilo's estilo-signed-out. */}} |
| 3 | {{define "content"}} |
| 4 | {{- if .SignedOut}}{{template "estilo-signed-out" .SignedOut}}{{else}} |
| 5 | <header rst-page-header><div rst-page-header-titles><h1>{{.Title}}</h1></div></header> |
| 6 | <div rst-box> |
| 7 | <p>{{.Body}}</p>{{if .Address}}<p style="overflow-wrap: anywhere"><strong>{{.Address}}</strong></p>{{end}} |
| 8 | {{- /* One row with the door's gap, primary first: rastrillo's form-foot, |
| 9 | as estilo's homeconnect lays out the same screens for the other apps. */}} |
| 10 | <div rst-form-foot> |
| 11 | {{- if .Choice}} |
| 12 | {{- /* The member choice: two POSTs carrying the proof's form token. */}} |
| 13 | <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="primary" type="submit" name="choice" value="connect">{{.Choice.ConnectLabel}}</button></form> |
| 14 | <form method="post" action="{{.Choice.Action}}"><input type="hidden" name="token" value="{{.Choice.Token}}"><button rst-btn="ghost" type="submit" name="choice" value="new">{{.Choice.NewLabel}}</button></form> |
| 15 | {{- else if .PostAction}}<form method="post" action="{{.Action}}"><button rst-btn="primary" type="submit">{{.ActionLabel}}</button></form> |
| 16 | {{- else}}<a rst-btn="primary" href="{{.Action}}">{{.ActionLabel}}</a>{{end}} |
| 17 | {{- if .CancelLabel}}<a rst-btn="ghost" href="/">{{.CancelLabel}}</a>{{end}}</div> |
| 18 | </div> |
| 19 | {{- end}} |
| 20 | {{end}} |
| 21 | |