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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-11 / +2 lines)
Lines 198-207 Link Here
198
    [% END %]
198
    [% END %]
199
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
199
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
200
[% IF ( enter ) %]
200
[% IF ( enter ) %]
201
    <form action="updatesupplier.pl" name="updatesupplier" style="display:block" class="validated" method="post">
201
    <form action="updatesupplier.pl" name="updatesupplier" class="validated" method="post">
202
        <input type="hidden" name="op" value="cud-add"/>
202
        <input type="hidden" name="op" value="cud-add"/>
203
        [% INCLUDE 'csrf-token.inc' %]
203
        [% INCLUDE 'csrf-token.inc' %]
204
        <div id="toolbar" class="btn-toolbar">
204
        <div id="toolbar" class="btn-toolbar sticky">
205
            <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
205
            <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
206
            [% IF ( booksellerid ) %]
206
            [% IF ( booksellerid ) %]
207
                <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
207
                <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
Lines 517-523 Link Here
517
</div> <!-- /.row -->
517
</div> <!-- /.row -->
518
[% MACRO jsinclude BLOCK %]
518
[% MACRO jsinclude BLOCK %]
519
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
519
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
520
    [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %]
521
    [% Asset.js("js/acq.js") | $raw %]
520
    [% Asset.js("js/acq.js") | $raw %]
522
    [% INCLUDE 'datatables.inc' %]
521
    [% INCLUDE 'datatables.inc' %]
523
    <script>
522
    <script>
Lines 680-687 Link Here
680
            });
679
            });
681
        }
680
        }
682
681
683
        var Sticky;
684
685
         $(document).ready(function() {
682
         $(document).ready(function() {
686
            var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
683
            var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
687
                "columnDefs": [
684
                "columnDefs": [
Lines 726-736 Link Here
726
            refresh_aliases();
723
            refresh_aliases();
727
            refresh_interfaces();
724
            refresh_interfaces();
728
725
729
            Sticky = $("#toolbar");
730
            Sticky.hcSticky({
731
                stickTo: "main",
732
                stickyClass: "floating"
733
            });
734
        });
726
        });
735
    </script>
727
    </script>
736
[% END %]
728
[% END %]
737
- 

Return to bug 36694