Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git] / templates / webpages / dunning / status.html
1 [% USE HTML %]
2 [% USE LxERP -%]
3 [% USE P -%]
4 [% USE T8 -%]
5 [% USE Base64 -%]
6
7 <h1>[% title | html %]</h1>
8
9 [%- INCLUDE 'common/flash.html' -%]
10
11 <table>
12   <thead class="listheading">
13     <tr>
14       <th>[% 'Dunning number' | $T8 %]</th>
15       <th width="250px">[% 'Invoice Number' | $T8 %]</th>
16       <th>[% 'Include original Invoices?' | $T8 %]</th>
17       <th>[% 'eMail?' | $T8 %]</th>
18       <th>[% 'Status' | $T8 %]</th>
19     </tr>
20   </thead>
21   <tbody>
22     [% FOREACH s = status -%]
23     <tr class=[%- IF s.error %]"listrow_error"[% ELSE %]"listrow"[% END %]>
24       <td>[% IF !s.error %][% P.link_tag('dn.pl?action=show_dunning&showold=1&dunning_id=' _ s.dunning_id, s.dunning_id) %][% END %]</td>
25       <td>[% s.invnumbers.join(", ") %]</td>
26       <td>[% s.print_original_invoice ? LxERP.t8('Yes') : LxERP.t8('No') %]</td>
27       <td>[% s.send_email ? LxERP.t8('Yes') : LxERP.t8('No') %]</td>
28       <td>[% s.error ? s.error : LxERP.t8('Ok') %]</td>
29     </tr>
30     [%- END %]
31   </tbody>
32 </table>
33
34 [%- IF pdf_filename && pdf_content -%]
35   <script type="text/javascript">
36     <!--
37       $(function() {kivi.save_file('[% pdf_content.encode_base64 %]', 'application/pdf', 0, '[% pdf_filename %]');});
38     -->
39   </script>
40 [%- END %]