From a5ae9c86a85e86cc81301da803b0155be2e6fe35 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 27 Aug 2024 14:01:31 -0700 Subject: [PATCH] Adds help text to federation settings page --- bookwyrm/forms/admin.py | 6 ++++++ bookwyrm/templates/settings/federation/settings.html | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bookwyrm/forms/admin.py b/bookwyrm/forms/admin.py index a2b35a374..7fa621858 100644 --- a/bookwyrm/forms/admin.py +++ b/bookwyrm/forms/admin.py @@ -184,6 +184,12 @@ class FederationSettings(CustomForm): "disable_federation", ] + widgets = { + "disable_federation": forms.CheckboxInput( + attrs={"aria-describedby": "desc_disable_federation"} + ), + } + class AutoModRuleForm(CustomForm): class Meta: diff --git a/bookwyrm/templates/settings/federation/settings.html b/bookwyrm/templates/settings/federation/settings.html index 79c78bd49..665bc2952 100644 --- a/bookwyrm/templates/settings/federation/settings.html +++ b/bookwyrm/templates/settings/federation/settings.html @@ -30,12 +30,15 @@ method="POST" > {% csrf_token %} -
+
+ + {% trans "Prevents your instance from interacting with other federated services. Existing data from other instances will still be present." %} +