From 546817f74109a99fb699675b7059285c1b9525b2 Mon Sep 17 00:00:00 2001 From: Stefan Berndtsson Date: Fri, 3 Nov 2023 10:14:39 +0100 Subject: [PATCH] Bug 36440: Add edit buttons for patron flags in attention box Add edit buttons for patron flags in attention box and show flag status in detail view To test: 1) Go to patron details for a patron with address in doubt and card lost flags set and verify these are highlighted under "Library use" and the patron messages has edit buttons that links to the modfiy patron page. Sponsored-by: Gothenburg University Signed-off-by: Lucas Gass --- .../prog/en/includes/patron_messages.inc | 4 ++-- .../prog/en/modules/members/moremember.tt | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc index 1a57c097f4..69fed95621 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -45,13 +45,13 @@ [% IF ( patron.gonenoaddress ) %]
  • - Address: Patron's address flagged as in doubt + Address: Patron's address flagged as in doubt Edit
  • [% END %] [% IF ( patron.lost ) %]
  • - Lost: Patron's card is flagged as lost + Lost: Patron's card is flagged as lost Edit
  • [% END %] 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 97a299d767..40936d763e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -521,6 +521,26 @@ [% translated_language | html %] [% END %] + +
  • + [% IF patron.gonenoaddress %] + Address in doubt: + Yes + [% ELSE %] + Address in doubt: + No + [% END %] +
  • + +
  • + [% IF patron.lost %] + Card lost: + Yes + [% ELSE %] + Card lost: + No + [% END %] +
  • [% # /div.rows %] [% # /div#patron-library-details %] -- 2.30.2