diff --git a/forms.py b/forms.py index 9c6b6e3..70c16b2 100644 --- a/forms.py +++ b/forms.py @@ -118,17 +118,16 @@ 'required': _("Please enter the list owner's email address."), }, required = True) - list_type = forms.ChoiceField( - widget = forms.Select(), + advertised = forms.ChoiceField( + widget = forms.RadioSelect(), label = _('List Type'), error_messages = { 'required': _("Please choose a list type."), }, required = True, choices = ( - ("", _("Please choose")), - ("closed_discussion", _("Closed discussion list")), - ("announcement", _("Announcement list")), + (True, _("Advertise this list in List Index")), + (False, _("Hide this list in Liste Index")), )) languages = forms.MultipleChoiceField( @@ -169,7 +168,7 @@ the list should be the wished name of the fieldset, the following the fields that should be included in the fieldset. """ - layout = [["List Details", "listname", "mail_host", "list_owner", "description", "list_type"], + layout = [["List Details", "listname", "mail_host", "list_owner", "description", "advertised"], ["Available Languages", "languages"]] class ListSubscribe(FieldsetForm): diff --git a/templates/mailman-django/lists/new.html b/templates/mailman-django/lists/new.html index ef58b7a..a97c84e 100644 --- a/templates/mailman-django/lists/new.html +++ b/templates/mailman-django/lists/new.html @@ -2,7 +2,7 @@ {% load i18n %} {% block header %} -
+
{% trans "Create a new list" %}
{{ form.as_div }} diff --git a/views.py b/views.py index d40e6b6..0fcb53e 100644 --- a/views.py +++ b/views.py @@ -159,7 +159,7 @@ settings = mailing_list.settings settings["description"] = form.cleaned_data['description'] settings["owner_address"] = form.cleaned_data['list_owner'] #TODO: Readonly - #settings["???"] = form.cleaned_data['list_type'] #TODO not found in REST + settings["advertised"] = form.cleaned_data['advertised'] #settings["???"] = form.cleaned_data['languages'] #TODO not found in REST settings.save() return redirect("list_summary",fqdn_listname=mailing_list.fqdn_listname)