]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/tools/access_files.tt
Bug 32254: (follow-up) Add page section to Cashup history
[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         <div class="page-section">
44             <table id="files">
45                 <thead>
46                     <tr>
47                         <th>Name</th>
48                         <th>Size (bytes)</th>
49                         <th>Date last modified</th>
50                     </tr>
51                 </thead>
52                 <tbody>
53                     [% FOREACH file IN files_loop %]
54                         <tr>
55                             <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name | html %]</a></td>
56                             <td align="right">[% file.size | html %]</td>
57                             <td data-order="[% file.date | html %]">[% file.date | $KohaDates %]</td>
58                         </tr>
59                     [% END %]
60                 </tbody>
61             </table>
62         </div>
63     [% ELSE %]
64         <div class="dialog message">No files found.</div>
65     [% END %]
66 [% END %]
67
68             </main>
69         </div> <!-- /.col-sm-10.col-sm-push-2 -->
70
71         <div class="col-sm-2 col-sm-pull-10">
72             <aside>
73                 [% INCLUDE 'tools-menu.inc' %]
74             </aside>
75         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
76     </div> <!-- /.row -->
77
78
79 [% MACRO jsinclude BLOCK %]
80     [% Asset.js("js/tools-menu.js") | $raw %]
81     [% INCLUDE 'datatables.inc' %]
82     <script>
83         $(document).ready(function() {
84             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
85                 "aoColumnDefs": [
86                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
87                 ],
88                 "bPaginate": false
89             }));
90     });
91 </script>
92 [% END %]
93
94 [% INCLUDE 'intranet-bottom.inc' %]