Bug 25744: replace <b> with <strong> in the staff interface
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / invoice-files.tt
blobf28cfd6c170864332ad21273e36c8c70dae2196c
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Acquisitions &rsaquo; Invoice &rsaquo; Files</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
10 <body id="acq_invoice_files" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | html %]">[% invoicenumber | html %]</a> &rsaquo; Files</div>
16 <div class="main container-fluid">
17     <div class="row">
18         <div class="col-sm-10 col-sm-push-2">
19             <main>
21       <h2>Files for invoice: [% invoicenumber | html %]</h2>
22       <p><strong>Vendor: </strong><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% suppliername | html %]</a></p>
23       <br />
24       [% IF errors %]
25         <div class="dialog alert">
26           [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
27           [% IF errors.no_file %]You did not select a file to upload.[% END %]
28           [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
29         </div>
30       [% END %]
31       [% IF files %]
32           <table id="invoice_files_details_table">
33               <thead>
34                   <tr>
35                       <th>Name</th>
36                       <th>Type</th>
37                       <th>Description</th>
38                       <th>Uploaded</th>
39                       <th>Bytes</th>
40                       <th>&nbsp;</th>
41                       <th>&nbsp;</th>
42                   </tr>
43               </thead>
44               <tbody>
45                 [% FOREACH f IN files %]
46                   <tr>
47                       <td><a href="?invoiceid=[% invoiceid | uri %]&amp;op=download&amp;view=1&amp;file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
48                       <td>[% f.file_type | html %]</td>
49                       <td>[% f.file_description | html %]</td>
50                       <td class="title-string">
51                         <span title="[% f.date_uploaded | html %]">[% f.date_uploaded | $KohaDates %]</span>
52                       </td>
53                       <td>[% f.file_size | html %]</td>
54                       <td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&amp;op=delete&amp;file_id=[% f.file_id | html %]">Delete</a></td>
55                       <td><a href="?invoiceid=[% invoiceid | uri %]&amp;op=download&amp;file_id=[% f.file_id | uri %]">Download</a></td>
56                   </tr>
57                 [% END %]
58               </tbody>
59           </table>
60       [% ELSE %]
61           <div class="dialog message">
62               <p>This invoice has no files attached.</p>
63           </div>
64       [% END %]
65       [% IF invoiceid %]
66           <br />
67           <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
68               <fieldset class="rows">
69                   <legend>Upload New File</legend>
70                   <ol>
71                       <li><input type="hidden" name="op" value="upload" />
72                       <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" />
73                       <label for="description">Description:</label>
74                       <input name="description" id="description" type="text" /></li>
75                       <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
76                   </ol>
77                   <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
78               </fieldset>
79           </form>
80       [% END %]
81     </main>
82   </div> <!-- /.col-sm-10.col-sm-push-2 -->
84 <div class="col-sm-2 col-sm-pull-10">
85     <aside>
86         [% INCLUDE 'acquisitions-menu.inc' %]
87     </aside>
88 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
89 </div> <!-- /.row -->
91 [% MACRO jsinclude BLOCK %]
92     [% Asset.js("js/acquisitions-menu.js") | $raw %]
93     [% INCLUDE 'datatables.inc' %]
94     <script>
95         $(document).ready(function() {
96             $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
97                 "aoColumnDefs": [
98                     { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
99                     { "aTargets": [ "title-string" ], "sType": "title-string" }
100                 ],
101                 bInfo: false,
102                 bPaginate: false,
103                 bFilter: false,
104                 sDom: "t"
105             }));
106             $("a.delete_file").click(function(){
107                 return ( confirm( _("Are you sure you want to delete this file ?") ) );
108             });
109         });
110     </script>
111 [% END %]
113 [% INCLUDE 'intranet-bottom.inc' %]