Bug 14321: Integrate Upload.pm into Koha
[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 <script type="text/javascript">
6     $(document).ready(function(){
7         $(".confirmdelete").click(function(){
8             $(this).parents('tr').addClass("warn");
9             if(confirm(_("Are you sure you want to delete this collection?"))){
10                 return true;
11             } else {
12                 $(this).parents('tr').removeClass("warn");
13                 return false;
14             }
15         });
16     });
17 </script>
18 </head>
19 <body id="rcoll_rotatingCollections" class="tools rcoll">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'cat-search.inc' %]
22
23 <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>
24
25 <div id="doc3" class="yui-t2">
26     <div id="bd">
27         <div id="yui-main">
28             <div class="yui-b">
29
30                 [% INCLUDE 'rotating-collections-toolbar.inc' %]
31
32                 <h1>Rotating collections</h1>
33                 <div>
34                     [% IF ( collectionsLoop ) %]
35                         <table>
36                             <tr>
37                                 <th>Title</th>
38                                 <th>Description</th>
39                                 <th>Current location</th>
40                                 <th>&nbsp;</th>
41                                 <th>&nbsp;</th>
42                                 <th>&nbsp;</th>
43                                 <th>&nbsp;</th>
44                             </tr>
45
46                             [% FOREACH collectionsLoo IN collectionsLoop %]
47                                 <tr>
48                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
49                                     <td>[% collectionsLoo.colDesc %]</td>
50                                     <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
51                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">Add or remove items</a></td>
52                                     <td><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]">Transfer</a></td>
53                                     <td><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]">Edit</a></td>
54                                     <td><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId %]">Delete</a></td>
55                                 </tr>
56                             [% END %]
57                         </table>
58                     [% ELSE %]
59                         <div class="dialog message">There are no collections currently defined.</div>
60                     [% END %]
61                 </div>
62
63             </div> <!-- /.yui-b -->
64         </div> <!-- /#yui-main -->
65         <div class="yui-b">
66             [% INCLUDE 'tools-menu.inc' %]
67         </div>
68     </div> <!-- /#bd -->
69 [% INCLUDE 'intranet-bottom.inc' %]