Bug 19656: Move rotating collections templates JS to the footer
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / rotatingCollections.tt
blob3564235cc1955098d8dfa92a737bf35ab5cf598e
1 [% USE Branches %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
7 </head>
9 <body id="rcoll_rotatingCollections" class="tools rcoll">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
13 <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>
15 <div id="doc3" class="yui-t2">
16     <div id="bd">
17         <div id="yui-main">
18             <div class="yui-b">
20                 [% INCLUDE 'rotating-collections-toolbar.inc' %]
22                 <h1>Rotating collections</h1>
23                 <div>
24                     [% IF ( collectionsLoop ) %]
25                         <table id="rotating-collections-table">
26                             <thead>
27                                 <tr>
28                                     <th>Title</th>
29                                     <th>Description</th>
30                                     <th>Current location</th>
31                                     <th>&nbsp;</th>
32                                 </tr>
33                             </thead>
34                             <tbody>
35                             [% FOREACH collectionsLoo IN collectionsLoop %]
36                                 <tr>
37                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
38                                     <td>[% collectionsLoo.colDesc %]</td>
39                                     <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
40                                     <td>
41                                     <div class="dropdown">
42                                         <a class="btn btn-default btn-xs" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#">
43                                         Actions <b class="caret"></b></a>
44                                         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
45                                             <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>
46                                             <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li>
47                                             <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>
48                                             <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>
49                                         </ul>
50                                     </div>
51                                     </td>
52                                 </tr>
53                             [% END %]
54                             </tbody>
55                         </table>
56                     [% ELSE %]
57                         <div class="dialog message">There are no collections currently defined.</div>
58                     [% END %]
59                 </div>
61             </div> <!-- /.yui-b -->
62         </div> <!-- /#yui-main -->
63         <div class="yui-b">
64             [% INCLUDE 'tools-menu.inc' %]
65         </div>
66     </div> <!-- /#bd -->
68 [% MACRO jsinclude BLOCK %]
69     [% INCLUDE 'datatables.inc' %]
70     <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
71     <script type="text/javascript" src="[% interface %]/[% theme %]/js/rotating-collections.js"></script>
72 [% END %]
74 [% INCLUDE 'intranet-bottom.inc' %]