Redo the controlpanel UI.

svn path=/plone.app.discussion/trunk/; revision=33284
This commit is contained in:
Timo Stollenwerk
2010-01-22 19:17:46 +00:00
parent ebf12022eb
commit ac3ade24f6
2 changed files with 31 additions and 18 deletions
+9 -9
View File
@@ -17,13 +17,13 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
description = _(u"""Some discussion related settings are not located
in the Discussion Control Panel.
To enable moderation for content types, go to the
Types Control Panel, and enable moderation for a
specific content type.
To enable comments for a specific content type,
go to the Types Control Panel of this type and
choose 'enable moderation'.
To enable comment moderation, go to the Types
Control Panel, choose "Comment", and set the
workflow to "Comment Review Workflow".
To enable the moderation workflow for comments,
go to the Types Control Panel, choose "Comment"
and set workflow to "Comment Review Workflow".
""")
def updateFields(self):
@@ -34,9 +34,9 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
def updateWidgets(self):
super(DiscussionSettingsEditForm, self).updateWidgets()
self.widgets['globally_enabled'].label = u""
self.widgets['anonymous_comments'].label = u""
self.widgets['show_commenter_image'].label = u""
self.widgets['globally_enabled'].label = u"Enable Comments"
self.widgets['anonymous_comments'].label = u"Anonymous Comments"
self.widgets['show_commenter_image'].label = u"Commenter Image"
class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):