Bug 15830 - Move Rotating Collections actions into a drop-down list
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / rotatingCollections.tt
1 [% USE Branches %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8     $(document).ready(function(){
9         $(".confirmdelete").click(function(){
10             $(this).parents('tr').addClass("warn");
11             if(confirm(_("Are you sure you want to delete this collection?"))){
12                 return true;
13             } else {
14                 $(this).parents('tr').removeClass("warn");
15                 return false;
16             }
17         });
18         $('#rotating-collections-table').dataTable($.extend(true, {}, dataTablesDefaults, {
19             "autoWidth": false,
20             "aoColumnDefs": [
21                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
22             ],
23             "sPaginationType": "four_button"
24         } ));
25     });
26 </script>
27 </head>
28 <body id="rcoll_rotatingCollections" class="tools rcoll">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cat-search.inc' %]
31
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Rotating collections</div>
33
34 <div id="doc3" class="yui-t2">
35     <div id="bd">
36         <div id="yui-main">
37             <div class="yui-b">
38
39                 [% INCLUDE 'rotating-collections-toolbar.inc' %]
40
41                 <h1>Rotating collections</h1>
42                 <div>
43                     [% IF ( collectionsLoop ) %]
44                         <table id="rotating-collections-table">
45                             <thead>
46                                 <tr>
47                                     <th>Title</th>
48                                     <th>Description</th>
49                                     <th>Current location</th>
50                                     <th>&nbsp;</th>
51                                 </tr>
52                             </thead>
53                             <tbody>
54                             [% FOREACH collectionsLoo IN collectionsLoop %]
55                                 <tr>
56                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
57                                     <td>[% collectionsLoo.colDesc %]</td>
58                                     <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
59                                     <td>
60                                     <div class="dropdown">
61                                         <a class="btn btn-mini" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#">
62                                         Actions <b class="caret"></b></a>
63                                         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
64                                             <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>
65                                             <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li>
66                                             <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-pencil"></i> Edit</a></li>
67                                             <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-trash"></i> Delete</a></li>
68                                         </ul>
69                                     </div>
70                                     </td>
71                                 </tr>
72                             [% END %]
73                             </tbody>
74                         </table>
75                     [% ELSE %]
76                         <div class="dialog message">There are no collections currently defined.</div>
77                     [% END %]
78                 </div>
79
80             </div> <!-- /.yui-b -->
81         </div> <!-- /#yui-main -->
82         <div class="yui-b">
83             [% INCLUDE 'tools-menu.inc' %]
84         </div>
85     </div> <!-- /#bd -->
86 [% INCLUDE 'intranet-bottom.inc' %]