Bug 34412: (follow-up) Clarify page heading, remove unused markup

This patch updates the heading for the "modify" view so that it includes
the name of the preference being modified.

The patch also removes markup related to the "add_validate"
state--a view confirming that a preference has been added--because that
view doesn't exist.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-09-06 10:53:55 +00:00 committed by Tomas Cohen Arazi
parent c46dd36389
commit 767b9a5126
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -12,9 +12,6 @@
[% t("New preference") | html %]
[% END %] &rsaquo;
[% END %]
[% IF ( add_validate ) %]
[% t("Preference added") | html %] &rsaquo;
[% END %]
[% IF ( delete_confirm ) %]
[% tx("Confirm deletion of preference '{searchfield}'", { searchfield = searchfield }) | html %] &rsaquo;
[% END %]
@ -39,7 +36,7 @@
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
[% END %]
[% IF ( add_form || add_validate || delete_confirm || delete_confirmed ) %]
[% IF ( add_form || delete_confirm || delete_confirmed ) %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/systempreferences.pl">Local use system preferences</a>
[% END %]
@ -55,12 +52,6 @@
[% END %]
[% END %]
[% IF ( add_validate ) %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>Data added</span>
[% END %]
[% END %]
[% IF ( delete_confirm ) %]
[% WRAPPER breadcrumb_item %]
<a href="/cgi-bin/koha/admin/systempreferences.pl?op=add_form&amp;searchfield=[% searchfield | uri %]">[% searchfield | html %]</a>
@ -92,7 +83,7 @@
[% IF ( add_form ) %]
<h1>
[% IF ( modify ) %]
Modify a local use system preference
[% tx("Modify preference '{searchfield}'", { searchfield = searchfield }) | html %]
[% ELSE %]
New local use system preference
[% END %]
@ -273,15 +264,7 @@
</form>
[% END %]
[% IF ( add_validate ) %]
<h1>Data recorded</h1>
<form action="[% script_name | html %]" method="post">
<input type="submit" class="btn btn-primary" value="OK" />
</form>
[% END %]
[% IF ( delete_confirm ) %]
<div class="dialog alert">
<h1>Confirm deletion of [% searchfield | html %]?</h1>