Bug 27998: Replace obsolete title-string sorting: Serials templates
[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 </head>
9
10 <body id="rcoll_rotatingCollections" class="tools rcoll">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
13
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15     <ol>
16         <li>
17             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18         </li>
19         <li>
20             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
21         </li>
22         <li>
23             <a href="#" aria-current="page">
24                 Rotating collections
25             </a>
26         </li>
27     </ol>
28 </nav>
29
30 <div class="main container-fluid">
31     <div class="row">
32         <div class="col-sm-10 col-sm-push-2">
33             <main>
34
35                 [% INCLUDE 'rotating-collections-toolbar.inc' %]
36
37                 <h1>Rotating collections</h1>
38                 <div>
39                     [% IF ( collectionsLoop ) %]
40                         <table id="rotating-collections-table">
41                             <thead>
42                                 <tr>
43                                     <th>Title</th>
44                                     <th>Description</th>
45                                     <th>Current library</th>
46                                     <th>&nbsp;</th>
47                                 </tr>
48                             </thead>
49                             <tbody>
50                             [% FOREACH collectionsLoo IN collectionsLoop %]
51                                 <tr>
52                                     <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId | uri %]">[% collectionsLoo.colTitle | html %]</a></td>
53                                     <td>[% collectionsLoo.colDesc | html %]</td>
54                                     <td>[% Branches.GetName( collectionsLoo.colBranchcode ) | html %]</td>
55                                     <td>
56                                     <div class="btn-group dropup">
57                                         <a class="btn btn-default btn-xs" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId | html %]" role="button" data-toggle="dropdown" href="#">
58                                         Actions <b class="caret"></b></a>
59                                         <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId | html %]">
60                                             <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>
61                                             <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId | uri %]"><i class="fa fa-exchange"></i> Transfer</a></li>
62                                             <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>
63                                             <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>
64                                         </ul>
65                                     </div>
66                                     </td>
67                                 </tr>
68                             [% END %]
69                             </tbody>
70                         </table>
71                     [% ELSE %]
72                         <div class="dialog message">There are no collections currently defined.</div>
73                     [% END %]
74                 </div>
75
76             </main>
77         </div> <!-- /.col-sm-10.col-sm-push-2 -->
78
79         <div class="col-sm-2 col-sm-pull-10">
80             <aside>
81                 [% INCLUDE 'tools-menu.inc' %]
82             </aside>
83         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
84      </div> <!-- /.row -->
85
86 [% MACRO jsinclude BLOCK %]
87     [% INCLUDE 'datatables.inc' %]
88     [% Asset.js("js/tools-menu.js") | $raw %]
89     [% Asset.js("js/rotating-collections.js") | $raw %]
90 [% END %]
91
92 [% INCLUDE 'intranet-bottom.inc' %]