| |
---|
| | |
---|
| | class ListSubscribe(FieldsetForm): |
---|
| | """Form fields to join an existing list. |
---|
| | """ |
---|
| | listname = forms.EmailField( |
---|
| | label = _('List Name'), |
---|
| | fqdn_listname = forms.EmailField( |
---|
| | label = '',#_('List Name'), |
---|
| | widget = forms.HiddenInput(), |
---|
| | error_messages = { |
---|
| | 'required': _('Please enter the mailing list address.'), |
---|
| | 'invalid': _('Please enter a valid email address.') |
---|
| |
---|
| | To use it: add a list for each wished fieldset. The first item in |
---|
| | the list should be the wished name of the fieldset, the following |
---|
| | the fields that should be included in the fieldset. |
---|
| | """ |
---|
| | layout = [["Subscribe", "email","real_name","name"]] |
---|
| | layout = [["Subscribe", "email","real_name","name","fqdn_listname"]] |
---|
| | |
---|
| | class ListUnsubscribe(FieldsetForm): |
---|
| | """Form fields to leave an existing list. |
---|
| | """ |
---|
| | listname = forms.EmailField( |
---|
| | label = _('List Name'), |
---|
| | fqdn_listname = forms.EmailField( |
---|
| | label = '',#_('List Name'), |
---|
| | widget = forms.HiddenInput(), |
---|
| | error_messages = { |
---|
| | 'required': _('Please enter the mailing list address.'), |
---|
| | 'invalid': _('Please enter a valid email address.') |
---|
| |
---|
| | To use it: add a list for each wished fieldset. The first item in |
---|
| | the list should be the wished name of the fieldset, the following |
---|
| | the fields that should be included in the fieldset. |
---|
| | """ |
---|
| | layout = [["Unsubscribe", "email","name"]] |
---|
| | layout = [["Unsubscribe", "email","name","fqdn_listname"]] |
---|
| | |
---|
| | # should at one point add the password to be required as well! #TODO |
---|
| | class ListSettings(FieldsetForm): |
---|
| | """Form fields dealing with the list settings. |
---|
| |
---|
| | |