oficina / home Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}Add to team · Oficina{{end}}
2{{define "content"}}{{with .Data}}
3{{- if .Failed}}
4<h1>That didn’t go through</h1>
5<p>The addition expired, was already used, or didn’t match this sign-in. Nobody was added. Start again from your team’s page.</p>
6<p><a href="/">Back to Oficina</a></p>
7{{- else if .Done}}
8<h1>Added to {{.Team}}</h1>
9<p role="status" rst-callout rst-tone="positive"><span rst-callout-body>{{if .Name}}<bdi>{{.Name}}</bdi>{{else}}{{.Role}} {{.Person}}{{end}} is on the team as {{if eq .Role "Owner"}}an owner{{else}}a member{{end}}.</span></p>
10<p>Let them know — they sign in at oficina.works. Oficina doesn’t email them.</p>
11<p><a href="/team?team={{.SQID}}">Back to the team</a></p>
12{{- else}}
13<h1>Add to {{.Team}}?</h1>
14{{if .Error}}<p role="alert" rst-callout rst-tone="negative"><span rst-callout-body>{{.Error}}</span></p>{{end}}
15{{- if .Member}}
16<p>They’re already on this team. Change their role from the team page.</p>
17<p><a href="/team?team={{.SQID}}">Back to the team</a></p>
18{{- else}}
19<dl>
20 <dt>Person</dt><dd>{{if .Name}}<bdi>{{.Name}}</bdi> ({{.Person}}){{else}}{{.Person}}{{end}}</dd>
21 <dt>Role</dt><dd>{{.Role}}</dd>
22</dl>
23<p>They’ll have this team in every app within a minute.</p>
24<form method="post" action="/team/confirm" rst-form-actions><a rst-btn="ghost lg" href="/team?team={{.SQID}}">Cancel</a><button type="submit" rst-btn="primary lg">Add to team</button></form>
25{{- end}}
26{{- end}}
27{{end}}{{end}}
28