From 9b7ccfda79d2e0e76eed259ff1ffd38552fe57c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 11 Nov 2015 18:36:15 +0100 Subject: [PATCH] backoffice: add a bit of text and style to non validated files (#8947) --- wcs/forms/common.py | 4 +++- wcs/qommon/static/css/dc2/admin.css | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wcs/forms/common.py b/wcs/forms/common.py index adb6619..21cf594 100644 --- a/wcs/forms/common.py +++ b/wcs/forms/common.py @@ -553,9 +553,11 @@ class FormStatusPage(Directory): s = s.replace(str('[download]'), str('%sdownload' % form_url)) r += s if status is not None and get_request().is_in_backoffice(): + if status is False: + r += htmltext(' %s') % _('not validated') r += htmltext('
') if status: - r += htmltext(_('

%s validated by %s on %s

')) % ( + r += htmltext('

%s

') % _('%s validated by %s on %s') % ( status['label'], status['creator'], status['created']) r += htmltext('