admin: minor style changes to workflow inner pages
This commit is contained in:
parent
960db8f727
commit
166bbaa265
|
@ -158,9 +158,11 @@ class WorkflowStatusPage(Directory):
|
|||
html_top('workflows', '%s - %s' % (_('Workflow'), self.workflow.name))
|
||||
get_response().add_javascript(['jquery.js', 'interface.js', 'biglist.js'])
|
||||
|
||||
'<h2>%s - %s</h2>' % (self.workflow.name, self.status.name)
|
||||
'<h2>%s - ' % _('Workflow')
|
||||
'%s - %s</h2>' % (self.workflow.name, self.status.name)
|
||||
get_session().display_message()
|
||||
|
||||
'<div class="bo-block">'
|
||||
if not self.status.items:
|
||||
'<p>%s</p>' % _('There are not yet any items in this status.')
|
||||
else:
|
||||
|
@ -187,6 +189,7 @@ class WorkflowStatusPage(Directory):
|
|||
'</p>'
|
||||
'</li>'
|
||||
'</ul>'
|
||||
'</div>' # bo-block
|
||||
|
||||
'<p><a href="../../">%s</a></p>' % _('Back to workflow main page')
|
||||
|
||||
|
@ -386,9 +389,12 @@ class WorkflowPage(Directory):
|
|||
def _q_index [html] (self):
|
||||
html_top('workflows', title = _('Workflow - %s') % self.workflow.name)
|
||||
get_response().add_javascript(['jquery.js', 'interface.js', 'biglist.js'])
|
||||
'<h2>%s</h2>'% self.workflow.name
|
||||
'<h2>%s - ' % _('Workflow')
|
||||
'%s</h2>'% self.workflow.name
|
||||
get_session().display_message()
|
||||
|
||||
|
||||
'<div class="bo-block">'
|
||||
'<h3>%s</h3>' % _('Possible Status')
|
||||
|
||||
if not self.workflow.possible_status:
|
||||
|
@ -404,14 +410,9 @@ class WorkflowPage(Directory):
|
|||
for status in self.workflow.possible_status:
|
||||
'<li class="biglistitem" id="itemId_%s">' % status.id
|
||||
'<a href="status/%s/">%s</a>' % (status.id, status.name)
|
||||
|
||||
'<p class="commands">'
|
||||
if not str(self.workflow.id).startswith(str('_')):
|
||||
command_icon('status/%s/' % status.id, 'edit')
|
||||
command_icon('status/%s/delete' % status.id, 'remove', popup = True)
|
||||
'</p>'
|
||||
'</li>'
|
||||
'</ul>'
|
||||
'</div>' # bo-block
|
||||
|
||||
get_response().filter['sidebar'] = self.get_sidebar()
|
||||
|
||||
|
|
Loading…
Reference in New Issue