default workflow items are visible
This commit is contained in:
parent
da7635f902
commit
7c8e1ab0b8
|
@ -237,6 +237,15 @@ class WorkflowItemPage(Directory):
|
|||
self.workflow.store()
|
||||
return redirect('..')
|
||||
|
||||
get_response().filter['sidebar'] = self.get_sidebar()
|
||||
|
||||
def get_sidebar [html] (self):
|
||||
if str(self.workflow.id).startswith(str('_')):
|
||||
'<p>'
|
||||
_('''This is the default workflow, you cannot edit it but you can
|
||||
duplicate it to base your own workflow on it.''')
|
||||
'</p>'
|
||||
|
||||
def delete [html] (self):
|
||||
form = Form(enctype='multipart/form-data')
|
||||
form.widgets.append(HtmlWidget('<p>%s</p>' % _('You are about to remove an item.')))
|
||||
|
@ -318,13 +327,11 @@ class WorkflowStatusPage(Directory):
|
|||
'<ul id="items-list" class="biglist sortable">'
|
||||
for i, item in enumerate(self.status.items):
|
||||
'<li class="biglistitem" id="itemId_%s">' % item.id
|
||||
if str(self.workflow.id).startswith(str('_')):
|
||||
item.render_as_line()
|
||||
if hasattr(item, str('fill_admin_form')):
|
||||
'<a href="items/%s/">%s</a>' % (item.id, item.render_as_line())
|
||||
else:
|
||||
if hasattr(item, str('fill_admin_form')):
|
||||
'<a href="items/%s/">%s</a>' % (item.id, item.render_as_line())
|
||||
else:
|
||||
item.render_as_line()
|
||||
item.render_as_line()
|
||||
if not str(self.workflow.id).startswith(str('_')):
|
||||
'<p class="commands">'
|
||||
if hasattr(item, str('fill_admin_form')):
|
||||
command_icon('items/%s/' % item.id, 'edit')
|
||||
|
|
Loading…
Reference in New Issue