From b36b76d201845ee70d455b351360d13a8f19ce8a Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 13 Feb 2020 04:24:08 +0000 Subject: [PATCH] Bug 6508: (follow-up) Change layout of price and hide tab if no fines With this patch, the tab will not show if there are no fines. I've also changed how the fines look in the tab header to look more like the OPAC fines tab. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index ed7b78a0f5..1523f80fa0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -702,8 +702,8 @@ [% relatives_issues_count | html %] Relatives' checkouts [% END %] -
  • - [% fines | $Price %] Fines & Charges +
  • + Fines & Charges ([% fines | $Price %])
  • [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
  • @@ -891,6 +891,11 @@ columns_settings_issues_table = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) | $raw %] $(document).ready(function() { + $("#finestab").hide(); + [% IF fines %] + $("#finestab").show(); + [% END %] + if ( $('#clubs-tab').length ) { $('#clubs-tab-link').on('click', function() { $('#clubs-tab').text(_("Loading...")); -- 2.39.2