equal
deleted
inserted
replaced
80 |
80 |
81 def updateWidgets(self, prefix=None): |
81 def updateWidgets(self, prefix=None): |
82 super(SharedContentAddForm, self).updateWidgets(prefix) |
82 super(SharedContentAddForm, self).updateWidgets(prefix) |
83 if 'title' in self.widgets: |
83 if 'title' in self.widgets: |
84 self.widgets['title'].description = _("This title can be modified afterwards") |
84 self.widgets['title'].description = _("This title can be modified afterwards") |
85 if 'notepad' in self.widgets: |
|
86 self.widgets['notepad'].widget_css_class = 'textarea' |
|
87 |
85 |
88 def create(self, data): |
86 def create(self, data): |
89 return self.context.shared_content_factory.content_class() |
87 return self.context.shared_content_factory.content_class() |
90 |
88 |
91 def update_content(self, content, data): |
89 def update_content(self, content, data): |
287 |
285 |
288 fields = field.Fields(IWorkflowCommentInfo) |
286 fields = field.Fields(IWorkflowCommentInfo) |
289 buttons = button.Buttons(ISharedContentDuplicateButtons) |
287 buttons = button.Buttons(ISharedContentDuplicateButtons) |
290 |
288 |
291 edit_permission = CREATE_CONTENT_PERMISSION |
289 edit_permission = CREATE_CONTENT_PERMISSION |
292 |
|
293 def updateWidgets(self, prefix=None): |
|
294 super(WfSharedContentDuplicateForm, self).updateWidgets(prefix) |
|
295 if 'comment' in self.widgets: |
|
296 self.widgets['comment'].widget_css_class = 'textarea' |
|
297 |
290 |
298 def updateActions(self): |
291 def updateActions(self): |
299 super(WfSharedContentDuplicateForm, self).updateActions() |
292 super(WfSharedContentDuplicateForm, self).updateActions() |
300 if 'duplicate' in self.actions: |
293 if 'duplicate' in self.actions: |
301 self.actions['duplicate'].addClass('btn-primary') |
294 self.actions['duplicate'].addClass('btn-primary') |