Files
davidandClaude Opus 5.5 6d3eb18b5e 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>
2026-11-25 13:34:22 -07:00

33 lines
1.6 KiB
HTML

{{define "content"}}{{template "settings-start" .}}{{with .Data}}{{$d := .}}
<h2>Users</h2>
<p class="lede">Who can sign in, and to what. Admins can do everything, including this page; members get the modules you give them, each to view or to edit.</p>
<section class="card">
<table class="list">
<thead><tr><th>Name</th><th>Access</th><th>Status</th><th>Last signed in</th></tr></thead>
<tbody>
{{range .Rows}}<tr>
<td><a href="/settings/users/{{.ID}}">{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}</a>{{if eq .ID $d.Me}} <span class="muted">(you)</span>{{end}}<br><span class="muted small">{{.Email}}</span></td>
<td>{{.Access}}</td>
<td>{{template "user-status" .}}</td>
<td>{{ago .SignedIn}}</td>
</tr>{{end}}
</tbody>
</table>
</section>
<form class="card" method="post" action="/settings/users" id="invite">
<h2>Invite someone</h2>
{{with .Form.Problem}}<p class="error" role="alert">{{.}}</p>{{end}}
<div class="cols">
<label>Email address <input type="email" name="email" value="{{.Form.Email}}" required></label>
<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>
{{end}}{{template "settings-end"}}{{end}}