| Server IP : 85.214.239.14 / Your IP : 216.73.216.210 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/srv/modoboa/env/lib/python3.5/site-packages/modoboa_radicale/ |
Upload File : |
"""Radicale extension forms."""
from django import forms
from django.utils.translation import ugettext_lazy
from modoboa.lib import form_utils
from modoboa.parameters import forms as param_forms
class ParametersForm(param_forms.AdminParametersForm):
"""Global parameters."""
app = "modoboa_radicale"
server_settings = form_utils.SeparatorField(
label=ugettext_lazy("Server settings")
)
server_location = forms.URLField(
label=ugettext_lazy("Server URL"),
help_text=ugettext_lazy(
"The URL of your Radicale server. "
"It will be used to construct calendar URLs."
),
widget=forms.TextInput(attrs={"class": "form-control"})
)
rights_management_sep = form_utils.SeparatorField(
label=ugettext_lazy("Rights management"))
rights_file_path = forms.CharField(
label=ugettext_lazy("Rights file's path"),
initial="/etc/modoboa_radicale/rights",
help_text=ugettext_lazy(
"Path to the file that contains rights definition"
),
widget=forms.TextInput(attrs={"class": "form-control"})
)
allow_calendars_administration = form_utils.YesNoField(
label=ugettext_lazy("Allow calendars administration"),
initial=False,
help_text=ugettext_lazy(
"Allow domain administrators to manage user calendars "
"(read and write)"
)
)
misc_sep = form_utils.SeparatorField(
label=ugettext_lazy("Miscellaneous"))
max_ics_file_size = forms.CharField(
label=ugettext_lazy("Maximum size of ICS files"),
initial="10240",
help_text=ugettext_lazy(
"Maximum size in bytes of imported ICS files "
"(or KB, MB, GB if specified)")
)