From b34d1c6c3c87aab6d59963b145ee455ed8d38d00 Mon Sep 17 00:00:00 2001 From: Martin Renvoize <martin.renvoize@ptfs-europe.com> Date: Tue, 18 Oct 2022 15:01:02 +0100 Subject: [PATCH] Bug 31095: (QA follow-up) Fix after rebase Signed-off-by: Nick Clemens <nick@bywatersolutions.com> --- .../prog/en/modules/admin/restrictions.tt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt index b179a158fa..0a2855af88 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt @@ -1,10 +1,11 @@ [% USE raw %] [% USE Asset %] [% USE Koha %] +[% PROCESS 'restriction-types.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description %]'[% ELSE %]New restriction[% END %][% END %] -[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description %]'[% END %] › Patron restrictions › Administration › Koha +<title>[% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]'[% ELSE %]New restriction[% END %][% END %] +[% IF op == 'delete_confirm' %]Confirm deletion of restriction '[% PROCESS restriction_type_description restriction_type=restriction %]'[% END %] › Patron restrictions › Administration › Koha </title> [% INCLUDE 'doc-head-close.inc' %] </head> @@ -37,7 +38,7 @@ [% IF restriction %] <li> <a href="#" aria-current="page"> - Modify restriction '[% PROCESS restriction_type_description %]' + Modify restriction '[% PROCESS restriction_type_description restriction_type=restriction %]' </a> </li> [% ELSE %] @@ -68,7 +69,7 @@ <main> [% FOR m IN messages %] - <div class="dialog [% m.type | html %]"> + <div class="dialog [% m | html %]"> [% SWITCH m.code %] [% CASE 'add_success' %] Type added @@ -95,7 +96,7 @@ <input type="hidden" name="op" value="add_validate" /> <input type="hidden" name="checked" value="0" /> [% IF restriction %] - <h1>Modify restriction [% PROCESS restriction_type_description %]</h1> + <h1>Modify restriction [% PROCESS restriction_type_description restriction_type=restriction %]</h1> <input type="hidden" name="is_a_modif" value="1" /> [% ELSE %] <h1>New restriction</h1> @@ -141,7 +142,7 @@ Confirm restriction deletion </legend> - <p>Are you sure you want to delete "[% PROCESS restriction_type_description %]"?</p> + <p>Are you sure you want to delete "[% PROCESS restriction_type_description restriction_type=restriction %]"?</p> <fieldset class="action"> <input type="hidden" name="op" value="delete_confirmed" /> @@ -181,7 +182,7 @@ [% restriction.code | html %] </td> <td> - [% PROCESS restriction_type_description %] + [% PROCESS restriction_type_description restriction_type=restriction %] </td> <td> [% IF restriction.is_default %]Yes[% END %] -- 2.20.1