5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Files › Invoice › Acquisitions › Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_invoice_files" class="acq">
11 [% WRAPPER 'header.inc' %]
12 [% INCLUDE 'acquisitions-search.inc' %]
15 [% WRAPPER 'sub-header.inc' %]
16 [% WRAPPER breadcrumbs %]
17 [% WRAPPER breadcrumb_item %]
18 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
20 [% WRAPPER breadcrumb_item %]
21 <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a>
23 [% WRAPPER breadcrumb_item %]
24 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | uri %]">[% invoicenumber | html %]</a>
26 [% WRAPPER breadcrumb_item bc_active= 1 %]
29 [% END #/ WRAPPER breadcrumbs %]
30 [% END #/ WRAPPER sub-header.inc %]
32 <div class="main container-fluid">
34 <div class="col-sm-10 col-sm-push-2">
37 <h1>Files for invoice: [% invoicenumber | html %]</h1>
38 <p><strong>Vendor: </strong><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% suppliername | html %]</a></p>
41 <div class="dialog alert">
42 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
43 [% IF errors.no_file %]You did not select a file to upload.[% END %]
44 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
48 <table id="invoice_files_details_table">
61 [% FOREACH f IN files %]
63 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
64 <td>[% f.file_type | html %]</td>
65 <td>[% f.file_description | html %]</td>
66 <td data-order="[% f.date_uploaded | html %]">
67 [% f.date_uploaded | $KohaDates %]
69 <td>[% f.file_size | html %]</td>
70 <td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
71 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&file_id=[% f.file_id | uri %]">Download</a></td>
77 <div class="dialog message">
78 <p>This invoice has no files attached.</p>
83 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
84 <fieldset class="rows">
85 <legend>Upload new file</legend>
87 <li><input type="hidden" name="op" value="upload" />
88 <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" />
89 <label for="description">Description:</label>
90 <input name="description" id="description" type="text" /></li>
91 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
94 <fieldset class="action"><input name="upload" type="submit" id="upload" class="btn btn-primary" value="Upload file" /></fieldset>
98 </div> <!-- /.col-sm-10.col-sm-push-2 -->
100 <div class="col-sm-2 col-sm-pull-10">
102 [% INCLUDE 'acquisitions-menu.inc' %]
104 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
105 </div> <!-- /.row -->
107 [% MACRO jsinclude BLOCK %]
108 [% Asset.js("js/acquisitions-menu.js") | $raw %]
109 [% INCLUDE 'datatables.inc' %]
111 $(document).ready(function() {
112 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
114 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }
121 $("a.delete_file").click(function(){
122 return ( confirm( _("Are you sure you want to delete this file ?") ) );
128 [% INCLUDE 'intranet-bottom.inc' %]