Bugzilla – Attachment 170968 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.61 KB, created by
Jonathan Druart
on 2024-09-03 10:03:23 UTC
(
hide
)
Description:
Bug 37732: Update templates to use Bootstrap styles when alert class comes from the perl script
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-09-03 10:03:23 UTC
Size:
29.61 KB
patch
obsolete
>From 686173d83824ff84e850ba36f52d802797bb1fe0 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 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../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 2bc5c5db27a..b708bd36bf7 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 f5e2004eefc..a9f2d15681f 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 4860d699349..db94dc9448e 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 fb7aae76318..2bfb4f3f7f1 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 6474e73e6c0..7f1671a3aed 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 f3dd83be9e6..7e471c48c68 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 ad58c353468..af6062a9e9d 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 073e1407f2f..b81a5067e56 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 9c9437c56cb..16d8c875420 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 d88b56ef1fe..f98e5415a98 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 0bbb5c09ad9..6d61effe87a 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 481840df1f5..f36b8fa3bac 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 8c557f7fdd8..6fb1bb89c22 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 6eccd23962a..07665671b0a 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 cdfbbbd7396..151ef914377 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 86163a8aa1e..782a86fe5be 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 074249b4819..7f2cf0a5c00 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 4e85d463ee5..f3d07e07114 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 14b1fe9fa49..12ea56085f4 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 9387c0c2e4b..88095e1b84a 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 c2d5b2c3e80..087273809c3 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 d788a726c3c..1e530cfd3d0 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 7563c94a0df..48494d573c3 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 f1d1e84efd7..439684bee44 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 cd1c237287b..701aab6dca5 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 eaf4af84efc..4bdfe610921 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 c133f13f432..4033c18630a 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 48c6832a7e8..e342ee6cf08 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 e99cc4d08fe..da14ca5c2bc 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 d16ed051a5c..31bd5ce0047 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 684305518d6..7ab443edbda 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 2378d6dce75..7740d95287a 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 478217531bc..4ff11065bb7 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 c5939c1807f..12df9cff842 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 b45e98237e4..25929c88e82 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.34.1
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