@@ -, +, @@ OPAC - The modal should show the title of the list you're deleting. - If the list has titles on it, it show how many. - If the list has been shared with someone it should say so. - Test the "Delete list" link in the toolbar. - You should see the same information in the confirmation message as in the previous step. --- .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 64 +++++++++++++++------- 1 file changed, 44 insertions(+), 20 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -8,6 +8,22 @@ [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] +[% BLOCK delete_shelf %] +
+[% END %] + [% INCLUDE 'doc-head-open.inc' %]This list contains [% contents.count | html %] titles
[% END %]" + shelf_name + "
"; + if( count ){ + message += "" + _("Items on this list:") + " " + count + "
"; + } + if( is_shared ){ + message += "" + _("This list is shared. Other users will lose access to it.") + "
"; + } + confirmModal( message, _("Are you sure you want to delete this list?"), _("Yes, delete"), _("No, do not delete"), function( result ){ + if( result ){ + $("#deleteshelf" + shelf_number ).submit(); + } + } + ); + }); + $(".remove_share").on("click", function(e){ e.preventDefault(); var shelf_name = $(this).data("shelfname"); --