410 |
410 |
_q_exports = ['', 'delete', 'newitem', ('items', 'items_dir'),
|
411 |
411 |
'update_order', 'edit', 'reassign',
|
412 |
412 |
'endpoint', 'display',
|
413 |
|
('backoffice-info-text', 'backoffice_info_text'),]
|
|
413 |
('backoffice-info-text', 'backoffice_info_text'),
|
|
414 |
('schema.svg', 'svg'), 'svg']
|
414 |
415 |
|
415 |
416 |
def __init__(self, workflow, status_id, html_top):
|
416 |
417 |
self.html_top = html_top
|
... | ... | |
489 |
490 |
r += htmltext('<p><a href="../../">%s</a></p>') % _('Back to workflow main page')
|
490 |
491 |
|
491 |
492 |
r += htmltext('<div class="bo-block">')
|
492 |
|
r += htmltext(graphviz(self.workflow, url_prefix='../../', include=True,
|
493 |
|
select='%s' % self.status.id))
|
|
493 |
r += htmltext(graphviz(self.workflow, url_prefix='../../', include=True, select='%s' % self.status.id))
|
|
494 |
r += htmltext('<div class="full-screen-link"><a href="schema.svg">%s</a></div>') % _('Full Screen')
|
494 |
495 |
r += htmltext('</div>')
|
495 |
496 |
|
496 |
497 |
get_response().filter['sidebar'] = self.get_sidebar()
|
497 |
498 |
|
498 |
499 |
return r.getvalue()
|
499 |
500 |
|
|
501 |
def svg(self):
|
|
502 |
response = get_response()
|
|
503 |
response.set_content_type('image/svg+xml')
|
|
504 |
root_url = get_publisher().get_application_static_files_root_url()
|
|
505 |
css = root_url + get_publisher().qommon_static_dir + get_publisher().qommon_admin_css
|
|
506 |
return graphviz(self.workflow, url_prefix='../../', include=False, select='%s' % self.status.id).replace(
|
|
507 |
'?>', '?>\n<?xml-stylesheet href="%s" type="text/css"?>\n' % css)
|
|
508 |
|
500 |
509 |
def get_sidebar(self):
|
501 |
510 |
get_response().add_javascript(['popup.js', 'jquery.colourpicker.js'])
|
502 |
511 |
r = TemplateIO(html=True)
|
... | ... | |
1524 |
1533 |
r += htmltext('</ul>')
|
1525 |
1534 |
r += htmltext('</div>')
|
1526 |
1535 |
|
1527 |
|
r += htmltext('</div>') # .splitcontent-right
|
|
1536 |
r += htmltext('</div>') # .splitcontent-right
|
1528 |
1537 |
|
1529 |
1538 |
r += htmltext('<br style="clear:both;"/>')
|
1530 |
1539 |
|
... | ... | |
1532 |
1541 |
r += htmltext('<div class="bo-block">')
|
1533 |
1542 |
r += htmltext(graphviz(self.workflow, include=True))
|
1534 |
1543 |
r += htmltext('<div class="full-screen-link"><a href="schema.svg">%s</a></div>') % _('Full Screen')
|
1535 |
|
r += htmltext('</div>') # bo-block
|
|
1544 |
r += htmltext('</div>') # bo-block
|
1536 |
1545 |
|
1537 |
1546 |
formdefs = self.workflow.formdefs()
|
1538 |
1547 |
if formdefs:
|
1539 |
|
-
|