oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2<div rst-stack><h1>{{copy "onboarding.title"}}</h1>
3<section equipo-card rst-stack>
4<h2>{{copy (printf "onboarding.%s" .Onboarding.State.CurrentStep)}}</h2>
5{{if eq .Onboarding.State.CurrentStep "account"}}
6<p>{{copy "onboarding.account_pending"}}</p>
7<form method="post" action="/onboarding/provider" equipo-form>
8<input type="hidden" name="revision" value="{{.Onboarding.State.Revision}}">
9<input type="hidden" name="request_id" value="{{.Onboarding.RequestID}}">
10<label>{{copy "onboarding.account"}}<select name="provider" rst-select><option value="codex" {{if eq .Onboarding.State.ProviderChoice "codex"}}selected{{end}}>{{copy "onboarding.codex"}}</option><option value="claude" {{if eq .Onboarding.State.ProviderChoice "claude"}}selected{{end}}>{{copy "onboarding.claude"}}</option></select></label>
11<button rst-btn type="submit">{{copy "onboarding.choose"}}</button>
12</form>
13{{end}}
14{{if eq .Onboarding.State.CurrentStep "runner"}}
15<p>{{copy "onboarding.own_machine"}}</p>
16{{if .Onboarding.InstallCommand}}<pre>{{.Onboarding.InstallCommand}}</pre>{{else}}<p>{{copy "runner.install.release"}}</p>{{end}}
17<p>{{copy "onboarding.pair"}}</p><a href="/conversation/settings/machines/add">{{copy "runner.title"}}</a>
18<p>{{copy "onboarding.account_pending"}}</p>
19{{end}}
20{{if eq .Onboarding.State.CurrentStep "specialists"}}<ul data-onboarding-specialists>{{range .Onboarding.Specialists}}<li><a href="/specialists/{{.Key}}">{{.Name}}</a>{{if .Required}} <span equipo-value>{{copy "specialists.required"}}</span>{{end}}</li>{{end}}</ul>
21<a href="/templates">{{copy "onboarding.library"}}</a>{{end}}
22{{if eq .Onboarding.State.CurrentStep "first_task"}}<p>{{copy "onboarding.safe_first_task"}}</p>
23<form method="post" action="/onboarding/first-task" equipo-form><input type="hidden" name="request_id" value="{{.Onboarding.RequestID}}-task">
24<label>{{copy "plan.project"}}<select name="project_id" rst-select>{{range .Onboarding.Projects}}<option value="{{.ID}}">{{.Name}}</option>{{end}}</select></label>
25<button rst-btn type="submit">{{copy "onboarding.start_task"}}</button></form>{{end}}
26{{if ne .Onboarding.State.CurrentStep "complete"}}
27<form method="post" action="/onboarding/advance" equipo-form>
28<input type="hidden" name="step" value="{{.Onboarding.State.CurrentStep}}">
29<input type="hidden" name="revision" value="{{.Onboarding.State.Revision}}">
30<input type="hidden" name="request_id" value="{{.Onboarding.RequestID}}-advance">
31<button rst-btn="primary" type="submit">{{copy "onboarding.continue"}}</button>
32</form>
33{{else}}<a href="/conversation">{{copy "conversation.title"}}</a>{{end}}
34</section>
35<section equipo-card rst-stack><h2>{{copy "account_setup.title"}}</h2><p>{{copy "account_setup.dedicated"}}</p>
36{{range .Onboarding.Accounts}}{{if eq .State "unavailable"}}<p data-login-unavailable>{{.Label}} ({{.Provider}}): {{copy "account_setup.unavailable"}}</p>{{end}}{{end}}
37{{if .Onboarding.Runners}}<form method="post" action="/onboarding/accounts" equipo-form>
38<input type="hidden" name="request_id" value="{{.Onboarding.RequestID}}-account">
39<label>{{copy "account_setup.runner"}}<select name="runner_id" rst-select>{{range .Onboarding.Runners}}<option value="{{.ID}}">{{.Label}}</option>{{end}}</select></label>
40<label>{{copy "onboarding.account"}}<select name="provider" rst-select><option value="codex">{{copy "onboarding.codex"}}</option><option value="claude">{{copy "onboarding.claude"}}</option></select></label>
41<label>{{copy "account_setup.label"}}<input name="label" maxlength="80" required rst-input></label><button rst-btn type="submit">{{copy "account_setup.add"}}</button></form>{{end}}
42{{$request:=.Onboarding.RequestID}}{{range .Onboarding.Accounts}}<section equipo-card rst-stack><h3>{{.Label}}</h3><p>{{copy (printf "account_setup.%s" .State)}}</p><code>{{.ID}}</code>
43{{if eq .State "pending"}}<p>{{if eq .Provider "claude"}}{{copy "account_setup.browser"}}{{else}}{{copy "account_setup.device"}}{{end}}</p><pre>{{printf (copy "account_setup.command") .ID}}</pre>
44{{with .Challenge}}<a href="{{.VerificationURI}}" rel="noreferrer">{{.VerificationURI}}</a><code>{{.UserCode}}</code>{{end}}
45<form method="post" action="/onboarding/accounts/cancel"><input type="hidden" name="id" value="{{.ID}}"><input type="hidden" name="revision" value="{{.Revision}}"><input type="hidden" name="request_id" value="{{$request}}-{{.ID}}"><button rst-btn type="submit">{{copy "account_setup.cancel"}}</button></form>{{end}}</section>{{end}}</section>
46<section equipo-card rst-stack><h2>{{copy "onboarding.hosted"}}</h2><p>{{copy "onboarding.later"}}</p></section>
47<section equipo-card rst-stack><h2>{{copy "onboarding.mac"}}</h2><p>{{copy "onboarding.mac_later"}}</p></section></div>
48{{end}}
49