{{/* Settings in sections under small headings, each row its name (and value under it) on the left and its control on the right; signing out comes last. */}}<div class="settings">
<li><div class="who">Passkeys<small id="passkeys">{{if .Passkeys}}{{.Passkeys}} added{{else}}None yet{{end}}</small>{{if .PasskeyAdded}}<p class="status" role="status" id="passkey-added">Passkey added. Next time, sign in with it.</p>{{end}}<p class="status" id="passkey-msg" aria-live="polite"></p></div>{{if .CanAddPasskey}}{{/* Hidden until the script finds the browser can make a passkey, so with scripts off there is no dead button. */}}<button class="btn ghost" type="button" hidden data-passkey-add data-module="{{.ModuleURL}}" data-begin="{{.RegisterBegin}}" data-finish="{{.RegisterEnd}}" data-rp-name="{{.Name}}" data-user-id="{{.UserID}}" data-user-name="{{.Address}}" data-done="/settings?passkey=added" data-cancelled="No passkey was added." data-failed="That didn't work. Try again." aria-describedby="passkey-msg">Add a passkey</button>{{end}}</li>
<li><div class="who">Connection<small>{{if eq . "ready"}}{{with $.EquipoPerson}}Connected as {{.}}{{else}}Connected{{end}}{{else if eq . "pending"}}Waiting for your approval{{else if eq . "reconnect"}}Needs setting up again{{else}}Not set up{{end}}</small></div>{{if eq . "ready"}}<form method="post" action="/ask/disconnect"><button class="btn ghost" type="submit">Disconnect</button></form>{{else if eq . "pending"}}<a class="btn ghost" href="/ask/connect?next=settings">Finish setting up</a>{{else}}<form method="post" action="/ask/connect"><input type="hidden" name="next" value="settings"><button class="btn ghost" type="submit">{{if eq . "reconnect"}}Set it up again{{else}}Set up Ask Base{{end}}</button></form>{{end}}</li>
23
</ul>
24
</section>
25
{{end}}<section class="group signout">
26
<form method="post" action="/auth/signout"><button class="btn ghost" type="submit">Sign out of Base</button></form>
27
<p class="note">{{if .Oficina}}This signs you out of Base and your Oficina account. Apps you've opened stay signed in until you sign out of each one.{{else}}This signs you out of Base only. Apps you've opened stay signed in until you sign out of each one.{{end}}</p>