Bug 21526: uri escape TT variables when used in 'a href'
[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 class="main container-fluid">
18     <div class="row">
19         <div class="col-sm-10 col-sm-push-2">
20             <main>
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 | uri %]">[% 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 | uri %]"><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 | uri %]"><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 | uri %]"><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             </main>
64         </div> <!-- /.col-sm-10.col-sm-push-2 -->
65
66         <div class="col-sm-2 col-sm-pull-10">
67             <aside>
68                 [% INCLUDE 'tools-menu.inc' %]
69             </aside>
70         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
71      </div> <!-- /.row -->
72
73 [% MACRO jsinclude BLOCK %]
74     [% INCLUDE 'datatables.inc' %]
75     [% Asset.js("js/tools-menu.js") | $raw %]
76     [% Asset.js("js/rotating-collections.js") | $raw %]
77 [% END %]
78
79 [% INCLUDE 'intranet-bottom.inc' %]