{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* Organization detail partial for operator. Titled by the organization's own display name; the retired working title named this page for the grant-delivery mechanism instead of the organization it describes (plan-enrollment-administration D5). Built from the page-anatomy parts (docs/design-system.md §6): the header carries the Organizations trail above the name; owner and key live in the details card below it; every section is titled by sectionHeader outside its box; states render through statusBadge; empty sections through emptyState. This is a Go-template comment (stripped at render), not an HTML comment, so its own wording never leaks into the rendered page. */}} {{ if .Error }}
{{ .OrgKey }}This pool is not active; it is not delivering entitlements.
{{ end }} {{ if not .HasAttachment }}No plan is delivering into this pool
{{ end }}{{ .ProductName }}
{{ range $i, $rung := .Rungs }}{{ if $i }} · {{ end }}{{ $rung.LadderName }}, rank {{ $rung.Rank }}{{ end }}
| Resource | Used | Limit |
|---|---|---|
{{ .ResourceKey }} |
{{ .Used }} | {{ .Limit }} |
One extension refreshes all {{ len .Rungs }} ladders shown.
{{ end }} {{ template "form" .ExtendForm }}Issue a grant to update this organization's entitlements. A tier product moves the pool to that tier, up or down.
{{ $superseders := false }} {{ range .IssuanceProducts }}{{ if .SupersedesSubscription }}{{ $superseders = true }}{{ end }}{{ end }} {{ if $superseders }}One row per grant ever issued. The Delivery column shows which grants are delivering right now; superseded and inactive rows are history.
{{ end }}| Product | Reason | Issuance {{ template "helpIcon" (helpIcon "Issuance" "What the record says happened to the grant: active, revoked, or expired.") }} | Delivery {{ template "helpIcon" (helpIcon "Delivery" "Whether the grant is delivering into the pool now.") }} | Granted by | Qty | Activated | Ended | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ if .ProductName }}{{ .ProductName }}{{ else }}—{{ end }} | {{ .GrantReason }}{{ if .Note }} {{ .Note }} {{ end }} |
{{ .Issuance }} |
{{ template "statusBadge" .DeliveryBadge }}
{{/* The superseded row names its replacement; the
live row names nothing, since "extends X" only
repeated the Product column (maintainer,
2026-09-05). */}}
{{ if eq .DeliveryState "superseded" }}
{{ if .ReplacedByLabel }} replaced by {{ .ReplacedByLabel }}{{ end }} {{ end }} |
{{ if .GrantedByName }}{{ .GrantedByName }}{{ else }}System{{ end }} | {{ .Quantity }} | {{ if .ActivatedAt }}{{ .ActivatedAt }}{{ else }}—{{ end }} | {{ if .EndedAt }}{{ .EndedAt }}{{ else }}—{{ end }} | {{ if eq .DeliveryState "live" }} {{ if ne .GrantReason "default" }} {{ end }} {{ end }} |
| Name | Role | Joined | |
|---|---|---|---|
| {{ .DisplayName }} | {{ .Email }} | {{ .RoleName }} | {{ .JoinedAt }} |
Showing the latest 16 of {{ .MembersTotal }}.
{{ end }} {{ end }}| Resource | Limit | Set | Note | By | When |
|---|---|---|---|---|---|
{{ if .ResourceLabel }}{{ .ResourceLabel }} ({{ .ResourceKey }}){{ else }}{{ .ResourceKey }}{{ end }} |
{{ .LimitLine }} | {{ .SetName }} | {{ .Note }} | {{ if .ActorName }}{{ .ActorName }}{{ else }}{{ .ActorType }}{{ end }} | {{ .When }} |
| Ladder | Change | From | To | By | Reason | When |
|---|---|---|---|---|---|---|
| {{ .LadderName }} | {{ template "statusBadge" .ChangeBadge }} | {{ .FromLabel }} | {{ .ToLabel }} | {{ if .ActorName }}{{ .ActorName }}{{ else }}{{ .ActorType }}{{ end }} | {{ .ReasonLabel }}{{ if .ReasonNote }} {{ .ReasonNote }} {{ end }} |
{{ .EffectiveAt }} |