backoffice: display potential session messages in listing page (#35759)

This commit is contained in:
Frédéric Péters 2019-09-03 09:54:24 +02:00
parent 54d278ac2f
commit 3628931d68
2 changed files with 2 additions and 0 deletions

View File

@ -1234,6 +1234,7 @@ def test_backoffice_global_remove_action(pub):
resp = resp.form.submit('button-action-1')
resp = resp.follow()
assert resp.request.url == 'http://example.net/backoffice/management/test-global-remove/'
assert 'The form has been deleted.' in resp.body
def test_backoffice_submission_context(pub):
user = create_user(pub)

View File

@ -1370,6 +1370,7 @@ class FormPage(Directory):
r = TemplateIO(html=True)
r += htmltext('<div id="appbar">')
r += htmltext('<h2>%s - %s</h2>') % (self.formdef.name, _('Listing'))
r += get_session().display_message()
r += self.listing_top_actions()
r += htmltext('</div>')
r += table