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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-13 / +14 lines)
Lines 176-182 Link Here
176
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
176
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
177
                                            <input type="hidden" name="op" value="edit_form" />
177
                                            <input type="hidden" name="op" value="edit_form" />
178
                                            <input type="hidden" name="referer" value="view" />
178
                                            <input type="hidden" name="referer" value="view" />
179
                                            <input type='hidden' name='category' value='[% category | html %]' />
179
                                            <input type='hidden' name='category' value='[% shelf.category | html %]' />
180
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
180
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
181
                                            <button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button>
181
                                            <button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button>
182
                                        </form>
182
                                        </form>
Lines 184-190 Link Here
184
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
184
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
185
                                            <input type="hidden" name="op" value="delete" />
185
                                            <input type="hidden" name="op" value="delete" />
186
                                            <input type="hidden" name="referer" value="list" />
186
                                            <input type="hidden" name="referer" value="list" />
187
                                            <input type='hidden' name='category' value='[% category | html %]' />
187
                                            <input type='hidden' name='category' value='[% shelf.category | html %]' />
188
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
188
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
189
                                            <button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button>
189
                                            <button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button>
190
                                        </form>
190
                                        </form>
Lines 481-502 Link Here
481
                        [% ELSE %]
481
                        [% ELSE %]
482
                            <div id="toolbar" class="toolbar clearfix">
482
                            <div id="toolbar" class="toolbar clearfix">
483
                                <div class="list-actions">
483
                                <div class="list-actions">
484
                                    <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form">New list</a> <span class="sep"></span>
484
                                    <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus"></i> New list</a>
485
                                    [% IF can_manage_shelf %]
485
                                    [% IF can_manage_shelf %]
486
                                        <span class="sep">|</span>
486
                                        <span class="sep">|</span>
487
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
487
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
488
                                            <input type="hidden" name="op" value="edit_form" />
488
                                            <input type="hidden" name="op" value="edit_form" />
489
                                            <input type="hidden" name="referer" value="view" />
489
                                            <input type="hidden" name="referer" value="view" />
490
                                            <input type="hidden" name="category" value="category" />
490
                                            <input type="hidden" name="category" value="[% shelf.category | html %]" />
491
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
491
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
492
                                            <input type="submit" class="editshelf" value="Edit list" />
492
                                            <button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button>
493
                                        </form>
493
                                        </form>
494
494
495
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
495
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
496
                                            <input type="hidden" name="op" value="delete" />
496
                                            <input type="hidden" name="op" value="delete" />
497
                                            <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]"/>
497
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]"/>
498
                                            <input type="hidden" name="category" value="category" />
498
                                            <input type="hidden" name="category" value="[% shelf.category | html %]" />
499
                                            <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
499
                                            <button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button>
500
                                        </form>
500
                                        </form>
501
                                    [% END %]
501
                                    [% END %]
502
                                </div> <!-- / .list-actions -->
502
                                </div> <!-- / .list-actions -->
Lines 945-955 $(function() { Link Here
945
        stickyClass: "floating"
945
        stickyClass: "floating"
946
    });
946
    });
947
947
948
    sortMenu( $("#sorting-form") );
948
    [% IF itemsloop %]
949
        sortMenu( $("#sorting-form") );
949
950
950
    $("#sortfield").on("change", function(){
951
        $("#sortfield").on("change", function(){
951
        $('#sorting-form').submit();
952
            $('#sorting-form').submit();
952
    });
953
        });
954
    [% END %]
953
955
954
}); // document.ready
956
}); // document.ready
955
957
956
- 

Return to bug 24706