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 492-513 Link Here
492
                        [% ELSE %]
492
                        [% ELSE %]
493
                            <div id="toolbar" class="toolbar clearfix">
493
                            <div id="toolbar" class="toolbar clearfix">
494
                                <div class="list-actions">
494
                                <div class="list-actions">
495
                                    <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form">New list</a> <span class="sep"></span>
495
                                    <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>
496
                                    [% IF can_manage_shelf %]
496
                                    [% IF can_manage_shelf %]
497
                                        <span class="sep">|</span>
497
                                        <span class="sep">|</span>
498
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
498
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
499
                                            <input type="hidden" name="op" value="edit_form" />
499
                                            <input type="hidden" name="op" value="edit_form" />
500
                                            <input type="hidden" name="referer" value="view" />
500
                                            <input type="hidden" name="referer" value="view" />
501
                                            <input type="hidden" name="category" value="category" />
501
                                            <input type="hidden" name="category" value="[% shelf.category | html %]" />
502
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
502
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
503
                                            <input type="submit" class="editshelf" value="Edit list" />
503
                                            <button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button>
504
                                        </form>
504
                                        </form>
505
505
506
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
506
                                        <form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline">
507
                                            <input type="hidden" name="op" value="delete" />
507
                                            <input type="hidden" name="op" value="delete" />
508
                                            <input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]"/>
508
                                            <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]"/>
509
                                            <input type="hidden" name="category" value="category" />
509
                                            <input type="hidden" name="category" value="[% shelf.category | html %]" />
510
                                            <input type="submit" class="deleteshelf" value="Delete list" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
510
                                            <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>
511
                                        </form>
511
                                        </form>
512
                                    [% END %]
512
                                    [% END %]
513
                                </div> <!-- / .list-actions -->
513
                                </div> <!-- / .list-actions -->
Lines 956-966 $(function() { Link Here
956
        stickyClass: "floating"
956
        stickyClass: "floating"
957
    });
957
    });
958
958
959
    sortMenu( $("#sorting-form") );
959
    [% IF itemsloop %]
960
        sortMenu( $("#sorting-form") );
960
961
961
    $("#sortfield").on("change", function(){
962
        $("#sortfield").on("change", function(){
962
        $('#sorting-form').submit();
963
            $('#sorting-form').submit();
963
    });
964
        });
965
    [% END %]
964
966
965
}); // document.ready
967
}); // document.ready
966
968
967
- 

Return to bug 24706