Phase 14, parts 5 and 6: seats, and moving down to Free
Seats: inviting past the seats paid for offers the owner to add one (Stripe prorates it); admins are told to ask the owner; Free has two. Moving down: past the plan's seats, the owner and one other (the owner's pick, or the first to join) edit and the rest read; storage is measured hourly, and past the plan's, photo uploads and the SEO crawl stop. Nothing is deleted. TEST.md section 18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,17 @@
|
||||
{{if .Owner}}{{with .Invoice}}<dt>Next invoice</dt><dd>{{money .AmountDue}} {{.Currency}}, {{.Date.Local.Format "2 Jan 2006"}}</dd>{{end}}{{with .InvoiceErr}}<dt>Next invoice</dt><dd class="muted small">{{.}}</dd>{{end}}{{end}}
|
||||
</dl>
|
||||
</section>
|
||||
{{if .Kept}}
|
||||
<section class="card">
|
||||
<h3>Who keeps editing</h3>
|
||||
<p>The {{.Plan.Name}} plan has {{.Plan.Seats}} people, and the team has {{.People}}. Everyone keeps their account and can read; only {{.Plan.Seats}} change things.{{if not .Owner}} The team's owner chooses who.{{end}} Nothing is deleted.</p>
|
||||
<ul>{{range .Others}}<li>{{.Name}} <{{.Email}}>: {{if index $.Data.Kept .ID}}<strong>edits</strong>{{else}}<span class="muted">reads</span>{{end}}</li>{{end}}</ul>
|
||||
{{if .Owner}}<form method="post" action="/settings/billing/keep" class="inline">
|
||||
<label>Keeps editing, with you <select name="user">{{range .Others}}<option value="{{.ID}}"{{if index $.Data.Kept .ID}} selected{{end}}>{{.Name}}</option>{{end}}</select></label>
|
||||
<button type="submit" class="secondary">Save</button>
|
||||
</form>{{end}}
|
||||
</section>
|
||||
{{end}}
|
||||
{{if .Owner}}
|
||||
{{if ne .Account.Status "active"}}
|
||||
<form class="card" method="post" action="/settings/billing/checkout">
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<label>Name <input name="name" value="{{.Form.Name}}" required></label>
|
||||
</div>
|
||||
{{template "access-fields" (dict "Role" .Form.Role "Modules" .Form.Modules "Grants" .Grants)}}
|
||||
{{if .Form.SeatOffer}}<label class="check"><input type="checkbox" name="add_seat" value="1" required> Add a seat for them</label>{{end}}
|
||||
<p class="help">They get an email with a link that works once, for 7 days, to choose a password and fill in their profile.</p>
|
||||
<button type="submit">Send the invitation</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user