3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions › Invoice › Files</title>
5 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="acq_invoice_files" class="acq">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'acquisitions-search.inc' %]
13 <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>
15 <div id="doc3" class="yui-t2">
20 <h2>Files for invoice: [% invoicenumber | html %]</h2>
21 <p><b>Vendor: </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
24 <div class="dialog alert">
25 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
26 [% IF errors.no_file %]You did not select a file to upload.[% END %]
27 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
31 <table id="invoice_files_details_table">
44 [% FOREACH f IN files %]
46 <td><a href="?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
47 <td>[% f.file_type | html %]</td>
48 <td>[% f.file_description | html %]</td>
49 <td class="title-string">
50 <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
52 <td>[% f.file_size %]</td>
53 <td><a class="delete_file" href="?invoiceid=[% invoiceid %]&op=delete&file_id=[% f.file_id %]">Delete</a></td>
54 <td><a href="?invoiceid=[% invoiceid %]&op=download&file_id=[% f.file_id %]">Download</a></td>
60 <div class="dialog message">
61 <p>This invoice has no files attached.</p>
66 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
67 <fieldset class="rows">
68 <legend>Upload New File</legend>
70 <li><input type="hidden" name="op" value="upload" />
71 <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
72 <label for="description">Description:</label>
73 <input name="description" id="description" type="text" /></li>
74 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
76 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
83 [% INCLUDE 'acquisitions-menu.inc' %]
87 [% MACRO jsinclude BLOCK %]
88 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
89 [% INCLUDE 'datatables.inc' %]
90 <script type="text/javascript">
91 $(document).ready(function() {
92 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
94 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
95 { "aTargets": [ "title-string" ], "sType": "title-string" }
102 $("a.delete_file").click(function(){
103 return ( confirm( _("Are you sure you want to delete this file ?") ) );
109 [% INCLUDE 'intranet-bottom.inc' %]