Bugzilla – Attachment 47939 Details for
Bug 11088
Patron entry page should use floating toolbar like cataloging interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11088: Floating toolbar to patron entry page
Bug-11088-Floating-toolbar-to-patron-entry-page.patch (text/plain), 4.97 KB, created by
Aleisha Amohia
on 2016-02-12 01:07:51 UTC
(
hide
)
Description:
Bug 11088: Floating toolbar to patron entry page
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-02-12 01:07:51 UTC
Size:
4.97 KB
patch
obsolete
>From a8f54c50ae5447be50b0ecb708507bf81062c8b4 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Fri, 12 Feb 2016 01:05:39 +0000 >Subject: [PATCH] Bug 11088: Floating toolbar to patron entry page > >~ THIS IS NOT READY FOR SIGN OFF ~ > >Can someone who knows a bit about jquery (and maybe css) apply what I've got in this patch so far and work out why the toolbar keeps jumping down the page as soon as I scroll? >The functionality of the toolbar and scrolling etc seems to work as it should, but I can't work out why it keeps jumping! Help appreciated! >--- > .../intranet-tmpl/lib/bootstrap/bootstrap.min.css | 2 +- > .../prog/en/modules/members/memberentrygen.tt | 26 ++++++++++++-------- > 2 files changed, 17 insertions(+), 11 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/lib/bootstrap/bootstrap.min.css b/koha-tmpl/intranet-tmpl/lib/bootstrap/bootstrap.min.css >index 0a4c9df..dfe908b 100644 >--- a/koha-tmpl/intranet-tmpl/lib/bootstrap/bootstrap.min.css >+++ b/koha-tmpl/intranet-tmpl/lib/bootstrap/bootstrap.min.css >@@ -268,7 +268,7 @@ button.btn.btn-mini,input[type="submit"].btn.btn-mini{*padding-top:1px;*padding- > .icon-fullscreen{background-position:-456px -144px;} > .btn-group{position:relative;display:inline-block;*display:inline;*zoom:1;font-size:0;vertical-align:middle;white-space:nowrap;*margin-left:.3em;}.btn-group:first-child{*margin-left:0;} > .btn-group+.btn-group{margin-left:5px;} >-.btn-toolbar{font-size:0;margin-top:10px;margin-bottom:10px;}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group{margin-left:5px;} >+.btn-toolbar{font-size:0;margin-top:0;margin-bottom:10px;}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group{margin-left:5px;} > .btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;} > .btn-group>.btn+.btn{margin-left:-1px;} > .btn-group>.btn,.btn-group>.dropdown-menu,.btn-group>.popover{font-size:14px;} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 8a8d3d4..f8979ec 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -4,6 +4,7 @@ > <title>Koha › Patrons › [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</title> > [% INCLUDE 'doc-head-close.inc' %] > [% INCLUDE 'calendar.inc' %] >+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script> > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >@@ -72,6 +73,7 @@ > mrform.hide(); > e.preventDefault(); > }); >+ $('#toolbar').fixFloat(); > }); > > function clear_entry(node) { >@@ -261,6 +263,7 @@ > > > [% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off"> >+ > <input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %] > <!-- field always hidden in different form (1,2,3) --> > <input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" /> >@@ -284,6 +287,19 @@ > [% END %] > [% END %] > >+ <div id="toolbar" class="btn-toolbar"> >+ [% UNLESS ( check_member ) %] >+ <fieldset class="action"> >+ <div class="btn-group"><a href="#" id="save" onclick="return check_form_borrowers();" class="btn btn-small"><i class="fa fa-save"></i> Save</a></div> >+ [% IF ( opadd ) %] >+ <div class="btn-group"><a class="btn btn-small" id="cancel" href="/cgi-bin/koha/members/member.pl"><i class="fa fa-times-circle"></i> Cancel</a></div> >+ [% ELSE %] >+ <div class="btn-group"><a class="btn btn-small" id="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]"><i class="fa fa-times-circle"></i> Cancel</a></div> >+ [% END %] >+ </fieldset> >+ [% END %] >+ </div> >+ > [% IF ( step_1 ) %] > [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] > <fieldset class="rows" id="memberentry_identity"> >@@ -1119,16 +1135,6 @@ > </fieldset> > [% END %] [% END %] > >-[% UNLESS ( check_member ) %] >- <fieldset class="action"> >- <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" /> >- [% IF ( opadd ) %] >- <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a> >- [% ELSE %] >- <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a> >- [% END %] >- </fieldset> >-[% END %] > </form> > > </div> >-- >1.7.10.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 11088
:
47939
|
50878
|
50925
|
50935
|
50936
|
50951
|
50966
|
50967
|
50968
|
50969
|
50984