Bug 31771: Add page-section to stock rotation pages
[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 [% WRAPPER 'header.inc' %]
11     [% INCLUDE 'cat-search.inc' %]
12 [% END %]
13
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16     <ol>
17         <li>
18             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19         </li>
20         <li>
21             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22         </li>
23         <li>
24             <a href="#" aria-current="page">
25                 Access files
26             </a>
27         </li>
28     </ol>
29 </nav>
30 [% END %]
31
32 <div class="main container-fluid">
33     <div class="row">
34         <div class="col-sm-10 col-sm-push-2">
35             <main>
36
37     <h1>Access files</h1>
38
39 [% IF ( error_no_dir ) %]
40     <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>
41 [% ELSE %]
42     [% IF ( files_loop ) %]
43         <table id="files">
44             <thead>
45                 <tr>
46                     <th>Name</th>
47                     <th>Size (bytes)</th>
48                     <th>Date last modified</th>
49                 </tr>
50             </thead>
51             <tbody>
52                 [% FOREACH file IN files_loop %]
53                 <tr>
54                     <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name | html %]</a></td>
55                     <td align="right">[% file.size | html %]</td>
56                     <td data-order="[% file.date | html %]">[% file.date | $KohaDates %]</td>
57                 </tr>
58                 [% END %]
59             </tbody>
60         </table>
61     [% ELSE %]
62         <div class="dialog message">No files found.</div>
63     [% END %]
64 [% END %]
65
66             </main>
67         </div> <!-- /.col-sm-10.col-sm-push-2 -->
68
69         <div class="col-sm-2 col-sm-pull-10">
70             <aside>
71                 [% INCLUDE 'tools-menu.inc' %]
72             </aside>
73         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
74     </div> <!-- /.row -->
75
76
77 [% MACRO jsinclude BLOCK %]
78     [% Asset.js("js/tools-menu.js") | $raw %]
79     [% INCLUDE 'datatables.inc' %]
80     <script>
81         $(document).ready(function() {
82             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
83                 "aoColumnDefs": [
84                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
85                 ],
86                 "bPaginate": false
87             }));
88     });
89 </script>
90 [% END %]
91
92 [% INCLUDE 'intranet-bottom.inc' %]