mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
24 lines
863 B
Python
24 lines
863 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""
|
|
Forms for configuring Ejabberd.
|
|
"""
|
|
|
|
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from plinth import cfg
|
|
from plinth.forms import AppForm
|
|
from plinth.utils import format_lazy
|
|
|
|
|
|
class EjabberdForm(AppForm):
|
|
"""Ejabberd configuration form."""
|
|
MAM_enabled = forms.BooleanField(
|
|
label=_('Enable Message Archive Management'), required=False,
|
|
help_text=format_lazy(
|
|
_('If enabled, your {box_name} will store chat message histories. '
|
|
'This allows synchronization of conversations between multiple '
|
|
'clients, and reading the history of a multi-user chat room. '
|
|
'It depends on the client settings whether the histories are '
|
|
'stored as plain text or encrypted.'), box_name=_(cfg.box_name)))
|