Bug 34573: (follow-up) Add better logic for add/update title and headers

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 865ca8b1fc)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2024-06-06 12:54:18 +00:00 committed by Lucas Gass
parent 17069dfb1e
commit e7afd54cc8
1 changed files with 7 additions and 3 deletions

View File

@ -147,7 +147,11 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% IF ( enter ) %]
[% tx("Modify vendor '{vendor}'", { vendor = name }) | html %]
[% IF ( booksellerid ) %]
[% tx("Modify vendor '{vendor}'", { vendor = name }) | html %]
[% ELSE %]
[% t("Add vendor") | html %]
[% END %]
[% ELSE %]
[% tx("Vendor '{vendor}'", { vendor = name }) | html %]
[% END %] &rsaquo;
@ -173,7 +177,7 @@
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Modify vendor '[% name | html %]'</span>
[% tx("Modify vendor '{vendor}'", { vendor = name }) | html %]
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
@ -196,7 +200,7 @@
[% IF ( enter ) %]
[% IF ( booksellerid ) %]
<h1>Modify vendor '[% name | html %]'</h1>
<h1>[% tx("Modify vendor '{vendor}'", { vendor = name }) | html %]</h1>
[% ELSE %]
<h1>Add vendor</h1>
[% END %]