From 949027cf45c763e0e8b2f597b851da09f4a56025 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 4 Oct 2019 14:40:39 +0000 Subject: [PATCH] Bug 22882: ItemType translation modal is not consistent with other modals This patch modifies the itemtypes administration template replacing in the translation process the Greybox modal with a Bootstrap modal. To test you should have at least one translation enabled. - Apply the patch and go to Administration -> Item types. - Edit an existing item type. - Click the "Translate into other languages" link by the "Description" field. - A Bootstrap-styled modal should appear. - Test the process of adding and deleting a translation. - Test hiding and redisplaying the modal dialog. --- .../prog/en/modules/admin/itemtypes.tt | 30 ++++++++++++++++++++-- .../prog/en/modules/admin/localization.tt | 4 ++- 2 files changed, 31 insertions(+), 3 deletions(-) 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 666701f3124..cb6e0c669e6 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 @@ Item types administration Required [% IF can_be_translated %] - Translate into other languages + Translate into other languages [% END %]
  • @@ -454,9 +454,26 @@ Item types administration + + + [% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] - [% INCLUDE 'greybox.inc' %] [% INCLUDE 'datatables.inc' %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt index 95d2810d526..fe85686514a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt @@ -11,7 +11,7 @@
    -
    + @@ -57,6 +57,7 @@
    +[% IF ( translations ) %] @@ -81,6 +82,7 @@ [% END %]
    +[% END %]
    -- 2.11.0