Bug 30806: Migrate to patron-title in member-flags

This patch updates the member-flags template to use the patron-title.inc
include wherever patron names are referenced.

Test plan
1) Navigate to a patron and click through to edit their permissions
2) Note how the patron name displays in the title, breadcrump and
   headings
3) Apply the patch and reload the page
4) Confirm the patron name still appears in each location and is
   consistently formatted and linked as you would expect

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 8b460db131)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2022-05-19 12:34:01 +01:00 committed by Lucas Gass
parent ce7871c3ac
commit bc143d2b87
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
[% PROCESS 'permissions.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
Set permissions for [% patron.surname | html %], [% patron.firstname | html %] &rsaquo; Patrons &rsaquo; Koha
Set permissions for [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo; Patrons &rsaquo; Koha
</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -24,7 +24,7 @@
</li>
<li>
<a href="#" aria-current="page">
Set permissions for [% patron.surname | html %], [% patron.firstname | html %]
Set permissions for [% INCLUDE 'patron-title.inc' %]
</a>
</li>
</ol>
@ -41,7 +41,7 @@
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
<input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
<input type="hidden" name="newflags" value="1" />
<h1>Set permissions for [% patron.surname | html %], [% patron.firstname | html %]</h1>
<h1>Set permissions for [% INCLUDE 'patron-title.inc' no_html = 1 %]</h1>
<div id="permissionstree">
<div id="permissions_toolbar" class="btn-toolbar">