Bugzilla – Attachment 191092 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/identity_provider_domains.tt
a2cb938.patch (text/plain), 3.83 KB, created by
Jonathan Druart
on 2026-01-09 14:45:03 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/identity_provider_domains.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:45:03 UTC
Size:
3.83 KB
patch
obsolete
>From a2cb93891739666afee68b0c866599f2f81ecf10 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 11:01:19 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - > admin/identity_provider_domains.tt > >--- > .../admin/identity_provider_domains.tt | 34 +++++++++++-------- > 1 file changed, 19 insertions(+), 15 deletions(-) > >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 f890eadcb7e..b587277b93d 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 >@@ -328,21 +328,25 @@ > [% Asset.js("js/admin-menu.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > <script> >- $(document).ready(function() { >+ var identity_provider_domains_url = '/api/v1/auth/identity_providers/[%- identity_provider_id | html -%]/domains'; >+ [% SET categories = Categories.all() %] >+ var categories = { >+ [% FOREACH category IN categories %] >+ "[% category.categorycode | html %]": "[% category.description | html %]", >+ [% END %] >+ }; >+ [% SET libraries = Branches.all() %] >+ var libraries = { >+ [% FOREACH library IN libraries %] >+ "[% library.branchcode | html %]": "[% library.branchname | html %]", >+ [% END %] >+ }; > >- var identity_provider_domains_url = '/api/v1/auth/identity_providers/[%- identity_provider_id | html -%]/domains'; >- [% SET categories = Categories.all() %] >- var categories = { >- [% FOREACH category IN categories %] >- "[% category.categorycode | html %]": "[% category.description | html %]", >- [% END %] >- }; >- [% SET libraries = Branches.all() %] >- var libraries = { >- [% FOREACH library IN libraries %] >- "[% library.branchcode | html %]": "[% library.branchname | html %]", >- [% END %] >- }; >+ const identity_provider_id = "[%- identity_provider_id | html -%]"; >+ </script> >+ >+ <script> >+ $(document).ready(function() { > window.identity_provider_domains = $("#identity_provider_domains").kohaTable({ > ajax: { > "url": identity_provider_domains_url >@@ -449,7 +453,7 @@ > }, > { > data: function( row, type, val, meta ) { >- var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/identity_providers.pl?domain_ops=1&identity_provider_id=[%- identity_provider_id | html -%]&op=edit_form&identity_provider_domain_id='+ encodeURIComponent(row.identity_provider_domain_id) +'"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n"; >+ var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/identity_providers.pl?domain_ops=1&identity_provider_id=' + identity_provider_id + '&op=edit_form&identity_provider_domain_id='+ encodeURIComponent(row.identity_provider_domain_id) +'"><i class="fa-solid fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n"; > result += '<a class="btn btn-default btn-xs delete_identity_provider_domain" role="button" href="#" data-bs-toggle="modal" data-bs-target="#delete_confirm_modal" data-auth-provider-domain-id="'+ encodeURIComponent(row.identity_provider_domain_id) +'" data-auth-provider-domain="'+ encodeURIComponent((row.domain || '').escapeHtml()) +'"><i class="fa fa-trash-can" aria-hidden="true"></i> '+_("Delete")+'</a>'; > return result; > }, >-- >2.43.0 >
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 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
|
191312
|
191313
|
191314
|
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329