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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-17 / +8 lines)
Lines 198-214 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
    <div id="toolbar" class="btn-toolbar sticky">
202
        <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
203
        [% IF ( booksellerid ) %]
204
            <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
205
        [% ELSE %]
206
            <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
207
        [% END %] <i class="fa fa-times"></i> Cancel</a>
208
    </div>
201
    <form action="updatesupplier.pl" name="updatesupplier" style="display:block" class="validated" method="post">
209
    <form action="updatesupplier.pl" name="updatesupplier" style="display:block" class="validated" method="post">
202
        <input type="hidden" name="op" value="cud-add"/>
210
        <input type="hidden" name="op" value="cud-add"/>
203
        [% INCLUDE 'csrf-token.inc' %]
211
        [% INCLUDE 'csrf-token.inc' %]
204
        <div id="toolbar" class="btn-toolbar">
205
            <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
206
            [% IF ( booksellerid ) %]
207
                <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">
208
            [% ELSE %]
209
                <a class="btn btn-default cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
210
            [% END %] <i class="fa fa-times"></i> Cancel</a>
211
        </div>
212
212
213
        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
213
        <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
214
        <fieldset class="rows">
214
        <fieldset class="rows">
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