move author notification field to the bottom of the form.

svn path=/plone.app.discussion/branches/notification/; revision=33868
This commit is contained in:
Timo Stollenwerk 2010-02-08 14:47:53 +00:00
parent c4dbf971fb
commit de3bb53c13
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
def updateFields(self):
self.fields['author_notification'].widgetFactory = SingleCheckBoxFieldWidget
self.move('author_notification', after='text')
def updateWidgets(self):
super(CommentForm, self).updateWidgets()

View File

@ -172,13 +172,13 @@ class IComment(Interface):
author_name = schema.TextLine(title=_(u"Name"), required=False)
author_email = schema.TextLine(title=_(u"Email"), required=False)
author_notification = schema.Bool(title=_("Notify me of new posts via email"), required=False)
title = schema.TextLine(title=_(u"Subject"))
mime_type = schema.ASCIILine(title=_(u"MIME type"), default="text/plain")
text = schema.Text(title=_(u"Comment"))
author_notification = schema.Bool(title=_("Notify me of new posts via email"), required=False)
creator = schema.TextLine(title=_(u"Author name (for display)"))
creation_date = schema.Date(title=_(u"Creation date"))
modification_date = schema.Date(title=_(u"Modification date"))