From 09c7a9c3af3ac7cde90e6e055fe2a233d71466e9 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 29 Mar 2016 02:29:26 +0000 Subject: [PATCH] Bug 16058: Delete individual news item from koha-news.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds a confirm message for deleting a news item from the home page in the staff client. It also gives the ability to delete an individual news item from koha-news.pl with a confirm message. The buttons on koha-news.pl are now styled as font awesome buttons. To test: 1) Go to main intranet page. Click 'Delete' for a news item. 2) Confirm that Cancel stops the Delete, and OK deletes the item and takes you to tools/koha-news.pl 3) Confirm that the buttons (Edit and Delete) on koha-news.pl are now styled as font awesome buttons and the buttons don't wrap on a narrow browser. 4) Confirm that the column heading for the buttons is now "Actions". 5) Confirm that clicking Delete triggers a confirm message. Confirm that Cancel stops the Delete, and OK deletes the item and it no longer shows in the News table or anywhere else. Sponsored-by: Catalyst IT Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Amended-patch: just split the td on several lines for readability. Signed-off-by: Brendan A Gallagher --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 8 ++++++-- .../intranet-tmpl/prog/en/modules/tools/koha-news.tt | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index 64c05f9578..f7e8b36d36 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -4,7 +4,11 @@ [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'header.inc' %] @@ -179,7 +183,7 @@

Posted on [% koha_new.newdate %][% IF( ( newsdisp == 'staff' || newsdisp == 'both' ) && koha_new.borrowernumber ) %] by [% koha_new.author_title %] [% koha_new.author_firstname %] [% koha_new.author_surname %]
[% END %] [% IF ( CAN_user_tools ) %] Edit - | Delete + | Delete | New [% END %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt index ca4588a9cd..bee9945e0d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt @@ -23,6 +23,7 @@