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' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
24 <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a>
27 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | uri %]">[% invoicenumber | html %]</a>
30 <a href="#" aria-current="page">Files</a>
35 <div class="main container-fluid">
37 <div class="col-sm-10 col-sm-push-2">
40 <h2>Files for invoice: [% invoicenumber | html %]</h2>
41 <p><strong>Vendor: </strong><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% suppliername | html %]</a></p>
44 <div class="dialog alert">
45 [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
46 [% IF errors.no_file %]You did not select a file to upload.[% END %]
47 [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
51 <table id="invoice_files_details_table">
64 [% FOREACH f IN files %]
66 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
67 <td>[% f.file_type | html %]</td>
68 <td>[% f.file_description | html %]</td>
69 <td class="title-string">
70 <span title="[% f.date_uploaded | html %]">[% f.date_uploaded | $KohaDates %]</span>
72 <td>[% f.file_size | html %]</td>
73 <td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
74 <td><a href="?invoiceid=[% invoiceid | uri %]&op=download&file_id=[% f.file_id | uri %]">Download</a></td>
80 <div class="dialog message">
81 <p>This invoice has no files attached.</p>
86 <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
87 <fieldset class="rows">
88 <legend>Upload New File</legend>
90 <li><input type="hidden" name="op" value="upload" />
91 <input type="hidden" name="invoiceid" value="[% invoiceid | html %]" />
92 <label for="description">Description:</label>
93 <input name="description" id="description" type="text" /></li>
94 <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
96 <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
101 </div> <!-- /.col-sm-10.col-sm-push-2 -->
103 <div class="col-sm-2 col-sm-pull-10">
105 [% INCLUDE 'acquisitions-menu.inc' %]
107 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
108 </div> <!-- /.row -->
110 [% MACRO jsinclude BLOCK %]
111 [% Asset.js("js/acquisitions-menu.js") | $raw %]
112 [% INCLUDE 'datatables.inc' %]
114 $(document).ready(function() {
115 $("#invoice_files_details_table").dataTable($.extend(true, {}, dataTablesDefaults, {
117 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
118 { "aTargets": [ "title-string" ], "sType": "title-string" }
125 $("a.delete_file").click(function(){
126 return ( confirm( _("Are you sure you want to delete this file ?") ) );
132 [% INCLUDE 'intranet-bottom.inc' %]