From 4733fe0fd5836ef6e2bd46d39c59ea810b0b1ab0 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Thu, 14 Apr 2016 22:02:47 +0000 Subject: [PATCH] Bug 16263: making authority tags and subfields actions buttons To test: 1) Go to Admin -> Authority types 2) Click the dropdown for one of the frameworks and click MARC structure 3) Confirm the actions subfields, edit and delete all show in the dropdown and work as expected 4) Click subfields 5) Confirm the action delete on this page shows as a font awesome button and works as expected Sponsored-by: Catalyst IT --- .../en/modules/admin/auth_subfields_structure.tt | 4 ++-- .../prog/en/modules/admin/auth_tag_structure.tt | 22 +++++++++++++------- .../prog/en/modules/admin/authtypes.tt | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt index 7caceca..b62de1d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt @@ -274,7 +274,7 @@ Subfield Text Constraints - Delete +   [% FOREACH loo IN loop %] @@ -307,7 +307,7 @@ [% IF ( loo.value_builder ) %] | Plugin:[% loo.value_builder %],[% END %] [% END %] - Delete + Delete [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt index c495205..2b5bef5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt @@ -12,7 +12,7 @@ $(document).ready(function() { $("#table_authtagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, + { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, ], "sPaginationType": "four_button" })); @@ -211,10 +211,8 @@ Repeatable Mandatory Authorized
value - Subfields - Edit - Delete - +   + [% FOREACH loo IN loop %] @@ -224,9 +222,17 @@ [% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %] [% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %] [% loo.authorised_value %] - subfields - Edit - Delete + + + [% END %] 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 4740e4d..1c739d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -164,7 +164,7 @@