From f9507d3ff493b82cac489ff357638d03380d8943 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 --- .../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 1a57c097f41..112c3ab3ff0 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 3938a85e620..a5515b65ee2 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.43.0