From 20586899d560f0f6106df423fd6ec729d8a0df9b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 25 Aug 2023 15:59:12 +0000 Subject: [PATCH] Bug 34408: Inconsistencies in SMTP servers page titles, breadcrumbs, and header This patch updates the SMTP servers administration page in order to make the page title, breadcrumb navigation, and page headings consistent with each other. The patch also adds a space between the delete button icon and the text. To test apply the patch and go to Administration -> SMTP servers. - Confirm that the page header, breadcrumb navigation, and page headings are consistent on each view of the page: - Main page - New SMTP server - Edit SMTP server Signed-off-by: Pedro Amorim Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/smtp_servers.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt index 1c69265791..beefae3859 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt @@ -7,7 +7,7 @@ [% IF op == 'add_form' %] [% t("New SMTP server") | html %] › [% ELSIF op == 'edit_form' %] - [% t("Edit SMTP server") | html %] › + [% tx("Modify SMTP server '{smtp_server}'", { smtp_server = smtp_server.name }) | html %] › [% END %] [% t("SMTP servers") | html %] › [% t("Administration") | html %] › @@ -35,12 +35,12 @@ [% IF op == 'add_form' %] [% WRAPPER breadcrumb_item bc_active= 1 %] - New + New SMTP server [% END %] [% ELSIF op == 'edit_form' %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Edit + [% tx("Modify SMTP server '{smtp_server}'", { smtp_server = smtp_server.name }) | html %] [% END %] [% ELSE %] @@ -145,10 +145,12 @@ [% END %] [% IF op == 'edit_form' %] -

Edit SMTP server

+

[% tx("Modify SMTP server '{smtp_server}'", { smtp_server = smtp_server.name }) | html %]

+ [% UNLESS smtp_server.is_default %] [% PROCESS default_server_info %] [% END %] +
@@ -407,7 +409,7 @@ { "data": function( row, type, val, meta ) { var result = ' '+_("Edit")+''+"\n"; - result += ''+_("Delete")+''; + result += ' '+_("Delete")+''; return result; }, "searchable": false, -- 2.39.5