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