Bugzilla – Attachment 116864 Details for
Bug 27653
Do not include 'caption' row in print/copy export of datatables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27653: [Alternate][Alternate][Alternate] Use div instead of caption for controls
Bug-27653-AlternateAlternateAlternate-Use-div-inst.patch (text/plain), 4.05 KB, created by
Katrin Fischer
on 2021-02-14 15:06:18 UTC
(
hide
)
Description:
Bug 27653: [Alternate][Alternate][Alternate] Use div instead of caption for controls
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-02-14 15:06:18 UTC
Size:
4.05 KB
patch
obsolete
>From 41b662f6704ffc54b896891db508872109bf0fdd Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 9 Feb 2021 19:31:33 +0000 >Subject: [PATCH] Bug 27653: [Alternate][Alternate][Alternate] Use div instead > of caption for controls > >The funds and acquisitions home page tables use captions for additional >table controls. These are more appropriate as "toolbar" divs. > >This patch converts the <caption> to <div class="toolbar btn-toolbar"> >and moves it just above <table> in the markup to keep it valid. > >To test: >1 - View the tables on acquisitions home and budgets views >2 - Note the 'Expand all...' control row >3 - Apply patch >4 - The row remains, but is below the table controls >5 - The row is not included when printing or copying the table > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/acqui/acqui-home.tt | 29 +++++++++++----------- > .../prog/en/modules/admin/aqbudgets.tt | 17 +++++++------ > 2 files changed, 25 insertions(+), 21 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >index 1454470d17..5195314c8e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >@@ -78,21 +78,22 @@ > <h3>All available funds</h3> > > <div id="BudgetsAndFunds"> >- <table id="accounts"> >- <caption> >- <span class="actions"><a href="#" id="expand_all">Expand all</a> >- | <a href="#" id="collapse_all">Collapse all</a> >- | <a href="#" id="hide_inactive">Hide inactive budgets</a> >- | <a href="#" id="show_inactive">Show inactive budgets</a> >- | <select id="library-filter"> >- <option value="">Filter by library</option> >- [% FOREACH b IN Branches.all %] >- <option value="[% b.branchname | html %]">[% b.branchname | html %]</option> >- [% END %] >- </select> >- </span> >+ <div class="toolbar btn-toolbar"> >+ <span class="actions"> >+ <a href="#" id="expand_all">Expand all</a> | >+ <a href="#" id="collapse_all">Collapse all</a> | >+ <a href="#" id="hide_inactive">Hide inactive budgets</a> | >+ <a href="#" id="show_inactive">Show inactive budgets</a> | >+ <select id="library-filter"> >+ <option value="">Filter by library</option> >+ [% FOREACH b IN Branches.all %] >+ <option value="[% b.branchname | html %]">[% b.branchname | html %]</option> >+ [% END %] >+ </select> >+ </span> >+ </div> > >- </caption> >+ <table id="accounts"> > > <thead> > <tr> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index a52cda66f2..3fb5727045 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -51,15 +51,18 @@ > > [% IF budgets %] > >-<table id="budgeth" class="group"> > [% UNLESS budget_period_id %] >- <caption> >- <span class="actions"><a href="#" id="expand_all">Expand all</a> >- | <a href="#" id="collapse_all">Collapse all</a> >- | <a href="#" id="hide_inactive">Hide inactive budgets</a> >- | <a href="#" id="show_inactive">Show inactive budgets</a></span> >- </caption> >+ <div class="toolbar btn-toolbar"> >+ <span class="actions"> >+ <a href="#" id="expand_all">Expand all</a> | >+ <a href="#" id="collapse_all">Collapse all</a> | >+ <a href="#" id="hide_inactive">Hide inactive budgets</a> | >+ <a href="#" id="show_inactive">Show inactive budgets</a> >+ </span> >+ </div> > [% END %] >+ >+<table id="budgeth" class="group"> > <thead> > <tr> > <th>Active</th> >-- >2.11.0
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 27653
:
116495
|
116530
|
116531
|
116576
|
116611
|
116614
|
116615
|
116690
|
116841
| 116864