Comment 8 for bug 412971

Revision history for this message
Curtis Hovey (sinzui) wrote :

As stated above, no side portlets because they distract the user from his task.

No, forms without extra content do not need any yui classes Modication pages just need to use main_only.

If we can drop the first sentence, then this could use lp/app/templates/generic-edit.pt. The view would have to do this

+ @property
+ def label(self):
+ """The form label."""
+ return 'Edit %s' % self.context.title
+
+ @property
+ def page_title(self):
+ """The page title."""
+ return self.label

But you want to do that anyway because the label and title should be the same and the label should be <action> <context.title|displayname>. You can remove bugtask_edit from pagetitles when your add this page_title.

The form is missing a cancel button

+ @property
+ def cancel_url(self):
+ """See `LaunchpadFormView`."""
+ return canonical_url(self.context)