{{ .DisplayName }} {{ if .IsActive }}active {{ else }}inactive{{ end }}

{{ if .Description }}

{{ .Description }}

{{ end }}
{{ .OrgType }}
{{ if .Error }} {{ end }}
{{ if eq (len .PlanLadders) 0 }}

No plan ladders exist yet. A plan ladder with a rank-0 tier must exist before this type can have a default plan. Go to Plan Ladders.

{{ else }} {{ $selected := .DefaultPlanLadderID }} {{ if .HasCandidate }}{{ $selected = .Candidate }}{{ end }} {{ end }}
{{ if .DefaultPlanLadderName }} {{ if .DefaultHasRankZero }} Current: {{ .DefaultPlanLadderName }} ({{ .DefaultRankZeroProductName }}) {{ else }} Current: {{ .DefaultPlanLadderName }} — its rank-0 tier was deleted; new orgs can't be provisioned until a tier is added back {{ end }} {{ else }} Current: none {{ end }}
{{ with .Preview }}

Preview — nothing changed yet. Committing:

{{ if .Empty }}

No existing organizations are affected.

{{ else }}
    {{ if gt (len .WouldInitiate) 0 }}
  • {{ if .CandidateLadderID }} {{ len .WouldInitiate }} without a plan — initiated onto the new default. {{ else }} {{ len .WouldInitiate }} without a plan — stay plan-less. {{ end }}
  • {{ end }} {{ if gt (len .OutgoingDefault) 0 }}
  • {{ len .OutgoingDefault }} on the outgoing default — disposition below.
    show all {{ len .OutgoingDefault }}
      {{ range .OutgoingDefault }}
    • {{ .Name }} ({{ .Slug }})
    • {{ end }}
  • {{ end }} {{ if gt .AlreadyAtDefault 0 }}
  • {{ .AlreadyAtDefault }} already at this default — untouched.
  • {{ end }} {{ if gt (len .OtherSource) 0 }}
  • {{ len .OtherSource }} on a plan from another source — never touched.
    show all {{ len .OtherSource }}
      {{ range .OtherSource }}
    • {{ .Name }} ({{ .Slug }}) — {{ .Source }}
    • {{ end }}
  • {{ end }} {{ if gt (len .WouldFail) 0 }}
  • {{ len .WouldFail }} would fail:
      {{ range .WouldFail }}
    • {{ .OrgName }} ({{ .OrgSlug }}) — {{ .Reason }}
    • {{ end }}
  • {{ end }}
{{ end }}
{{ end }}
{{ with .Result }}

Default change committed: {{ .Summary }}.

{{ if gt (len .Failures) 0 }}

Failed organizations were skipped — fix the cause and commit again.

    {{ range .Failures }}
  • {{ .OrgName }} ({{ .OrgSlug }}) — {{ .Reason }}
  • {{ end }}
{{ end }}
{{ end }}