backoffice: add return button in sidebar (#49073)

This commit is contained in:
Lauréline Guérin 2020-12-18 11:17:36 +01:00
parent e01b9115cd
commit 72fb2109b0
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 0 deletions

View File

@ -2602,6 +2602,7 @@ class FormBackOfficeStatusPage(FormStatusPage):
r = TemplateIO(html=True)
if not formdata.is_draft():
r += htmltext('<p><a class="button" href="..">%s</a></p>') % _('Back to Listing')
r += htmltext('<div class="extra-context">')
if (formdata.backoffice_submission and
formdata.submission_agent_id == str(get_request().user.id) and