mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -1,6 +1,6 @@
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext as _, ugettext_lazy
|
||||
from modoboa.lib.formutils import YesNoField, SeparatorField
|
||||
from modoboa.lib.formutils import YesNoField, SeparatorField, InlineRadioSelect
|
||||
from modoboa.lib.sysutils import exec_cmd
|
||||
from modoboa.lib import parameters
|
||||
|
||||
@@ -34,7 +34,8 @@ class GeneralParametersForm(parameters.AdminParametersForm):
|
||||
choices=[('local', ugettext_lazy("Local")),
|
||||
('ldap', "LDAP")],
|
||||
initial="local",
|
||||
help_text=ugettext_lazy("The backend used for authentication")
|
||||
help_text=ugettext_lazy("The backend used for authentication"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
password_scheme = forms.ChoiceField(
|
||||
@@ -80,7 +81,8 @@ class GeneralParametersForm(parameters.AdminParametersForm):
|
||||
choices=[('searchbind', ugettext_lazy("Search and bind")),
|
||||
('directbind', ugettext_lazy("Direct bind"))],
|
||||
initial='searchbind',
|
||||
help_text=ugettext_lazy("Choose the authentication method to use")
|
||||
help_text=ugettext_lazy("Choose the authentication method to use"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
ldap_bind_dn = forms.CharField(
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django import forms
|
||||
from modoboa.lib.parameters import AdminParametersForm, UserParametersForm
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField, InlineRadioSelect
|
||||
|
||||
|
||||
class ParametersForm(AdminParametersForm):
|
||||
@@ -26,7 +26,8 @@ class ParametersForm(AdminParametersForm):
|
||||
label=_("Amavis connection mode"),
|
||||
choices=[("inet", "inet"), ("unix", "unix")],
|
||||
initial="unix",
|
||||
help_text=_("Mode used to access the PDP server")
|
||||
help_text=_("Mode used to access the PDP server"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
am_pdp_host = forms.CharField(
|
||||
|
||||
@@ -3,7 +3,7 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from django import forms
|
||||
from sievelib.managesieve import SUPPORTED_AUTH_MECHS
|
||||
from modoboa.lib.parameters import AdminParametersForm, UserParametersForm
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField, InlineRadioSelect
|
||||
|
||||
|
||||
def supported_auth_mechs():
|
||||
@@ -51,7 +51,8 @@ class UserSettings(UserParametersForm):
|
||||
initial="raw",
|
||||
label=_("Editor mode"),
|
||||
choices=[("raw", "raw"), ("gui", "simplified")],
|
||||
help_text=_("Select the mode you want the editor to work in")
|
||||
help_text=_("Select the mode you want the editor to work in"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from modoboa.lib.parameters import AdminParametersForm, UserParametersForm
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField
|
||||
from modoboa.lib.formutils import SeparatorField, YesNoField, InlineRadioSelect
|
||||
|
||||
|
||||
class ParametersForm(AdminParametersForm):
|
||||
@@ -50,7 +50,8 @@ class ParametersForm(AdminParametersForm):
|
||||
("starttls", "STARTTLS"),
|
||||
("ssl", "SSL/TLS")],
|
||||
initial="none",
|
||||
help_text=_("Use a secured connection to access SMTP server")
|
||||
help_text=_("Use a secured connection to access SMTP server"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
smtp_port = forms.IntegerField(
|
||||
@@ -75,7 +76,8 @@ class UserSettings(UserParametersForm):
|
||||
initial="plain",
|
||||
label=_("Default message display mode"),
|
||||
choices=[("html", "html"), ("plain", "text")],
|
||||
help_text=_("The default mode used when displaying a message")
|
||||
help_text=_("The default mode used when displaying a message"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
enable_links = YesNoField(
|
||||
@@ -122,7 +124,8 @@ class UserSettings(UserParametersForm):
|
||||
initial="plain",
|
||||
label=_("Default editor"),
|
||||
choices=[("html", "html"), ("plain", "text")],
|
||||
help_text=_("The default editor to use when composing a message")
|
||||
help_text=_("The default editor to use when composing a message"),
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
signature = forms.CharField(
|
||||
|
||||
Reference in New Issue
Block a user