From e26c8efbdbd4e240dc43f453a86277e55ae184f3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 31 Oct 2014 09:04:43 -0400 Subject: [PATCH] Bug 8836 [Alt QA Followup] - Add confirmation dialog for deleting collections The previous patch for adding a confirmation dialog didn't work to make the confirmation message translatable. This alternate patch uses a progressive-enhancement method recycled from Guided Reports to trigger a warning and highlight the row which was clicked. To test, apply the patch and try to delete an existing rotating collection. You should get a confirmation dialog, and the corresponding row in the table should be highlighted red. Clicking cancel should cancel the deletion. Clicking OK should complete the deletion. To test the translatability of the confirmation message: Run perl translate update [a language code, e.g. 'en-GB'] Search [lang]-i-staff-t-prog-v-3006000.po for the message string Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/css/staff-global.css | 3 ++- .../rotating_collections/rotatingCollections.tt | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 60b0dc30bf..dc557c3eb1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -280,7 +280,8 @@ tr.even td, tr.even.highlight td { font-weight : bold; } -tr.warn td { +tr.warn td, +tr.warn:nth-child(odd) td { background-color: #FF9090; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt index 7124575c26..a807b6be85 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt @@ -2,6 +2,19 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Rotating collections [% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'header.inc' %] @@ -38,7 +51,7 @@ Add or remove items Transfer Edit - Delete + Delete [% END %] -- 2.39.5