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