Bugzilla – Attachment 154836 Details for
Bug 34408
Inconsistencies in SMTP servers page titles, breadcrumbs, and header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34408: Inconsistencies in SMTP servers page titles, breadcrumbs, and header
Bug-34408-Inconsistencies-in-SMTP-servers-page-tit.patch (text/plain), 4.01 KB, created by
Owen Leonard
on 2023-08-25 16:08:07 UTC
(
hide
)
Description:
Bug 34408: Inconsistencies in SMTP servers page titles, breadcrumbs, and header
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-08-25 16:08:07 UTC
Size:
4.01 KB
patch
obsolete
>From 2d41b8f1c243cf469230ddc8adc0438a9df91790 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 >--- > .../prog/en/modules/admin/smtp_servers.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 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 11cf1b7230..ad8517e2fc 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 %] >- <span>New</span> >+ <span>New SMTP server</span> > [% END %] > > [% ELSIF op == 'edit_form' %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Edit</span> >+ [% tx("Modify SMTP server '{smtp_server}'", { smtp_server = smtp_server.name }) | html %] > [% END %] > > [% ELSE %] >@@ -145,7 +145,7 @@ > [% END %] > > [% IF op == 'edit_form' %] >- <h1>Edit SMTP server</h1> >+ <h1>[% tx("Modify SMTP server '{smtp_server}'", { smtp_server = smtp_server.name }) | html %]</h1> > <form action="/cgi-bin/koha/admin/smtp_servers.pl" id="edit_save" name="edit_save" class="validated" method="post"> > <input type="hidden" name="op" value="edit_save" /> > <input type="hidden" name="smtp_server_id" value="[%- smtp_server.id | html -%]" /> >@@ -257,7 +257,7 @@ > <h1>SMTP servers</h1> > > <div class="dialog message" id="default_server_message"> >- <p>Default configuration:</p> >+ <h2>Default configuration</h2> > > <ul> > <li><strong>Host</strong>: [%- default_config.host | html -%]</li> >@@ -427,7 +427,7 @@ > { > "data": function( row, type, val, meta ) { > var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&smtp_server_id='+ encodeURIComponent(row.smtp_server_id) +'"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n"; >- result += '<a class="btn btn-default btn-xs delete_server" role="button" href="#" data-toggle="modal" data-target="#delete_confirm_modal" data-smtp-server-id="'+ encodeURIComponent(row.smtp_server_id) +'" data-smtp-server-name="'+ encodeURIComponent(row.name.escapeHtml()) +'"><i class="fa fa-trash-can" aria-hidden="true"></i>'+_("Delete")+'</a>'; >+ result += '<a class="btn btn-default btn-xs delete_server" role="button" href="#" data-toggle="modal" data-target="#delete_confirm_modal" data-smtp-server-id="'+ encodeURIComponent(row.smtp_server_id) +'" data-smtp-server-name="'+ encodeURIComponent(row.name.escapeHtml()) +'"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Delete")+'</a>'; > return result; > }, > "searchable": false, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34408
:
154836
|
154847
|
154875
|
155087