web/views/workflow.py
branchtls-sprint
changeset 1511 514e4e53a3c7
parent 1504 c6051f141807
child 1533 bcd4bfff658b
--- a/web/views/workflow.py	Tue Apr 28 16:23:09 2009 +0200
+++ b/web/views/workflow.py	Tue Apr 28 16:23:28 2009 +0200
@@ -26,8 +26,8 @@
 _ = unicode
 
 EditBox.rmode.set_rtag('create', 'destination_state', 'subject', 'Transition')
-EditBox.rmode.set_rtag('create', 'allowed_transition', 'object', 'Transition')
-EditBox.rmode.set_rtag('create', 'destination_state', 'object', 'State')
+EditBox.rmode.set_rtag('create', 'allowed_transition', 'object', otype='Transition')
+EditBox.rmode.set_rtag('create', 'destination_state', 'object', otype='State')
 EditBox.rmode.set_rtag('create', 'allowed_transition', 'subject', 'State')
 
 
@@ -38,8 +38,8 @@
 
     __method = StringField(name='__method', initial='set_state',
                            widget=HiddenInput)
-    state = StringField(label=_('state'), eidparam=True, widget=HiddenInput)
-    trcomment = RichTextField(label=_('trcomment'), eidparam=True)
+    state = StringField(eidparam=True, widget=HiddenInput)
+    trcomment = RichTextField(label=_('comment:'), eidparam=True)
     form_buttons = [SubmitButton(stdmsgs.YES),
                      Button(stdmsgs.NO, cwaction='cancel')]