Browse Source

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>
22.11.x
Martin Renvoize 2 years ago
committed by Tomas Cohen Arazi
parent
commit
8b460db131
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt

6
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt

@ -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">

Loading…
Cancel
Save