Bugzilla – Attachment 73772 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.13 KB, created by
Owen Leonard
on 2018-04-06 12:59:16 UTC
(
hide
)
Description:
Bug 20534: Floating toolbar when editing vendors
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-04-06 12:59:16 UTC
Size:
3.13 KB
patch
obsolete
>From 52811acce3d05f0d6ab7b931c9a686c47c1c4493 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. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > >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 4e01547..a4fdd44 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >@@ -113,6 +113,14 @@ > [% 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 %]"> >+ [% 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 %]" /> > <fieldset class="rows"> >@@ -239,9 +247,6 @@ > <li><label for="notes">Notes: </label> > <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol> > </fieldset> >- <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %] >- <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl"> >- [% END %]Cancel</a></fieldset> > </div> > </form> > [% ELSE %] >@@ -352,6 +357,7 @@ > > [% MACRO jsinclude BLOCK %] > <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script> >+ <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script> > [% INCLUDE 'datatables.inc' %] > <script type="text/javascript"> > function confirm_deletion() { >@@ -422,6 +428,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