2ce20ffa7816a37f0a5aaa44416af0273f5d3ac7
[kivitendo-erp.git] / templates / webpages / bp / list_spool.html
1 [%- USE L %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 [%- USE T8 %]
5 [%- USE url %]
6 [%- SET list_spool__callback = href _ '&sort=' _ sort %]
7
8 <h1>[% title | html %]</h1>
9
10 <form method=post action=bp.pl>
11
12 <p>
13 [% FOREACH option IN options %]
14   [% option %]
15   [% ', ' UNLESS loop.last %]
16 [% END %]
17 </p>
18
19 <table width=100%>
20  <tr>
21   <td class="listheading">[% L.checkbox_tag('checkall_box', checkall='input.check_all') %]</td>
22   <td class="listheading">[% L.link(href _ '&sort=transdate', LxERP.t8('Date')) %]</td>
23 [%- IF is_invoice %]
24   <td class="listheading">[% L.link(href _ '&sort=invoice', LxERP.t8('Invoice')) %]</td>
25 [%- END %]
26 [%- IF is_order %]
27   <td class="listheading">[% L.link(href _ '&sort=ordnumber', LxERP.t8('Order')) %]</td>
28 [%- END %]
29 [%- IF is_quotation %]
30   <td class="listheading">[% L.link(href _ '&sort=quonumber', LxERP.t8('Quotation')) %]</td>
31 [%- END %]
32   <td class="listheading">[% L.link(href _ '&sort=name', vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor')) %]</td>
33   <td class="listheading">[% 'Spoolfile' | $T8 %]</td>
34  </tr>
35 [%- FOREACH row = SPOOL %]
36  <tr class="listrow[% loop.count %]">
37   <td>[% SET list_spool__checked='checked_' _ loop.count; L.checkbox_tag(list_spool__checked, checked=$list_spool__checked, class='check_all') IF row.new_file %]</td>
38   <td>[% row.transdate %]</td>
39 [%- IF is_invoice %]
40   <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.invnumber) %]</td>
41 [%- END %]
42 [%- IF is_order %]
43   <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.ordnumber) %]</td>
44 [%- END %]
45 [%- IF is_quotation %]
46   <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.quonumber) %]</td>
47 [%- END %]
48   <td>[% row.name | html %]</td>
49   <td>[% L.link(spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
50  </tr>
51 [%- END %]
52
53 [% L.hidden_tag('rowcount', SPOOL.size) %]
54
55 </table>
56
57 <hr size=3 noshade>
58 <br>
59
60 [% L.hidden_tag('callback', callback) %]
61 [% L.hidden_tag('title', title) %]
62 [% L.hidden_tag('vc', vc) %]
63 [% L.hidden_tag('type', type) %]
64 [% L.hidden_tag('sort', sort) %]
65 [% L.hidden_tag('account', account) %]
66
67 [% L.hidden_tag('transdateto', transdateto) %]
68 [% L.hidden_tag('transdatefrom', transdatefrom) %]
69 [% L.hidden_tag('invnumber', invnumber) %]
70 [% L.hidden_tag('ordnumber', ordnumber) %]
71 [% L.hidden_tag('quonumber', quonumber) %]
72 [% L.hidden_tag('customer', customer) %]
73 [% L.hidden_tag('vendor', vendor) %]
74
75 [% L.submit_tag('action', LxERP.t8('Remove'), confirm=LxERP.t8('Are you sure you want to remove the marked entries from the queue?')) %]
76 [% L.submit_tag('action', LxERP.t8('Print')) %]
77
78 [% L.select_tag('printer', ALL_PRINTERS, title_key = 'printer_description') %]
79
80 </form>