From 3cd1a60157ea5cf5c4b906b96a8a39ed01292288 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 16 Nov 2016 10:02:34 +0000 Subject: [PATCH] Bug 17700: Add columns setting to fines tables MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: 0) Apply the patch and restart memcached + koha-common services if needed 1) Go to adminitration -> Configure columns and confirm there is new table configuration with id=account-fines in Patrons section available 2) play with table setting to ensure it works as expected 3) go to to boraccount page for some patron with both fines - payed and owed 4) Note there is new button "Columns visibility" in top paginator panel, try to use it 5) Play with the datatable, sort filter and so on Signed-off-by: Radek Å iman Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- admin/columns_settings.yml | 21 +++++++++++++++++++ .../prog/en/modules/members/boraccount.tt | 9 +++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 7ef4d35521..ee73b1e6c4 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -155,6 +155,27 @@ modules: columnname: stocknumber members: + fines: + account-fines: + - + columnname: date + - + columnname: description + - + columnname: note + - + columnname: amount + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: amountoutstanding + cannot_be_toggled: 1 + cannot_be_modified: 1 + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 + member: memberresultst: - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index ca0a804c43..90e8a48c5e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -1,23 +1,26 @@ [% USE Koha %] [% USE KohaDates %] +[% USE ColumnsSettings %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'datatables.inc' %] +[% INCLUDE 'columns_settings.inc' %]