Bugzilla – Attachment 170913 Details for
Bug 37732
Update templates to use Bootstrap styles when alert class comes from the perl script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37732: Update templates to use Bootstrap styles when alert class comes from the perl script
Bug-37732-Update-templates-to-use-Bootstrap-styles.patch (text/plain), 29.47 KB, created by
Owen Leonard
on 2024-08-30 14:35:35 UTC
(
hide
)
Description:
Bug 37732: Update templates to use Bootstrap styles when alert class comes from the perl script
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-08-30 14:35:35 UTC
Size:
29.47 KB
patch
obsolete
>From 547fab47b342bd0d517880c70de840345f049615 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 30 Aug 2024 11:46:34 +0000 >Subject: [PATCH] Bug 37732: Update templates to use Bootstrap styles when > alert class comes from the perl script > >Many pages can have alerts that get their style from a variable passed >by the script, e.g.: > >push @messages, { type => 'message', code => 'success_on_update' }; > >Rather than change these to match Bootstrap 5 styles, I propose we add a >copy of the existing Bootstrap style using the existing vocabulary: > >message -> info >alert -> warning >error -> danger > >To test, apply the patch and rebuild CSS for the staff interface and >OPAC: (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface) > >- Clear your browser cache if necessary. >- Navigate to pages which have been updated by this patch. Many pages > will implement this kind of alert after saving an edit, especially > administration pages, e.g. > > Administration -> Libraries -> Edit library -> Save. > >- You can test the various alert classes by adding this HTML to > IntranetMainUserBlock and OpacMainUserBlock and viewing the staff > interface and OPAC main pages.: > ><div class="alert alert-danger">A standard Bootstrap danger alert with > <a href="#" class="alert-link">an example link</a>.</div> ><div class="alert alert-warning">A standard Bootstrap warning alert with > <a href="#" class="alert-link">an example link</a>.</div> ><div class="alert alert-info">A standard Bootstrap info alert with > <a href="#" class="alert-link">an example link</a>.</div> ><div class="alert alert-error">A Koha error alert with > <a href="#" class="alert-link">an example link</a>.</div> ><div class="alert alert-alert">A Koha alert alert with > <a href="#" class="alert-link">an example link</a>.</div> ><div class="alert alert-message">A Koha info alert with > <a href="#" class="alert-link">an example link</a>.</div> > >Sponsored-by: Athens County Public Libraries >--- > .../prog/css/src/staff-global.scss | 21 +++++++++++++++++++ > .../prog/en/modules/acqui/basket.tt | 2 +- > .../prog/en/modules/acqui/vendor_issues.tt | 2 +- > .../en/modules/admin/authorised_values.tt | 2 +- > .../prog/en/modules/admin/authtypes.tt | 2 +- > .../prog/en/modules/admin/biblio_framework.tt | 2 +- > .../prog/en/modules/admin/branches.tt | 2 +- > .../prog/en/modules/admin/cash_registers.tt | 2 +- > .../prog/en/modules/admin/categories.tt | 2 +- > .../prog/en/modules/admin/cities.tt | 2 +- > .../prog/en/modules/admin/classsources.tt | 2 +- > .../prog/en/modules/admin/credit_types.tt | 2 +- > .../prog/en/modules/admin/curbside_pickup.tt | 2 +- > .../prog/en/modules/admin/currency.tt | 2 +- > .../prog/en/modules/admin/debit_types.tt | 2 +- > .../prog/en/modules/admin/desks.tt | 2 +- > .../admin/identity_provider_domains.tt | 2 +- > .../en/modules/admin/identity_providers.tt | 2 +- > .../en/modules/admin/ill_batch_statuses.tt | 2 +- > .../prog/en/modules/admin/itemtypes.tt | 2 +- > .../en/modules/admin/marc-overlay-rules.tt | 2 +- > .../prog/en/modules/admin/smtp_servers.tt | 2 +- > .../prog/en/modules/admin/usage_statistics.tt | 2 +- > .../prog/en/modules/circ/curbside_pickups.tt | 2 +- > .../prog/en/modules/circ/pendingreserves.tt | 2 +- > .../prog/en/modules/members/housebound.tt | 2 +- > .../transferCollection.tt | 2 +- > .../prog/en/modules/suggestion/suggestion.tt | 4 ++-- > .../en/modules/tools/additional-contents.tt | 2 +- > .../prog/en/modules/tools/csv-profiles.tt | 2 +- > .../prog/en/modules/tools/export.tt | 2 +- > .../prog/en/modules/tools/preview_letter.tt | 2 +- > .../prog/en/modules/tools/quotes.tt | 2 +- > .../modules/virtualshelves/downloadshelf.tt | 2 +- > .../prog/en/modules/virtualshelves/shelves.tt | 2 +- > 35 files changed, 56 insertions(+), 35 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 53d1e6fc4f..9ffac81b5b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -273,6 +273,27 @@ a { > color: $green-text-color; > } > >+.alert-message { >+ --bs-alert-color: var( --bs-info-text-emphasis ); >+ --bs-alert-bg: var( --bs-info-bg-subtle ); >+ --bs-alert-border-color: var( --bs-info-border-subtle ); >+ --bs-alert-link-color: var( --bs-info-text-emphasis ); >+} >+ >+.alert-alert { >+ --bs-alert-color: var( --bs-warning-text-emphasis ); >+ --bs-alert-bg: var( --bs-warning-bg-subtle ); >+ --bs-alert-border-color: var( --bs-warning-border-subtle ); >+ --bs-alert-link-color: var( --bs-warning-text-emphasis ); >+} >+ >+.alert-error { >+ --bs-alert-color: var( --bs-danger-text-emphasis ); >+ --bs-alert-bg: var( --bs-danger-bg-subtle ); >+ --bs-alert-border-color: var( --bs-danger-border-subtle ); >+ --bs-alert-link-color: var( --bs-danger-text-emphasis ); >+} >+ > aside { > h5 { > font-size: 100%; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >index f5e2004eef..a9f2d15681 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt >@@ -242,7 +242,7 @@ > [% ELSE # IF ( delete_confirmed ) %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'no_email' %] > <span>This vendor has no contact selected for sending orders to or is missing an e-mail address.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt >index 4860d69934..db94dc9448 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt >@@ -65,7 +65,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this issue.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 068c932e07..33437ffc2f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -236,7 +236,7 @@ > [% END %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this authorized value. Perhaps the value already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt >index 6474e73e6c..7f1671a3ae 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt >@@ -82,7 +82,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this authority type. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt >index f3dd83be9e..7e471c48c6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt >@@ -76,7 +76,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this framework. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index ad58c35346..af6062a9e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -80,7 +80,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this library. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >index 073e1407f2..b81a5067e5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >@@ -70,7 +70,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'success_on_insert' %] > <span>Cash register added successfully.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index 9c9437c56c..16d8c87542 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -92,7 +92,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this patron category. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >index d88b56ef1f..f98e5415a9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >@@ -70,7 +70,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this city. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt >index 0bbb5c09ad..6d61effe87 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt >@@ -97,7 +97,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update_source' %] > <span>An error occurred when updating this classification source. Check the logs for details.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >index 481840df1f..f36b8fa3ba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt >@@ -60,7 +60,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'success_on_saving' %] > <span>Credit type saved successfully.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt >index 8c557f7fdd..6fb1bb89c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt >@@ -47,7 +47,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE %] > <span>[% m.code | html %]</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >index 7098e8e3b9..9f3a81ae8d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >@@ -77,7 +77,7 @@ > [% END %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this currency. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt >index cdfbbbd739..151ef91437 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt >@@ -59,7 +59,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'success_on_saving' %] > <span>Debit type saved successfully.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >index 86163a8aa1..782a86fe5b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt >@@ -69,7 +69,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this desk. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt >index 074249b481..7f2cf0a5c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt >@@ -64,7 +64,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]" id="identity_provider_domain_action_result_dialog"> >+ <div class="alert alert-[% m.type | html %]" id="identity_provider_domain_action_result_dialog"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred trying to open the identity provider domain for editing. The passed ID is invalid.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt >index 8abf861c74..2868166dea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt >@@ -59,7 +59,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]" id="identity_provider_action_result_dialog"> >+ <div class="alert alert-[% m.type | html %]" id="identity_provider_action_result_dialog"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred trying to open the identity provider for editing. The passed ID is invalid.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >index 14b1fe9fa4..12ea56085f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt >@@ -50,7 +50,7 @@ > <main> > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'success_on_saving' %] > <span>Batch status saved successfully.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 81f6c319dc..1c9194800f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -118,7 +118,7 @@ > </div>[% END %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this item type. Perhaps the value already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >index c2d5b2c3e8..087273809c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >@@ -48,7 +48,7 @@ > <h1>Record overlay rules</h1> > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'invalid_tag_regexp' %] > <span>Invalid regular expression "[% m.tag | html %]".</span> >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 d788a726c3..1e530cfd3d 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 >@@ -58,7 +58,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]" id="smtp_action_result_dialog"> >+ <div class="alert alert-[% m.type | html %]" id="smtp_action_result_dialog"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred trying to open the server for editing. The passed ID is invalid.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >index 7563c94a0d..48494d573c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt >@@ -38,7 +38,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this patron category. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >index 011b5b6a22..caeb43916b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >@@ -104,7 +104,7 @@ > [% END %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'not_enabled' %] > <span>The curbside pickup feature is not enabled for this library.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >index 55578ee95c..93fd5ce2aa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt >@@ -40,7 +40,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'letter_enqueued' %] > <span>The notice has been correctly enqueued.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >index 51e5619ae6..8b6d75348b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >@@ -89,7 +89,7 @@ > <h1>Housebound details for [% INCLUDE 'patron-title.inc' %]</h1> > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_profile_store' %] > <span>An error occurred whilst updating this housebound profile</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >index c133f13f43..4033c18630 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt >@@ -45,7 +45,7 @@ > > [% IF ( messages ) %] > [% FOREACH message IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [%- SWITCH message.code -%] > [%- CASE 'limits' %] > <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index 48c6832a7e..e342ee6cf0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -336,7 +336,7 @@ > > [% IF op == 'save' %] > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'biblio_exists' %] > <span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span> >@@ -681,7 +681,7 @@ > [% END %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'already_exists' %] > <span>The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index e99cc4d08f..da14ca5c2b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -125,7 +125,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this content. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >index d16ed051a5..31bd5ce004 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt >@@ -64,7 +64,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this CSV profile. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >index 684305518d..7ab443edbd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >@@ -42,7 +42,7 @@ > <h1>Export data</h1> > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'invalid_mimetype' %]<span>The file used does not have a valid format. Only csv and txt are allowed.</span> > [% CASE %][% m.code | html %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >index 2378d6dce7..7740d95287 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt >@@ -15,7 +15,7 @@ > <h1>Preview notice template</h1> > [% FOR m IN messages %] > [%# FIXME The message block does not appear at the top of the modal! %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'no_data_for_preview' %]<span>You did not specify data for preview.</span> > [% CASE 'preview_not_available' %]<span>Preview is not available for letters '[% m.letter_code | html %]'.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt >index 478217531b..4ff11065bb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt >@@ -54,7 +54,7 @@ > [% INCLUDE 'messages.inc' %] > > [% FOREACH m IN messages %] >- <div class="dialog [% m.type | html %]" id="quote_action_result_dialog"> >+ <div class="alert alert-[% m.type | html %]" id="quote_action_result_dialog"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this quote. Perhaps it already exists.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt >index c5939c1807..12df9cff84 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt >@@ -11,7 +11,7 @@ > <body id="lists_downloadshelf" class="lists" style="padding:1em;"> > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'unauthorized' %] > <span>You do not have permission to view this list.</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index e2ed796df6..27df34e80d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -141,7 +141,7 @@ > [% IF op != 'transfer' %][% INCLUDE 'virtualshelves-toolbar.inc' %][% END %] > > [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >+ <div class="alert alert-[% m.type | html %]"> > [% SWITCH m.code %] > [% CASE 'error_on_update' %] > <span>An error occurred when updating this list.</span> >-- >2.39.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 37732
:
170913
|
170968
|
170969
|
170970
|
170978
|
170982