From 433dd032e56869270b186cf55a6cc68cb9f28f85 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 EDIT: Subfields icon, 'i' to eye 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 Signed-off-by: Arslan Farooq --- .../en/modules/admin/auth_subfields_structure.tt | 4 ++-- .../prog/en/modules/admin/auth_tag_structure.tt | 22 +++++++++++++------- 2 files changed, 16 insertions(+), 10 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..df7ae02 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 %] -- 1.7.10.4