Bugzilla – Attachment 51788 Details for
Bug 16546
Make edit and delete links styled buttons in MARC bibliographic framework administration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16546 - Make edit and delete links styled buttons in MARC bibliographic framework administration
Bug-16546---Make-edit-and-delete-links-styled-butt.patch (text/plain), 7.34 KB, created by
Owen Leonard
on 2016-05-25 14:45:12 UTC
(
hide
)
Description:
Bug 16546 - Make edit and delete links styled buttons in MARC bibliographic framework administration
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-05-25 14:45:12 UTC
Size:
7.34 KB
patch
obsolete
>From fab2587d3086e8d8490f507a76ef2dc00c807d58 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 >Content-Type: text/plain; charset="utf-8" > >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. >--- > .../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 %] > </td> >- <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field">Edit</a></td> >- <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield %]&tagsubfield=[% loo.tagsubfield %]&frameworkcode=[% frameworkcode %]">Delete</a></td> >+ <td class="actions"><a class="btn btn-mini" href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=[% loo.tagfield %]&frameworkcode=[% frameworkcode %]#sub[% loo.tagsubfield %]field"><i class="fa fa-pencil"></i> Edit</a></td> >+ <td class="actions"><a class="btn btn-mini" href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&tagfield=[% loo.tagfield %]&tagsubfield=[% loo.tagsubfield %]&frameworkcode=[% frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td> > </tr> > [% END %] > </table> >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 ) %] > <div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-small" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% frameworkcode %]"><i class="fa fa-plus"></i> New tag</a> >+ <a class="btn btn-small" id="addtag" href="/cgi-bin/koha/admin/marctagstructure.pl?op=add_form&frameworkcode=[% frameworkcode %]"><i class="fa fa-plus"></i> New tag</a> > </div>[% END %] > > <h1>MARC Framework for [% IF ( frameworkcode ) %][% frameworktext %] ([% frameworkcode %])[% ELSE %]default MARC framework[% END %]</h1> >@@ -122,10 +122,10 @@ $(document).ready(function() { > <input type="hidden" name="op" value="delete_confirmed" /> > <input type="hidden" name="searchfield" value="[% searchfield %]" /> > <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> >- <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button> >+ <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this tag</button> > </form> > <form action="[% script_name %]" method="get"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> >- <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> >+ <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> > </form> > </div> > [% END %] >@@ -134,7 +134,7 @@ $(document).ready(function() { > > <div class="dialog message"><h3>Tag deleted</h3> > <form action="[% script_name %]" method="post"><input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> >- <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button> >+ <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> OK</button> > </form></div> > [% END %] > [% IF ( framework_create ) %] >@@ -189,9 +189,7 @@ $(document).ready(function() { > <th>Repeatable</th> > <th>Mandatory</th> > <th>Auth value</th> >- <th>Subfields</th> >- <th>Edit</th> >- <th>Delete</th> >+ <th>Actions</th> > </tr> > </thead> > <tbody> >@@ -211,9 +209,16 @@ $(document).ready(function() { > <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td> > <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td> > <td>[% loo.authorised_value %]</td> >- <td><a href="[% loo.subfield_link %]">subfields</a></td> >- <td><a href="[% loo.edit %]">Edit</a></td> >- <td><a href="[% loo.delete %]">Delete</a></td> >+ <td class="actions"> >+ <div class="dropup"> >+ <a href="#" data-toggle="dropdown" role="button" id="subfieldactions[% loo.tagfield %]" class="btn btn-mini dropdown-toggle">Actions <b class="caret"></b></a> >+ <ul aria-labelledby="subfieldactions[% loo.tagfield %]" role="menu" class="dropdown-menu pull-right"> >+ <li><a href="[% loo.subfield_link %]"><i class="fa fa-list-ul"></i> Subfields</a></li> >+ <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li> >+ <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li> >+ </ul> >+ </div> >+ </td> > </tr> > [% END %] > [% ELSE %] >@@ -224,9 +229,16 @@ $(document).ready(function() { > <td>[% IF ( loo.repeatable ) %]Yes[% ELSE %]No[% END %]</td> > <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td> > <td>[% loo.authorised_value %]</td> >- <td><a href="[% loo.subfield_link %]">Subfields</a></td> >- <td><a href="[% loo.edit %]">Edit</a></td> >- <td><a href="[% loo.delete %]">Delete</a></td> >+ <td class="actions"> >+ <div class="dropup"> >+ <a href="#" data-toggle="dropdown" role="button" id="subfieldactions[% loo.tagfield %]" class="btn btn-mini dropdown-toggle">Actions <b class="caret"></b></a> >+ <ul aria-labelledby="subfieldactions[% loo.tagfield %]" role="menu" class="dropdown-menu pull-right"> >+ <li><a href="[% loo.subfield_link %]"><i class="fa fa-list-ul"></i> Subfields</a></li> >+ <li><a href="[% loo.edit %]"><i class="fa fa-pencil"></i> Edit</a></li> >+ <li><a href="[% loo.delete %]"><i class="fa fa-trash"></i> Delete</a></li> >+ </ul> >+ </div> >+ </td> > </tr> > [% END %] > [% END %] >-- >2.1.4
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 16546
:
51788
|
51876
|
51877
|
51878
|
51948
|
51949