From 547fab47b342bd0d517880c70de840345f049615 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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.:
A standard Bootstrap danger alert with an example link.
A standard Bootstrap warning alert with an example link.
A standard Bootstrap info alert with an example link.
A Koha error alert with an example link.
A Koha alert alert with an example link.
A Koha info alert with an example link.
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 %] -
+
[% SWITCH m.code %] [% CASE 'no_email' %] This vendor has no contact selected for sending orders to or is missing an e-mail address. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this issue. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this authorized value. Perhaps the value already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this authority type. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this framework. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this library. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'success_on_insert' %] Cash register added successfully. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this patron category. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this city. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update_source' %] An error occurred when updating this classification source. Check the logs for details. 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 %] -
+
[% SWITCH m.code %] [% CASE 'success_on_saving' %] Credit type saved successfully. 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 %] -
+
[% SWITCH m.code %] [% CASE %] [% m.code | html %] 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this currency. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'success_on_saving' %] Debit type saved successfully. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this desk. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred trying to open the identity provider domain for editing. The passed ID is invalid. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred trying to open the identity provider for editing. The passed ID is invalid. 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 @@
[% FOREACH m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'success_on_saving' %] Batch status saved successfully. 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 @@
[% END %] [% FOREACH m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this item type. Perhaps the value already exists. 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 @@

Record overlay rules

[% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'invalid_tag_regexp' %] Invalid regular expression "[% m.tag | html %]". 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred trying to open the server for editing. The passed ID is invalid. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this patron category. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'not_enabled' %] The curbside pickup feature is not enabled for this library. 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 %] -
+
[% SWITCH m.code %] [% CASE 'letter_enqueued' %] The notice has been correctly enqueued. 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 @@

Housebound details for [% INCLUDE 'patron-title.inc' %]

[% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'error_on_profile_store' %] An error occurred whilst updating this housebound profile 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 %] -
+
[%- SWITCH message.code -%] [%- CASE 'limits' %]

Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits

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 %] -
+
[% SWITCH m.code %] [% CASE 'biblio_exists' %] A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message. @@ -681,7 +681,7 @@ [% END %] [% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'already_exists' %] The suggestion has not been added. A suggestion with this title already exists (suggestion #[% m.id | html %]) 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this content. Perhaps it already exists. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this CSV profile. Perhaps it already exists. 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 @@

Export data

[% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'invalid_mimetype' %]The file used does not have a valid format. Only csv and txt are allowed. [% 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 @@

Preview notice template

[% FOR m IN messages %] [%# FIXME The message block does not appear at the top of the modal! %] -
+
[% SWITCH m.code %] [% CASE 'no_data_for_preview' %]You did not specify data for preview. [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code | html %]'. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this quote. Perhaps it already exists. 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 @@ [% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'unauthorized' %] You do not have permission to view this list. 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 %] -
+
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this list. -- 2.39.2