Bugzilla – Attachment 54732 Details for
Bug 17162
Moving MARC tags structure actions into a drop down menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17162: Moving MARC tags structure actions into a drop down menu
Bug-17162-Moving-MARC-tags-structure-actions-into-.patch (text/plain), 4.04 KB, created by
Aleisha Amohia
on 2016-08-23 01:24:54 UTC
(
hide
)
Description:
Bug 17162: Moving MARC tags structure actions into a drop down menu
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-08-23 01:24:54 UTC
Size:
4.04 KB
patch
obsolete
>From 1fd090ee44a9b42b2b37e839071d83c361ded54a Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 23 Aug 2016 01:22:05 +0000 >Subject: [PATCH] Bug 17162: Moving MARC tags structure actions into a drop > down menu > >To test: >1) Go to Admin -> MARC bibliographic framework >2) Go to Actions -> MARC structure for any framework >3) Confirm that three links, Subfields, Edit and Delete, now show in >drop-down menu with appropriate font awesome icons >4) Confirm that Subfields takes you to the right page and Edit and >Delete work as expected > >Sponsored-by: Catalyst IT >--- > .../prog/en/modules/admin/marctagstructure.tt | 34 +++++++++++++++------- > 1 file changed, 24 insertions(+), 10 deletions(-) > >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..d5b13a1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -15,7 +15,7 @@ > $(document).ready(function() { > $("#table_marctagstructure").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumnDefs": [ >- { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, > ], > "sPaginationType": "four_button" > })); >@@ -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> </th> > </tr> > </thead> > <tbody> >@@ -211,9 +209,17 @@ $(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> >+ <div class="dropdown"> >+ <a class="btn btn-mini dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#"> >+ Actions <b class="caret"></b></a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]"> >+ <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></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 +230,17 @@ $(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> >+ <div class="dropdown"> >+ <a class="btn btn-mini dropdown-toggle" id="marctagactions[% loo.tagfield %]" role="button" data-toggle="dropdown" href="#"> >+ Actions <b class="caret"></b></a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="marctagactions[% loo.tagfield %]"> >+ <li><a href="[% loo.subfield_link %]"><i class="fa fa-eye"></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 17162
:
54732
|
54744
|
54768