Bugzilla – Attachment 118834 Details for
Bug 28034
Add DataTables to lists of clubs in "Clubs" tabs on patron account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28034: Make club enrollment tables in to DataTables
Bug-28034-Make-club-enrollment-tables-in-to-DataTa.patch (text/plain), 1.82 KB, created by
Lucas Gass (lukeg)
on 2021-03-25 18:05:11 UTC
(
hide
)
Description:
Bug 28034: Make club enrollment tables in to DataTables
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2021-03-25 18:05:11 UTC
Size:
1.82 KB
patch
obsolete
>From 48ed7ba640315079189515f16e71e3ce011a095e Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 25 Mar 2021 17:58:04 +0000 >Subject: [PATCH] Bug 28034: Make club enrollment tables in to DataTables > >To test: >-Add some clubs >-Go to a patron record and enroll them in some clubs but not in others. >-There should be two table under the clubs tab, Clubs currently enrolled in and Clubs not enrolled in >-Neither are DataTables >-Apply patch >-With the same patron check the clubs tab, they should be datatables now >-Make sure all the controls, pagination works good > >https://bugs.koha-community.org/show_bug.cgi?id=28033 >--- > .../intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >index b77ab78a2d..d4cbef7d0d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >@@ -3,7 +3,7 @@ > [% IF enrollments %] > <h4>Clubs currently enrolled in</h4> > >- <table> >+ <table id="table_clubenrollments"> > <thead> > <tr> > <th>Name</th> >@@ -36,7 +36,7 @@ > > <h4>Clubs not enrolled in</h4> > >- <table> >+ <table id="table_clubnoenrollmemnts"> > <thead> > <tr> > <th>Name</th> >@@ -63,6 +63,15 @@ > </table> > [% END %] > >+<script> >+$("#table_clubnoenrollmemnts, #table_clubenrollments").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "columnDefs": [ >+ { 'sortable': false, 'targets': [ 'NoSort' ] } >+ ], >+ paginate: true >+})); >+</script> >+ > [% IF CAN_user_clubs_enroll %] > <script> > function loadEnrollmentForm( id ) { >-- >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 28034
:
118834
|
118864
|
118868
|
118908