From f0ebcb4d7e94c84098f4874748bce522242cbad0 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=UTF-8 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 8 ++++++-- koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt | 5 +++-- 2 files changed, 9 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 64c05f9..f7e8b36 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 ca4588a..0db1b98 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 @@