From b785ae79cceb7406f34e240204137506aa61dc1e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 9 Sep 2020 11:16:20 +0100 Subject: [PATCH] Bug 22343: (follow-up) Highlight debug mode enabled This patch adds a debug class to a row if debug mode is enabled for the smtp server and adds css rules to highlight the row by setting the test to bold, red and italic. Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss | 8 ++++++++ .../intranet-tmpl/prog/en/modules/admin/smtp_servers.tt | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss index 31bf388136..83fcd10401 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_tables.scss @@ -273,6 +273,14 @@ tr { font-weight: bold; } } + + &.debug { + td { + font-weight: bold; + color: red; + font-style: italic; + } + } } .selections-table { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt index 732ec91df5..d082858819 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt @@ -346,7 +346,12 @@ SMTP servers "searchable": false, "orderable": false } - ] + ], + createdRow: function (row, data, dataIndex) { + if ( data.debug ) { + $(row).addClass('debug'); + } + }, }); $('#smtp_servers').on( "click", '.delete_server', function () { -- 2.39.2