From de3bb53c1397c6d567ae16076b47789c6f2ca250 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Mon, 8 Feb 2010 14:47:53 +0000 Subject: [PATCH] move author notification field to the bottom of the form. svn path=/plone.app.discussion/branches/notification/; revision=33868 --- plone/app/discussion/browser/comments.py | 1 - plone/app/discussion/interfaces.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 8ad3925..2887a91 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -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() diff --git a/plone/app/discussion/interfaces.py b/plone/app/discussion/interfaces.py index df06665..2cfb86b 100644 --- a/plone/app/discussion/interfaces.py +++ b/plone/app/discussion/interfaces.py @@ -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"))