Bug 35300: Add page-section to invoice files page
To test: * Enable AcqEnableFiles system preference * Go to acquisitions * Search for a vendor and receive shipment * Enter an invoice number and create new invoice * Finish receive * Click on 'manage invice files' link * Upload a sample file * Verify the table is missing the usual white background * Apply patch * Verify the the table now displays with the usual white background Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
5b58afd466
commit
731a549b71
1 changed files with 30 additions and 28 deletions
|
@ -51,34 +51,36 @@
|
|||
</div>
|
||||
[% END %]
|
||||
[% IF files %]
|
||||
<table id="invoice_files_details_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
<th>Uploaded</th>
|
||||
<th>Bytes</th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH f IN files %]
|
||||
<tr>
|
||||
<td><a href="?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
|
||||
<td>[% f.file_type | html %]</td>
|
||||
<td>[% f.file_description | html %]</td>
|
||||
<td data-order="[% f.date_uploaded | html %]">
|
||||
[% f.date_uploaded | $KohaDates %]
|
||||
</td>
|
||||
<td>[% f.file_size | html %]</td>
|
||||
<td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
|
||||
<td><a href="?invoiceid=[% invoiceid | uri %]&op=download&file_id=[% f.file_id | uri %]">Download</a></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page-section">
|
||||
<table id="invoice_files_details_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
<th>Uploaded</th>
|
||||
<th>Bytes</th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH f IN files %]
|
||||
<tr>
|
||||
<td><a href="?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td>
|
||||
<td>[% f.file_type | html %]</td>
|
||||
<td>[% f.file_description | html %]</td>
|
||||
<td data-order="[% f.date_uploaded | html %]">
|
||||
[% f.date_uploaded | $KohaDates %]
|
||||
</td>
|
||||
<td>[% f.file_size | html %]</td>
|
||||
<td><a class="delete_file" href="?invoiceid=[% invoiceid | html %]&op=delete&file_id=[% f.file_id | html %]">Delete</a></td>
|
||||
<td><a href="?invoiceid=[% invoiceid | uri %]&op=download&file_id=[% f.file_id | uri %]">Download</a></td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<div class="dialog message">
|
||||
<p>This invoice has no files attached.</p>
|
||||
|
|
Loading…
Reference in a new issue