3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions › Invoice › Files</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 $(document).ready(function() {
11 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
13 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
14 { "aTargets": [ 3 ], "sType": "natural" }
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'acquisitions-search.inc' %]
29 <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 %]">[% invoicenumber %]</a> › Files</div>
31 <div id="doc3" class="yui-t2">
36 <h2>Files for invoice: [% invoicenumber | html %]</h2>
37 <p><b>Vendor: </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
40 <div class="dialog alert">
41 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
42 [% IF errors.no_file %]You did not select a file to upload.[% END %]
43 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
47 <table id="invoice_files_details_table">
60 [% FOREACH f IN files %]
62 <td><a href="?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
63 <td>[% f.file_type | html %]</td>
64 <td>[% f.file_description | html %]</td>
65 <td><!-- [% f.date_uploaded %] -->[% f.date_uploaded | $KohaDates %]</td>
66 <td>[% f.file_size %]</td>
67 <td><a href="?invoiceid=[% invoiceid %]&op=delete&file_id=[% f.file_id %]">Delete</a></td>
68 <td><a href="?invoiceid=[% invoiceid %]&op=download&file_id=[% f.file_id %]">Download</a></td>
74 <div class="dialog message">
75 <p>This invoice has no files attached.</p>
80 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
81 <fieldset class="rows">
82 <legend>Upload New File</legend>
84 <li><input type="hidden" name="op" value="upload" />
85 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
86 <label for="description">Description:</label>
87 <input name="description" id="description" type="text" /></li>
88 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
90 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
97 [% INCLUDE 'acquisitions-menu.inc' %]
100 [% INCLUDE 'intranet-bottom.inc' %]