mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 13:58:53 +08:00
Policy nodes in the rich editor now display a summary of their attributes (groups, version, renew, accept, etc.) and expose an edit button that opens the policy builder modal pre-populated with the current values. Changes are applied directly to the node, so policies can be tweaked without dropping back to markdown source. Also migrates the policy builder form to FormKit, replacing the bespoke `policy-form-field` component. This brings tooltips, proper field-level validation and a layout consistent with the rest of the UI. The "add users to group" picker now excludes automatic groups, which cannot be assigned to. Before: <img width="1238" height="337" alt="image" src="https://github.com/user-attachments/assets/44b21b44-a669-4474-8d14-5855326debfa" /> <img width="1030" height="1539" alt="image" src="https://github.com/user-attachments/assets/a816a491-ba25-4b0a-aa50-cbee32c60962" /> After: <img width="1280" height="574" alt="image" src="https://github.com/user-attachments/assets/6c4b4e18-674d-4e5a-be20-6008c730d348" /> <img width="1160" height="1499" alt="image" src="https://github.com/user-attachments/assets/7d47782c-9b53-43ee-b135-3bb3a2b9ae43" />
61 lines
2.3 KiB
YAML
Vendored
61 lines
2.3 KiB
YAML
Vendored
en:
|
|
js:
|
|
discourse_policy:
|
|
title: "Policy"
|
|
accepted_tooltip: "Users who have accepted this policy"
|
|
not_accepted_tooltip: "Users who have not accepted this policy"
|
|
accept_policy: "Accept Policy"
|
|
revoke_policy: "Revoke Policy"
|
|
edit_reason: "Policy settings have been modified"
|
|
no_possible_users: "This policy has no possible users"
|
|
accept_policy_template: "I accept this policy"
|
|
builder:
|
|
title: Policy
|
|
attach: Create Policy
|
|
save: Save changes
|
|
edit: Edit policy settings
|
|
insert: Insert
|
|
errors:
|
|
group: Group is required
|
|
version: Version is required
|
|
groups:
|
|
label: Groups
|
|
description: The groups associated to this policy
|
|
version:
|
|
label: Version
|
|
description: The version of the policy, bumping the version will force people to re-accept it
|
|
renew:
|
|
label: Renew
|
|
description: Renew the policy every x days
|
|
renew-start:
|
|
label: Renew Start
|
|
description: When the policy should be renewed
|
|
reminder:
|
|
label: Reminder
|
|
description: How often a reminder notification to accept the policy should be sent
|
|
no_reminder: (No reminder)
|
|
accept:
|
|
label: Accept
|
|
description: Text used on the accept button
|
|
revoke:
|
|
label: Revoke
|
|
description: Text used on the revoke button
|
|
private:
|
|
label: Private?
|
|
description: Keep policy status private to administrators
|
|
send-email:
|
|
label: Send Email?
|
|
description: Notify users of the new policy by email
|
|
add-users-to-group:
|
|
label: Add users to group
|
|
description: Add users to the following group when they accept this policy
|
|
preferences:
|
|
title: Policies
|
|
policy_emails:
|
|
always_description: We'll only email you if you've also opted in for new activity emails.
|
|
away_description: We'll only email you if we haven't seen you in the last 10 minutes when the policy status changes, and only if you've also opted in for new activity emails.
|
|
label: Email me when a policy needs my review
|
|
email_frequency_options:
|
|
never: Never
|
|
when_away: Only when away
|
|
always: Always
|