Adds help text to federation settings page

This commit is contained in:
Mouse Reeve 2024-08-27 14:01:31 -07:00
parent 005f9fc079
commit a5ae9c86a8
2 changed files with 10 additions and 1 deletions

View file

@ -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:

View file

@ -30,12 +30,15 @@
method="POST"
>
{% csrf_token %}
<section class="block">
<section class="block box">
<div class="field">
<label class="label" for="id_disable_federation">
{{ form.disable_federation }}
{% trans "Disable federation" %}
</label>
<span class="help" id="desc_disable_federation">
{% trans "Prevents your instance from interacting with other federated services. Existing data from other instances will still be present." %}
</span>
</div>
</section>
<footer class="block">