View | Details | Raw Unified | Return to bug 38020
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc (-7 / +3 lines)
Lines 16-28 Link Here
16
            <ul class="dropdown-menu">
16
            <ul class="dropdown-menu">
17
                <li><a class="dropdown-item" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=edit_form&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;referer=[% op | uri %]">Edit list</a></li>
17
                <li><a class="dropdown-item" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=edit_form&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;referer=[% op | uri %]">Edit list</a></li>
18
                <li>
18
                <li>
19
                    <form id="deleteshelf_toolbar_form" action="shelves.pl" method="post">
19
                    [% INCLUDE 'csrf-token.inc' %]
20
                        [% INCLUDE 'csrf-token.inc' %]
20
                    <a class="submit-form-link dropdown-item" href="#" data-shelfnumber="[% shelf.shelfnumber | html %]" data-method="post" data-action="shelves.pl" data-op="cud-delete" data-confirmation-msg="[% t('Are you sure you want to delete this list?') | html %]">Delete List</a>
21
                        <input type="hidden" name="op" value="cud-delete" />
21
               </li>
22
                        <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
23
                        <button type="submit" class="btn btn-default delete-list">Delete list</button>
24
                    </form>
25
                </li>
26
            </ul>
22
            </ul>
27
        </div>
23
        </div>
28
        [% END %]
24
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 / +1 lines)
Lines 607-612 Link Here
607
[% MACRO jsinclude BLOCK %]
607
[% MACRO jsinclude BLOCK %]
608
    [% INCLUDE 'datatables.inc' %]
608
    [% INCLUDE 'datatables.inc' %]
609
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
609
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
610
    [% Asset.js("js/form-submit.js") | $raw %]
610
    [% IF print %]
611
    [% IF print %]
611
        <script>
612
        <script>
612
            $( document ).ready(function() {
613
            $( document ).ready(function() {
613
- 

Return to bug 38020