From c18811e392bc3b3a1b6fc0455d10dd6247f101b7 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. --- 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.20.1