5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Acquisitions › Invoice › Files</title>
7 [% INCLUDE 'doc-head-close.inc' %]
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> › <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>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
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>
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 %]
32 <table id="invoice_files_details_table">
45 [% FOREACH f IN files %]
47 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&view=1&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>
53 <td>[% f.file_size | html %]</td>
54 <td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
55 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&file_id=[% f.file_id | uri %]">Download</a></td>
61 <div class="dialog message">
62 <p>This invoice has no files attached.</p>
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>
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>
77 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
82 </div> <!-- /.col-sm-10.col-sm-push-2 -->
84 <div class="col-sm-2 col-sm-pull-10">
86 [% INCLUDE 'acquisitions-menu.inc' %]
88 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
91 [% MACRO jsinclude BLOCK %]
92 [% Asset.js("js/acquisitions-menu.js") | $raw %]
93 [% INCLUDE 'datatables.inc' %]
95 $(document).ready(function() {
96 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
98 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
99 { "aTargets": [ "title-string" ], "sType": "title-string" }
106 $("a.delete_file").click(function(){
107 return ( confirm( _("Are you sure you want to delete this file ?") ) );
113 [% INCLUDE 'intranet-bottom.inc' %]