From b016e9638f0d4dcdd0d7d36137165dda2761943a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 7 Dec 2015 22:40:45 +0100 Subject: [PATCH] backoffice: list (almost) all formdata in 360 user view (#9011) Formdata that are not viewable by the user are displayed but not linked, but it's possible to mark some formdefs as never appearing in 360 user view. --- tests/test_backoffice_pages.py | 20 +++++++++++++++++++ wcs/admin/forms.py | 17 +++++++++++++++-- wcs/backoffice/management.py | 38 +++++++++++++++++++++++++++---------- wcs/formdef.py | 4 ++-- wcs/qommon/static/css/dc2/admin.css | 4 ++++ 5 files changed, 69 insertions(+), 14 deletions(-) diff --git a/tests/test_backoffice_pages.py b/tests/test_backoffice_pages.py index 829fbac..c2437cd 100644 --- a/tests/test_backoffice_pages.py +++ b/tests/test_backoffice_pages.py @@ -1434,6 +1434,26 @@ def test_360_user_view(pub): resp = app.get('/backoffice/management/users/%s/' % user.id) for item in to_match: assert item in resp.body + count_li = resp.body.count('') + r += htmltext('