Bugzilla – Attachment 48154 Details for
Bug 15830
Move Rotating Collections actions into a drop-down list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15830 - Move Rotating Collections actions into a drop-down list
Bug-15830---Move-Rotating-Collections-actions-into.patch (text/plain), 5.83 KB, created by
Josef Moravec
on 2016-02-17 09:19:12 UTC
(
hide
)
Description:
Bug 15830 - Move Rotating Collections actions into a drop-down list
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2016-02-17 09:19:12 UTC
Size:
5.83 KB
patch
obsolete
>From dbad2679294e6983b9d19d44a2aec98c42256cb6 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Tue, 16 Feb 2016 04:01:13 +0000 >Subject: [PATCH] Bug 15830 - Move Rotating Collections actions into a > drop-down list >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1) Go to Tools -> Rotating Collections >2) Confirm actions (Add or remove items, Transfer, Edit, Delete) have moved into a drop down menu >3) Confirm all of the actions work as expected > >Sponsored-by: Catalyst IT > >Signed-off-by: Marc Véron <veron@veron.ch> >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > .../rotating_collections/rotatingCollections.tt | 47 +++++++++++++++------- > 1 file changed, 32 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >index a807b6b..229e42c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt >@@ -2,6 +2,8 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Tools › Rotating collections</title> > [% INCLUDE 'doc-head-close.inc' %] >+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> >+[% INCLUDE 'datatables.inc' %] > <script type="text/javascript"> > $(document).ready(function(){ > $(".confirmdelete").click(function(){ >@@ -13,6 +15,13 @@ > return false; > } > }); >+ $('#rotating-collections-table').dataTable($.extend(true, {}, dataTablesDefaults, { >+ "autoWidth": false, >+ "aoColumnDefs": [ >+ { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, >+ ], >+ "sPaginationType": "four_button" >+ } )); > }); > </script> > </head> >@@ -32,28 +41,36 @@ > <h1>Rotating collections</h1> > <div> > [% IF ( collectionsLoop ) %] >- <table> >- <tr> >- <th>Title</th> >- <th>Description</th> >- <th>Current location</th> >- <th> </th> >- <th> </th> >- <th> </th> >- <th> </th> >- </tr> >- >+ <table id="rotating-collections-table"> >+ <thead> >+ <tr> >+ <th>Title</th> >+ <th>Description</th> >+ <th>Current location</th> >+ <th> </th> >+ </tr> >+ </thead> >+ <tbody> > [% FOREACH collectionsLoo IN collectionsLoop %] > <tr> > <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td> > <td>[% collectionsLoo.colDesc %]</td> > <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td> >- <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">Add or remove items</a></td> >- <td><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]">Transfer</a></td> >- <td><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&colId=[% collectionsLoo.colId %]">Edit</a></td> >- <td><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&colId=[% collectionsLoo.colId %]">Delete</a></td> >+ <td> >+ <div class="dropdown"> >+ <a class="btn btn-mini" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#"> >+ Actions <b class="caret"></b></a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]"> >+ <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-plus"></i> Add or remove items</a></li> >+ <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li> >+ <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&colId=[% collectionsLoo.colId %]"><i class="fa fa-pencil"></i> Edit</a></li> >+ <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&colId=[% collectionsLoo.colId %]"><i class="fa fa-trash"></i> Delete</a></li> >+ </ul> >+ </div> >+ </td> > </tr> > [% END %] >+ </tbody> > </table> > [% ELSE %] > <div class="dialog message">There are no collections currently defined.</div> >-- >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 15830
:
48091
|
48106
|
48150
|
48151
|
48154
|
48158