From 6e6167f3e14337402d7ac219a7c521d49ec79015 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 Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- .../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 04b3401ebb..7482939200 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -46,13 +46,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 05e68770d1..e00506ab50 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -539,6 +539,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.39.5