@smartkomm/plexus-cli 0.1.44 → 0.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 97ed43a07bdbd351b2e176afad2d57b55182eb948a5f0cc68739f55a1d25c6ec
1
+ 06bec68ece1870742be597e8a7a6abc886786e21f9eec82aa69d2009012fe023
@@ -175,7 +175,7 @@ whole is the operator's (ask them; do not try).
175
175
  | [config/restore-tenant-setup.md](references/config/restore-tenant-setup.md) | Plattform | Preview and apply a setup export directory onto its tenant, part by part. |
176
176
  | [config/list-setup-exports.md](references/config/list-setup-exports.md) | Plattform | List a tenant's nightly and manual setup exports and show what changed between two of them. |
177
177
  | [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant | Give the application portal colours, radius and fonts; upload logo and WOFF2 fonts (`branding …` needs `administration.config.manage`). |
178
- | [config/set-tenant-terms.md](references/config/set-tenant-terms.md) | Plattform | Switch a school from „Bewerbung" to „Anmeldung" throughout with one setting. |
178
+ | [config/set-tenant-terms.md](references/config/set-tenant-terms.md) | Plattform | Switch a school from „Bewerbung" to „Anmeldung" throughout with one setting — or per Träger. |
179
179
  | [config/set-external-sign-in.md](references/config/set-external-sign-in.md) | Plattform | Choose how long the sign-in link in a school's letters works — once, N days, or without end. |
180
180
  | [config/set-up-billing-catalog.md](references/config/set-up-billing-catalog.md) | Mandant + Plattform | Load articles, packages, reduction tiers and Word templates by stable keys (catalog plan/apply). |
181
181
  | [config/update-tenant-config.md](references/config/update-tenant-config.md) | Mandant | Change the live config by export → edit → dry run → confirm. |
@@ -1,4 +1,4 @@
1
- # Set a school's terms („Anmeldung" statt „Bewerbung")
1
+ # Set a school's terms („Anmeldung" statt „Bewerbung") — per tenant or per Träger
2
2
 
3
3
  **When to use:** a school calls the process by another name — it runs an
4
4
  „Anmeldeverfahren", not a „Bewerbungsverfahren". One setting switches the whole product for that school: the UI,
@@ -36,10 +36,45 @@ deployment — keep the export private): `config export --tenant <slug> --out <s
36
36
 
37
37
  Back to the platform word: `--value '{}'` (or remove the block and apply).
38
38
 
39
+ ## Per Träger (one site says „Anmeldung", another „Bewerbung")
40
+
41
+ A tenant with several Träger or sites sets the word on a **legal entity**:
42
+ `foundation.legalEntities[].terms`, the same closed choice. It overrides the tenant's
43
+ word for every unit below that entity — through `school_group`s too: per term, the
44
+ **nearest** legal entity that sets it wins, then `tenant.terms`, then the platform word.
45
+
46
+ ```bash
47
+ # dry run, then --confirm
48
+ plexus-cli --env staging config set --tenant <slug> --target legal-entities \
49
+ --key <legal-entity-key> --field terms --value '{"application":"Anmeldung"}'
50
+ ```
51
+
52
+ - Stored **as set**: `{"application":"Bewerbung"}` on a site under a tenant on
53
+ „Anmeldung" is an override, not „unset". `--value '{}'` removes the override.
54
+ - The key is the legal entity's `key` from `config export` (`foundation.legalEntities`).
55
+ - Same right as `tenant.terms`: the school's config right, no platform right.
56
+
57
+ Which surface reads which word:
58
+
59
+ | Surface | Word |
60
+ |---|---|
61
+ | Portal pages of one unit (`/e/units/<slug>`, `…/apply`, incl. the header) | the unit's legal-entity chain |
62
+ | An application's form and documents (`/e/form/…`, `/e/artifact/…`; the header keeps the tenant's) | its unit's chain |
63
+ | A letter **about** an application (receipts, tasks, deadlines …), its unreworded blocks | its unit's chain |
64
+ | Portal start page, school list, login, „Meine Bewerbungen", start/sign-in letters | `tenant.terms` |
65
+ | Staff cockpit, task titles, feed notes, the letter workshop | `tenant.terms` |
66
+
67
+ A school's own letter rewording is its text and is never rewritten — per Träger
68
+ rewording does not exist yet.
69
+
39
70
  ## Verify
40
71
 
41
72
  - `plexus-cli --env <env> config export --tenant <slug>` shows `tenant.terms` (an
42
73
  existing snapshot file is replaced only with `--force`).
74
+ - Per Träger: `config export` shows `foundation.legalEntities[<key>].terms`;
75
+ `https://<host>/<slug>/e/units/<unit-slug>` of a unit below it shows the Träger's word,
76
+ the start page `…/e` the tenant's. The `test` tenant demonstrates it: its Träger
77
+ `test_seminare` says „Anmeldung" (Seminarzentrum), every other unit „Bewerbung".
43
78
  - Portal `https://<host>/<slug>/e` shows „Jetzt anmelden", nav „Anmelden", the
44
79
  sign-in button „Einloggen"; the first server-rendered frame already says it (no flash).
45
80
  - Staff board: „Anmeldungen", „Anmeldung ablehnen", …