oficina / base Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}Set up Ask Base · {{.Name}}{{end}}
2{{define "main"}}<main class="signin">
3<div class="card glass">
4<div class="wordmark">base</div>
5<h2>Set up Ask Base</h2>
6{{if eq .State "pending"}}<p>Check the request is from {{.Label}}, then type this code:</p>
7<p class="code" aria-label="Your code">{{.Code}}</p>
8<a class="btn full" href="{{.Verify}}" target="_blank" rel="noopener">Approve it</a>
9<p class="alt">Once you've approved it, come back and press Check again.</p>
10<form method="post" action="/ask/connect/check" data-connect-check><input type="hidden" name="next" value="{{.Next}}"><button class="btn ghost full" type="submit">Check again</button></form>
11<script type="module" src="{{asset "static/ask-connect.js"}}"></script>
12{{else}}<p>{{if eq .State "expired"}}That code expired. Start again to get a new one.{{else if eq .State "refused"}}That request wasn't accepted. Start again.{{else if eq .State "failed"}}That didn't work. Start again.{{else if eq .State "reconnect"}}Ask Base needs setting up again.{{else}}Set up Ask Base to start asking.{{end}}</p>
13<form method="post" action="/ask/connect"><input type="hidden" name="next" value="{{.Next}}"><button class="btn full" type="submit">{{if eq .State "connect"}}Set up Ask Base{{else if eq .State "reconnect"}}Set it up again{{else}}Start again{{end}}</button></form>
14<a class="btn ghost full" href="{{.Back}}">Back</a>
15{{end}}{{with .Problem}}<p class="status" role="alert">{{.}}</p>{{end}}
16</div>
17</main>{{end}}
18