From 4826d6244d8f31176dc81051084a48d6c70c15d6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 25 May 2016 10:21:07 -0400 Subject: [PATCH] Bug 16546 - Make edit and delete links styled buttons in MARC bibliographic framework administration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch modifies two MARC framwork templates, styling some edit and delete links as Bootstrap buttons with Font Awesome icons. To test, apply the patch and go to Administration -> MARC frameworks -> MARC structure. - In the list of tags for your selected MARC framework, the "Subfields," "Edit" and "Delete" items in the 'Actions' menu should look correct and work correctly. - Choose "Subfields" for any tag. In the list of subfields, the "Edit" and "Delete" buttons should look correct and work correctly. Signed-off-by: Holger Meißner Signed-off-by: Marc Véron --- .../en/modules/admin/marc_subfields_structure.tt | 4 +-- .../prog/en/modules/admin/marctagstructure.tt | 38 +++++++++++++------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 30b830e..e5c405a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -285,8 +285,8 @@ [% IF ( loo.link ) %] | Link:[% loo.link %],[% END %] [% END %] - Edit - Delete + Edit + Delete [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index 1f0a5d8..2f60674 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -53,7 +53,7 @@ $(document).ready(function() { [% IF ( else ) %] [% END %]

MARC Framework for [% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]default MARC framework[% END %]

@@ -122,10 +122,10 @@ $(document).ready(function() { - +
- +
[% END %] @@ -134,7 +134,7 @@ $(document).ready(function() {

Tag deleted

- +
[% END %] [% IF ( framework_create ) %] @@ -189,9 +189,7 @@ $(document).ready(function() { Repeatable Mandatory Auth value - Subfields - Edit - Delete + Actions @@ -211,9 +209,16 @@ $(document).ready(function() { [% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %] [% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %] [% loo.authorised_value %] - subfields - Edit - Delete + + + [% END %] [% ELSE %] @@ -224,9 +229,16 @@ $(document).ready(function() { [% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %] [% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %] [% loo.authorised_value %] - Subfields - Edit - Delete + + + [% END %] [% END %] -- 1.7.10.4