From 7204419b4e71100ad552d42061ef4c069f286075 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 18 Jan 2023 13:12:08 +0000 Subject: [PATCH] Bug 32634: (follow-up) Restructure page headings An error in template logic is preventing the page's h1 from displaying. Rather than fixing this I have changed the h1 to display a generic "Transaction details" h1. The h2 shows the transaction type (credit or debit). The h2 is now inside the .page-section. Signed-off-by: Magnus Enger Checked all the places mentioned in the commit message, and they all have .page-section now. --- .../en/modules/members/accountline-details.tt | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt index 3e4aea526f..067b868dbe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt @@ -63,25 +63,19 @@
-

- [% IF type == 'credit' %] - Details of payment - [% ELSIF type == 'debit' %] - Details of fee - [% END %] -

- [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] +

Transaction details

+ [% IF accountline %] - [% af_values = accountline.additional_field_values %] - [% IF accountline.credit_type_code %] -

Details of credit

- [% ELSIF accountline.debit_type_code %] -

Details of debit

- [% END %]
+ [% af_values = accountline.additional_field_values %] + [% IF accountline.credit_type_code %] +

Details of credit

+ [% ELSIF accountline.debit_type_code %] +

Details of debit

+ [% END %] -- 2.34.1