Bug 27846: tools and virtualshelves folders
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / access_files.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Access files</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="tools_access_files" class="tools">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
12
13 <nav aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
20         </li>
21         <li>
22             <a href="#" aria-current="page">
23                 Access files
24             </a>
25         </li>
26     </ol>
27 </nav>
28
29 <div class="main container-fluid">
30     <div class="row">
31         <div class="col-sm-10 col-sm-push-2">
32             <main>
33
34     <h1>Access files</h1>
35
36 [% IF ( error_no_dir ) %]
37     <div class="dialog alert"><strong>Error: </strong>Files could not be found because the "access_dir" option was not set in "koha-conf.xml". Contact your system administrator to add this option.</div>
38 [% ELSE %]
39     [% IF ( files_loop ) %]
40         <table id="files">
41             <thead>
42                 <tr>
43                     <th>Name</th>
44                     <th>Size (bytes)</th>
45                     <th class="title-string">Date last modified</th>
46                 </tr>
47             </thead>
48             <tbody>
49                 [% FOREACH file IN files_loop %]
50                 <tr>
51                     <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name | html %]</a></td>
52                     <td align="right">[% file.size | html %]</td>
53                     <td><span title="[% file.date | html %]">[% file.date | $KohaDates %]</span></td>
54                 </tr>
55                 [% END %]
56             </tbody>
57         </table>
58     [% ELSE %]
59         <div class="dialog message">No files found.</div>
60     [% END %]
61 [% END %]
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
74 [% MACRO jsinclude BLOCK %]
75     [% Asset.js("js/tools-menu.js") | $raw %]
76     [% INCLUDE 'datatables.inc' %]
77     <script>
78         $(document).ready(function() {
79             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
80                 "aoColumnDefs": [
81                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false },
82                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
83                 ],
84                 "bPaginate": false
85             }));
86     });
87 </script>
88 [% END %]
89
90 [% INCLUDE 'intranet-bottom.inc' %]