Bugzilla – Attachment 172769 Details for
Bug 38147
Edit button in bookings untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38147: Fix Edit and Cancel translatability in booking table
Bug-38147-Fix-Edit-and-Cancel-translatability-in-b.patch (text/plain), 2.55 KB, created by
Jonathan Druart
on 2024-10-15 12:18:19 UTC
(
hide
)
Description:
Bug 38147: Fix Edit and Cancel translatability in booking table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-10-15 12:18:19 UTC
Size:
2.55 KB
patch
obsolete
>From 6f37a8ecdd62fe895b28f771991c76e26beaa41d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 15 Oct 2024 14:17:16 +0200 >Subject: [PATCH] Bug 38147: Fix Edit and Cancel translatability in booking > table > >No idea why they are not picked by the translator script, but this patch is >fixing the problem. > >See comment 0 for a test plan. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >index ce2aaeb0062..5443f9d58f4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >@@ -310,8 +310,8 @@ > "render": function(data, type, row, meta) { > let result = ""; > [% IF CAN_user_circulate_manage_bookings %] >- result += '<button type="button" class="btn btn-default btn-xs edit-action" data-bs-toggle="modal" data-bs-target="#placeBookingModal" data-booking="'+row.booking_id+'" data-biblionumber="[% biblionumber | uri %]" data-itemnumber="'+row.item_id+'" data-patron="'+row.patron_id+'" data-pickup_library="'+row.pickup_library_id+'" data-start_date="'+row.start_date+'" data-end_date="'+row.end_date+'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</button>'; >- result += '<button type="button" class="btn btn-default btn-xs cancel-action" data-bs-toggle="modal" data-bs-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</button>'; >+ result += '<button type="button" class="btn btn-default btn-xs edit-action" data-bs-toggle="modal" data-bs-target="#placeBookingModal" data-booking="'+row.booking_id+'" data-biblionumber="[% biblionumber | uri %]" data-itemnumber="'+row.item_id+'" data-patron="'+row.patron_id+'" data-pickup_library="'+row.pickup_library_id+'" data-start_date="'+row.start_date+'" data-end_date="'+row.end_date+'"><i class="fa fa-pencil" aria-hidden="true"></i> %s</button>'.format(_("Edit")); >+ result += '<button type="button" class="btn btn-default btn-xs cancel-action" data-bs-toggle="modal" data-bs-target="#cancelBookingModal" data-booking="'+row.booking_id+'"><i class="fa fa-trash" aria-hidden="true"></i> %s</button>'.format(_("Cancel")); > [% END %] > return result; > } >-- >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 38147
:
172769
|
173013