Phase 13, part 3: signing up, and several teams per person

On the multi-tenant edition anyone can set up a team: their account, the
company and its website, whose registered domain the team works on (the
profile keeps to it). A person can belong to several teams and switch
between them from the sidebar, or set up another. Inviting someone who has
an account adds them to the team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:17:15 -07:00
co-authored by Claude Opus 5.5
parent 210b1e57fc
commit d5fb1898e8
16 changed files with 545 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
{{define "content"}}{{with .Data}}
<h1>Set up your team</h1>
<p class="lede">Supermarket for your company: posts, prospects, SEO and your sites, for the team you invite. It works on one website domain, such as example.com, with its subdomains.</p>
{{with .Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
<form class="card" method="post" action="/signup">
<label>Your name <input name="name" autocomplete="name"></label>
<label>Your email address <input type="email" name="email" value="{{.Email}}" autocomplete="username" required autofocus></label>
<label>Choose a password <input type="password" name="password" autocomplete="new-password" minlength="10" required>
<span class="help">At least 10 characters.</span></label>
<label>The company's name <input name="company" value="{{.Company}}" autocomplete="organization" required></label>
<label>Its website <input name="website" value="{{.Website}}" placeholder="example.com" required>
<span class="help">Your team works on this domain and its subdomains. You'll prove it's yours before Supermarket reads or changes the site.</span></label>
<button type="submit">Set up the team</button>
</form>
<p class="help">Already have an account? <a href="/signin">Sign in</a>.</p>
{{end}}{{end}}