backoffice: add links to individual actions on inspect page (#54922)

This commit is contained in:
Frédéric Péters 2021-07-04 22:35:59 +02:00
parent 01809d67f7
commit f73369b8c9
1 changed files with 10 additions and 2 deletions

View File

@ -1589,7 +1589,11 @@ class WorkflowPage(Directory):
if not status.items:
r += htmltext('<p>%s</p>') % _('No actions in this status.')
for item in status.items or []:
r += htmltext('<h4>%s</h4>') % item.description
r += htmltext('<h4><a href="status/%s/items/%s/">%s</a></h4>') % (
status.id,
item.id,
item.description,
)
r += item.get_parameters_view()
r += htmltext('</div>')
r += htmltext('</div>')
@ -1606,7 +1610,11 @@ class WorkflowPage(Directory):
r += htmltext('</ul>')
r += htmltext('</h3>')
for item in action.items or []:
r += htmltext('<h4>%s</h4>') % item.description
r += htmltext('<h4><a href="global-actions/%s/items/%s/">%s</a></h4>') % (
action.id,
item.id,
item.description,
)
r += item.get_parameters_view()
r += htmltext('</div>')
r += htmltext('</div>')