5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › Invoice › Files</title>
7 [% Asset.css("css/datatables.css") | $raw %]
8 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="acq_invoice_files" class="acq">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'acquisitions-search.inc' %]
15 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> › <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | html %]">[% invoicenumber | html %]</a> › Files</div>
17 <div class="main container-fluid">
19 <div class="col-sm-10 col-sm-push-2">
22 <h2>Files for invoice: [% invoicenumber | html %]</h2>
23 <p><b>Vendor: </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% suppliername | html %]</a></p>
26 <div class="dialog alert">
27 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
28 [% IF errors.no_file %]You did not select a file to upload.[% END %]
29 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
33 <table id="invoice_files_details_table">
46 [% FOREACH f IN files %]
48 <td><a href="?invoiceid=[% invoiceid | html %]&op=download&view=1&file_id=[% f.file_id | html %]">[% f.file_name | html %]</a></td>
49 <td>[% f.file_type | html %]</td>
50 <td>[% f.file_description | html %]</td>
51 <td class="title-string">
52 <span title="[% f.date_uploaded | html %]">[% f.date_uploaded | $KohaDates %]</span>
54 <td>[% f.file_size | html %]</td>
55 <td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
56 <td><a href="?invoiceid=[% invoiceid | html %]&op=download&file_id=[% f.file_id | html %]">Download</a></td>
62 <div class="dialog message">
63 <p>This invoice has no files attached.</p>
68 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
69 <fieldset class="rows">
70 <legend>Upload New File</legend>
72 <li><input type="hidden" name="op" value="upload" />
73 <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" />
74 <label for="description">Description:</label>
75 <input name="description" id="description" type="text" /></li>
76 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
78 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
83 </div> <!-- /.col-sm-10.col-sm-push-2 -->
85 <div class="col-sm-2 col-sm-pull-10">
87 [% INCLUDE 'acquisitions-menu.inc' %]
89 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
92 [% MACRO jsinclude BLOCK %]
93 [% Asset.js("js/acquisitions-menu.js") | $raw %]
94 [% INCLUDE 'datatables.inc' %]
96 $(document).ready(function() {
97 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
99 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
100 { "aTargets": [ "title-string" ], "sType": "title-string" }
107 $("a.delete_file").click(function(){
108 return ( confirm( _("Are you sure you want to delete this file ?") ) );
114 [% INCLUDE 'intranet-bottom.inc' %]