Bugzilla – Attachment 143957 Details for
Bug 32109
Toolbar containing text links lacks spacing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32109: Fix spacing in toolbars containing text links
Bug-32109-Fix-spacing-in-toolbars-containing-text-.patch (text/plain), 10.56 KB, created by
Owen Leonard
on 2022-11-16 14:24:51 UTC
(
hide
)
Description:
Bug 32109: Fix spacing in toolbars containing text links
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-11-16 14:24:51 UTC
Size:
10.56 KB
patch
obsolete
>From a62e8cfdc901049ec318a09ac2cdf63971bfdff5 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 4 Nov 2022 11:42:47 +0000 >Subject: [PATCH] Bug 32109: Fix spacing in toolbars containing text links > >This patch adds a new class to toolbars in certain contexts: Where the >toolbar contains only text links (as opposed to Bootstrap-styled >controls). This lets us set some comfortable padding on the links. > >To test, apply the patch and rebuild the staff interface CSS. > >Test the following pages to confirm that the toolbar of selection links >("Select all," "Clear all," etc.) has legible spacing. > >- Cataloging -> Batch item modification -> List of submitted barcodes >- Cataloging -> Batch item deletion -> List of submitted barcodes >- Cataloging -> Batch record modification -> List of submitted records >- Cataloging -> Batch record deletion -> List of submitted records >- Circulation -> Checkout notes >- Tools -> Batch extend due dates -> Preview results >- Tools -> Batch patron modification -> List of submitted patrons >- Tools -> OPAC problem reports > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss | 7 +++++++ > koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc | 4 ++-- > .../intranet-tmpl/prog/en/modules/circ/checkout-notes.tt | 4 ++-- > .../prog/en/modules/tools/batch_delete_records.tt | 4 ++-- > .../prog/en/modules/tools/batch_extend_due_dates.tt | 2 +- > .../prog/en/modules/tools/batch_record_modification.tt | 4 ++-- > .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- > .../intranet-tmpl/prog/en/modules/tools/problem-reports.tt | 4 ++-- > 8 files changed, 19 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss >index b85c70aded..4bf8263491 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/_toolbar.scss >@@ -75,4 +75,11 @@ > font-size: 100%; > } > } >+ >+ &.selections-toolbar { >+ a { >+ display: inline-block; >+ padding: 0 .5em; >+ } >+ } > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >index c7ac3823c1..52d645f255 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc >@@ -212,9 +212,9 @@ > <div class="page-section"> > [% IF display_columns_selection %][%# Needs js/pages/batchMod.js %] > [% IF checkboxes_edit OR checkboxes_delete %] >- <fieldset class="action"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a> | <a id="clearonloanbutton" href="#">Clear on loan</a> >- </fieldset> >+ </div> > [% END %] > > <div id="cataloguing_additem_itemlist"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >index d5bd7db65f..91bd8e61a0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/checkout-notes.tt >@@ -69,12 +69,12 @@ > <button type="submit" class="btn btn-default markseen" name="mark_selected-notseen" value="notseen" disabled="disabled"><i class="fa fa-eye-slash"></i> Mark not seen</button> > </div> > >- <fieldset class="action" style="cursor:pointer;"> >+ <div class="btn-toolbar selections-toolbar"> > <a class="SelectAll"><i class="fa fa-check"></i> Select all</a> > | <a class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> > | <a class="HideSeen"><i class="fa fa-minus-square"></i> Hide seen</a> > | <a class="ShowAll"><i class="fa fa-bars"></i> Show all</a> >- </fieldset> >+ </div> > > <table id="notestable"> > <thead> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >index 9cdef6d7bc..252265f5c9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt >@@ -138,7 +138,7 @@ > [% ELSIF op == 'list' %] > [% IF records %] > [% IF recordtype == 'biblio' %] >- <div id="toolbar"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> > | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> > | <a id="selectwithoutitems" href="#">Select without items</a> >@@ -174,7 +174,7 @@ > </table> > <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will delete all selected bibliographic records, attached subscriptions, existing holds, and attached items!</div> > [% ELSE %] >- <div id="toolbar"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> > | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> > | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >index f01d83774f..92b075e68b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >@@ -127,7 +127,7 @@ > [% ELSIF view == 'list' %] > [% IF checkouts.count %] > <form action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" method="post" id="process"> >- <div id="toolbar"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> > | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >index d015745229..aaf1ab9f66 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >@@ -197,7 +197,7 @@ > </div> > </div> > [% IF recordtype == 'biblio' %] >- <div id="toolbar"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> > | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> > </div> >@@ -225,7 +225,7 @@ > </table> <!-- /#biblios --> > <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected biblios!</div> > [% ELSE %] >- <div id="toolbar"> >+ <div class="btn-toolbar selections-toolbar"> > <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> > | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >index 91d3f803ad..fc666cead9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt >@@ -201,7 +201,7 @@ > <form name="f" action="modborrowers.pl" method="post"> > <input type="hidden" name="op" value="do" /> > [% IF ( borrowers ) %] >- <div id="toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a></div> >+ <div class="btn-toolbar selections-toolbar"><a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a></div> > [% END %] > [% END %] > [% IF borrowers %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt >index 75c1427a00..25577c63df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/problem-reports.tt >@@ -63,14 +63,14 @@ > <button type="submit" class="btn btn-default marknew" name="mark_selected-new" value="new" disabled="disabled"><i class="fa fa-star"></i> Mark new</button> > </div> > >- <fieldset class="action" style="cursor:pointer;"> >+ <div class="btn-toolbar selections-toolbar"> > <a class="SelectAll"><i class="fa fa-check"></i> Select all</a> > | <a class="ClearAll"><i class="fa fa-remove"></i> Clear all</a> > | <a class="HideViewed"><i class="fa fa-minus-square"></i> Hide viewed</a> > | <a class="HideClosed"><i class="fa fa-minus-square"></i> Hide closed</a> > | <a class="HideNew"><i class="fa fa-minus-square"></i> Hide new</a> > | <a class="ShowAll"><i class="fa fa-bars"></i> Show all</a> >- </fieldset> >+ </div> > > <table id="problemreportstable"> > <thead> >-- >2.20.1
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 32109
:
143177
|
143178
|
143374
|
143837
|
143858
|
143890
| 143957