Bug 35378: 'This authority type is used {count} times' missing dot
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / access_files.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% PROCESS 'i18n.inc' %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% FILTER collapse %]
8     [% t("Access files") | html %] &rsaquo;
9     [% t("Koha") | html %]
10 [% END %]</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13 <body id="tools_access_files" class="tools">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'cat-search.inc' %]
16 [% END %]
17
18 [% WRAPPER 'sub-header.inc' %]
19     [% WRAPPER breadcrumbs %]
20         [% WRAPPER breadcrumb_item %]
21             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22         [% END %]
23         [% WRAPPER breadcrumb_item bc_active= 1 %]
24             <span>Access files</span>
25         [% END %]
26     [% END #/ WRAPPER breadcrumbs %]
27 [% END #/ WRAPPER sub-header.inc %]
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         <div class="page-section">
41             <table id="files">
42                 <thead>
43                     <tr>
44                         <th>Name</th>
45                         <th>Size (bytes)</th>
46                         <th>Date last modified</th>
47                     </tr>
48                 </thead>
49                 <tbody>
50                     [% FOREACH file IN files_loop %]
51                         <tr>
52                             <td><a href="/cgi-bin/koha/tools/access_files.pl?id=[% file.id |url %]">[% file.name | html %]</a></td>
53                             <td align="right">[% file.size | html %]</td>
54                             <td data-order="[% file.date | html %]">[% file.date | $KohaDates %]</td>
55                         </tr>
56                     [% END %]
57                 </tbody>
58             </table>
59         </div>
60     [% ELSE %]
61         <div class="dialog message">No files found.</div>
62     [% END %]
63 [% END %]
64
65             </main>
66         </div> <!-- /.col-sm-10.col-sm-push-2 -->
67
68         <div class="col-sm-2 col-sm-pull-10">
69             <aside>
70                 [% INCLUDE 'tools-menu.inc' %]
71             </aside>
72         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
73     </div> <!-- /.row -->
74
75
76 [% MACRO jsinclude BLOCK %]
77     [% Asset.js("js/tools-menu.js") | $raw %]
78     [% INCLUDE 'datatables.inc' %]
79     <script>
80         $(document).ready(function() {
81             $("#files").dataTable($.extend(true, {}, dataTablesDefaults, {
82                 "aoColumnDefs": [
83                     { "aTargets": [ -1 ], "asSorting" : [ "desc", "asc" ], "bSearchable": false }
84                 ],
85                 "bPaginate": false
86             }));
87     });
88 </script>
89 [% END %]
90
91 [% INCLUDE 'intranet-bottom.inc' %]