From 5f20d5f1855f7f64a097480970edf770e17b8a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 29 Nov 2018 11:21:49 +0100 Subject: [PATCH] backoffice: add "info" style to "no fields/actions" messages (#28448) --- wcs/admin/fields.py | 2 +- wcs/admin/workflows.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcs/admin/fields.py b/wcs/admin/fields.py index ec0f10ad3..45f840bf4 100644 --- a/wcs/admin/fields.py +++ b/wcs/admin/fields.py @@ -336,7 +336,7 @@ class FieldsDirectory(Directory): r += htmltext('') r += get_session().display_message() if not self.objectdef.fields: - r += htmltext('

%s

') % _('There are not yet any fields for this form.') + r += htmltext('
%s
') % _('There are not yet any fields for this form.') return r.getvalue() def index_bottom(self): diff --git a/wcs/admin/workflows.py b/wcs/admin/workflows.py index 1a1b0f5fd..9c52b28bb 100644 --- a/wcs/admin/workflows.py +++ b/wcs/admin/workflows.py @@ -419,10 +419,10 @@ class WorkflowStatusPage(Directory): r += htmltext('(%s)') % _('change') r += htmltext('') - r += htmltext('
') if not self.status.items: - r += htmltext('

%s

') % _('There are not yet any items in this status.') + r += htmltext('
%s
') % _('There are not yet any items in this status.') else: + r += htmltext('
') if str(self.workflow.id).startswith(str('_')): r += htmltext('
    ') else: @@ -446,7 +446,7 @@ class WorkflowStatusPage(Directory): r += htmltext('

    ') r += htmltext('') r += htmltext('
') - r += htmltext('
') # bo-block + r += htmltext('
') # bo-block source_status = [] for status in self.workflow.possible_status: -- 2.20.0.rc1