Bugzilla – Attachment 170982 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: (follow-up) Fix some missed instances
Bug-37732-follow-up-Fix-some-missed-instances.patch (text/plain), 5.33 KB, created by
Jonathan Druart
on 2024-09-03 12:39:25 UTC
(
hide
)
Description:
Bug 37732: (follow-up) Fix some missed instances
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-09-03 12:39:25 UTC
Size:
5.33 KB
patch
obsolete
>From c0fe3f4626e873ef822a6f20f8cd6897dee55972 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 3 Sep 2024 11:26:38 +0000 >Subject: [PATCH] Bug 37732: (follow-up) Fix some missed instances > >This patch fixes a few templates which I had missed, including some >which simply had the wrong classes (instead of getting the wrong class >from the perl script). > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt | 2 +- > 5 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index cf7259975c6..ae6da078547 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -81,7 +81,7 @@ > [% IF ( barcode_not_unique ) %]<div class="alert alert-warning"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %] > [% IF ( no_next_barcode ) %]<div class="alert alert-warning"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %] > [% IF ( book_on_loan ) %]<div class="alert alert-warning"><strong>Cannot delete</strong>: item is checked out.</div>[% END %] >-[% IF ( book_reserved ) %]<div class="dialogalert"><strong>Cannot delete</strong>: item has a waiting hold.</div>[% END %] >+[% IF ( book_reserved ) %]<div class="alert alert-warning"><strong>Cannot delete</strong>: item has a waiting hold.</div>[% END %] > [% IF ( not_same_branch ) %]<div class="alert alert-warning"><strong>Cannot delete</strong>: The items do not belong to your library.</div>[% END %] > [% IF ( linked_analytics ) %]<div class="alert alert-warning"><strong>Cannot delete</strong>: item has linked <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]&analyze=1">analytics.</a>.</div>[% END %] > [% IF last_item_for_hold %]<div class="alert alert-warning"><strong>Cannot delete</strong>: Last item for bibliographic record with biblio-level hold on it.</div>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index 38a9edf1740..f8e5a90f1cf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -54,7 +54,7 @@ > </div> > [% END %] > [% IF receipt_sent == '-1' %] >- <div id="receipt_sent_dialog" class="dialog warning"> >+ <div id="receipt_sent_dialog" class="alert alert-warning"> > Receipt not sent, failed to find template. > </div> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >index 70300e88fe7..94a82d52ad2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >@@ -44,7 +44,7 @@ > > <h1>Discharge</h1> > [% FOR message IN messages %] >- <div class="dialog [% message.type | html %]"> >+ <div class="alert alert-[% message.type | html %]"> > [% IF message.code == "unable_to_generate_pdf" %] > An error occurs when generating the PDF file. > Please contact the administrator to resolve this problem. >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt >index 96f019d7962..0a252c09d15 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt >@@ -29,7 +29,7 @@ > <div id="discharge" class="maincontent"> > <h1>Discharge</h1> > [% FOR message IN messages %] >- <div class="dialog [% message.type | html %]"> >+ <div class="alert alert-[% message.type | html %]"> > [% IF message.code == "unable_to_generate_pdf" %] > An error occurs when generating the pdf file. > Please contact the staff to resolve this problem. >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt >index 171fcdc0390..5fb70997cef 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt >@@ -14,7 +14,7 @@ > > [% IF ( SENT ) %] > <h1>Message sent</h1> >- <div class="dialog dialog-success"> >+ <div class="alert alert-info"> > <p>The cart was sent to: [% email_add | html %]</p> > </div> > <p><a class="focus close" href="#">Close window</a></p> >-- >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