123456789101112131415161718192021222324252627282930313233343536373839404142 |
- from django import forms
- from django.utils.translation import ugettext_lazy as _
- from misago.timezones import tzlist
- from misago.forms import Form
- class UserForumOptionsForm(Form):
- newsletters = forms.BooleanField(required=False)
- timezone = forms.ChoiceField(choices=tzlist())
- hide_activity = forms.ChoiceField(choices=(
- (0, _("Show my presence to everyone")),
- (1, _("Show my presence to people I follow")),
- (2, _("Show my presence to nobody")),
- ))
- subscribe_start = forms.ChoiceField(choices=(
- (0, _("Don't watch")),
- (1, _("Put on watched threads list")),
- (2, _("Put on watched threads list and e-mail me when somebody replies")),
- ))
- subscribe_reply = forms.ChoiceField(choices=(
- (0, _("Don't watch")),
- (1, _("Put on watched threads list")),
- (2, _("Put on watched threads list and e-mail me when somebody replies")),
- ))
- layout = (
- (
- _("Forum Options"),
- (
- ('hide_activity', {'label': _("Your Visibility"), 'help_text': _("If you want to, you can limit other members ability to track your presence on forums.")}),
- ('timezone', {'label': _("Your Current Timezone"), 'help_text': _("If dates and hours displayed by forums are inaccurate, you can fix it by adjusting timezone setting.")}),
- ('newsletters', {'label': _("Newsletters"), 'help_text': _("On occasion board administrator may want to send e-mail message to multiple members."), 'inline': _("Yes, I want to subscribe forum newsletter")}),
- )
- ),
- (
- _("Watching Threads"),
- (
- ('subscribe_start', {'label': _("Threads I start")}),
- ('subscribe_reply', {'label': _("Threads I reply to")}),
- )
- ),
- )
|