Bugzilla – Attachment 79307 Details for
Bug 20534
Floating toolbar when editing vendors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20534: Floating toolbar when editing vendors
Bug-20534-Floating-toolbar-when-editing-vendors.patch (text/plain), 3.10 KB, created by
Owen Leonard
on 2018-09-24 12:43:39 UTC
(
hide
)
Description:
Bug 20534: Floating toolbar when editing vendors
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-09-24 12:43:39 UTC
Size:
3.10 KB
patch
obsolete
>From 61c02ab14c4f078b36895421d0073a398606fe08 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 6 Apr 2018 12:53:35 +0000 >Subject: [PATCH] Bug 20534: Floating toolbar when editing vendors > >This patch moves the Save and Cancel controls on the vendor edit form >into a toolbar which sticks to the top of the screen as you scroll. > >To test, apply the patch and Acquisitions -> New vendor. > >- Confirm that as you scroll down the page, the toolbar with the Save > and Cancel buttons sticks to the top of the screen. >- Test that the Save and Cancel buttons both work correctly. >- Perform the same tests when editing an existing vendor. > >Signed-off-by: Maksim Sen <maksim.sen@inlibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >index 10cc063..3066c1c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >@@ -115,6 +115,15 @@ > [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] > [% IF ( enter ) %] > <form action="updatesupplier.pl" name="updatesupplier" class="validated" method="post"> >+ <div id="toolbar" class="btn-toolbar"> >+ <button class="btn btn-default btn-sm" type="submit"><i class="fa fa-save"></i> Save</button> >+ [% IF ( booksellerid ) %] >+ <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]"> >+ [% ELSE %] >+ <a class="btn btn-default btn-sm cancel" href="/cgi-bin/koha/acqui/acqui-home.pl"> >+ [% END %] <i class="fa fa-remove"></i> Cancel</a> >+ </div> >+ <div class="yui-g"> > <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /> > <fieldset class="rows"> > <legend>Company details</legend> >@@ -242,6 +251,7 @@ > <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %] > <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl"> > [% END %]Cancel</a></fieldset> >+ </div> > </form> > [% ELSE %] > <h1>[% name | html %]</h1> >@@ -351,9 +361,9 @@ > </aside> > </div> <!-- /.col-sm-2.col-sm-pull-10 --> > </div> <!-- /.row --> >- > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/acquisitions-menu.js") | $raw %] >+ [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > <script> > function confirm_deletion() { >@@ -424,6 +434,7 @@ > $('body').on('click', '.contact_claimissues', null, function () { > $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0'); > }); >+ $('#toolbar').fixFloat(); > }); > </script> > [% END %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20534
:
73772
|
73786
|
73826
|
79306
| 79307