Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / rotatingCollections.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Branches %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% Asset.css("css/datatables.css") | $raw %]
9 </head>
10
11 <body id="rcoll_rotatingCollections" class="tools rcoll">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
14
15 <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>
16
17 <div id="doc3" class="yui-t2">
18     <div id="bd">
19         <div id="yui-main">
20             <div class="yui-b">
21
22                 [% INCLUDE 'rotating-collections-toolbar.inc' %]
23
24                 <h1>Rotating collections</h1>
25                 <div>
26                     [% IF ( collectionsLoop ) %]
27                         <table id="rotating-collections-table">
28                             <thead>
29                                 <tr>
30                                     <th>Title</th>
31                                     <th>Description</th>
32                                     <th>Current location</th>
33                                     <th>&nbsp;</th>
34                                 </tr>
35                             </thead>
36                             <tbody>
37                             [% FOREACH collectionsLoo IN collectionsLoop %]
38                                 <tr>
39                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | html %]">[% collectionsLoo.colTitle | html %]</a></td>
40                                     <td>[% collectionsLoo.colDesc | html %]</td>
41                                     <td>[% Branches.GetName( collectionsLoo.colBranchcode ) | html %]</td>
42                                     <td>
43                                     <div class="dropdown">
44                                         <a class="btn btn-default btn-xs" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId | html %]" role="button" data-toggle="dropdown" href="#">
45                                         Actions <b class="caret"></b></a>
46                                         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId | html %]">
47                                             <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | html %]"><i class="fa fa-plus"></i> Add or remove items</a></li>
48                                             <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId | html %]"><i class="fa fa-exchange"></i> Transfer</a></li>
49                                             <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId | html %]"><i class="fa fa-pencil"></i> Edit</a></li>
50                                             <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId | html %]"><i class="fa fa-trash"></i> Delete</a></li>
51                                         </ul>
52                                     </div>
53                                     </td>
54                                 </tr>
55                             [% END %]
56                             </tbody>
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
70 [% MACRO jsinclude BLOCK %]
71     [% INCLUDE 'datatables.inc' %]
72     [% Asset.js("js/tools-menu.js") | $raw %]
73     [% Asset.js("js/rotating-collections.js") | $raw %]
74 [% END %]
75
76 [% INCLUDE 'intranet-bottom.inc' %]