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": [ "title-string" ], "sType": "title-string" }
21 $("a.delete_file").click(function(){
22 return ( confirm( _("Are you sure you want to delete this file ?") ) );
28 <body id="acq_invoice_files" class="acq">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'acquisitions-search.inc' %]
32 <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>
34 <div id="doc3" class="yui-t2">
39 <h2>Files for invoice: [% invoicenumber | html %]</h2>
40 <p><b>Vendor: </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
43 <div class="dialog alert">
44 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
45 [% IF errors.no_file %]You did not select a file to upload.[% END %]
46 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
50 <table id="invoice_files_details_table">
63 [% FOREACH f IN files %]
65 <td><a href="?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
66 <td>[% f.file_type | html %]</td>
67 <td>[% f.file_description | html %]</td>
68 <td class="title-string">
69 <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
71 <td>[% f.file_size %]</td>
72 <td><a class="delete_file" href="?invoiceid=[% invoiceid %]&op=delete&file_id=[% f.file_id %]">Delete</a></td>
73 <td><a href="?invoiceid=[% invoiceid %]&op=download&file_id=[% f.file_id %]">Download</a></td>
79 <div class="dialog message">
80 <p>This invoice has no files attached.</p>
85 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
86 <fieldset class="rows">
87 <legend>Upload New File</legend>
89 <li><input type="hidden" name="op" value="upload" />
90 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
91 <label for="description">Description:</label>
92 <input name="description" id="description" type="text" /></li>
93 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
95 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
102 [% INCLUDE 'acquisitions-menu.inc' %]
105 [% INCLUDE 'intranet-bottom.inc' %]