bp::list_spool auf template umgestellt.
[kivitendo-erp.git] / templates / webpages / bp / list_spool.html
diff --git a/templates/webpages/bp/list_spool.html b/templates/webpages/bp/list_spool.html
new file mode 100644 (file)
index 0000000..02e4b26
--- /dev/null
@@ -0,0 +1,86 @@
+[%- USE L %]
+[%- USE HTML %]
+[%- USE LxERP %]
+[%- USE T8 %]
+[%- USE url %]
+[% SET list_spool__callback = href _ '&sort=' _ sort %]
+<body>
+
+<h1>[% title | html %]</h1>
+
+<form method=post action=bp.pl>
+
+<p>
+[% FOREACH option IN options %]
+  [% option %]
+  [% ', ' UNLESS loop.last %]
+[% END %]
+</p>
+
+<table width=100%>
+ <tr>
+  <td class="listheading">&nbsp;</td>
+  <td class="listheading">[% L.link(href _ '&sort=transdate', LxERP.t8('Date')) %]</td>
+[%- IF is_invoice %]
+  <td class="listheading">[% L.link(href _ '&sort=invoice', LxERP.t8('Invoice')) %]</td>
+[%- END %]
+[%- IF is_order %]
+  <td class="listheading">[% L.link(href _ '&sort=ordnumber', LxERP.t8('Order')) %]</td>
+[%- END %]
+[%- IF is_quotation %]
+  <td class="listheading">[% L.link(href _ '&sort=quonumber', LxERP.t8('Quotation')) %]</td>
+[%- END %]
+  <td class="listheading">[% L.link(href _ '&sort=name', vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor')) %]</td>
+  <td class="listheading">[% 'Spoolfile' | $T8 %]</td>
+ </tr>
+[%- FOREACH row = SPOOL %]
+ <tr class="listrow[% loop.count %]">
+  <td>[% SET list_spool__checked='checked_' _ loop.count; L.checkbox_tag(list_spool__checked, checked=$list_spool__checked) IF row.new_file %]</td>
+  <td>[% row.transdate %]</td>
+[%- IF is_invoice %]
+  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.invnumber) %]</td>
+[%- END %]
+[%- IF is_order %]
+  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.ordnumber) %]</td>
+[%- END %]
+[%- IF is_quotation %]
+  <td>[% L.link(url(row.module _ '.pl', action='edit' ,type=type, callback=list_spool__callback, id=row.id), row.quonumber) %]</td>
+[%- END %]
+  <td>[% row.name | html %]</td>
+  <td>[% L.link(spool _ '/' _ row.spoolfile, row.spoolfile) %][% L.hidden_tag('spoolfile_' _ loop.count, row.spoolfile) %]</td>
+ </tr>
+[%- END %]
+
+[% L.hidden_tag('rowcount', SPOOL.size) %]
+
+</table>
+
+<hr size=3 noshade>
+<br>
+
+[% L.hidden_tag('callback', callback) %]
+[% L.hidden_tag('title', title) %]
+[% L.hidden_tag('vc', vc) %]
+[% L.hidden_tag('type', type) %]
+[% L.hidden_tag('sort', sort) %]
+[% L.hidden_tag('account', account) %]
+
+[% L.hidden_tag('transdateto', transdateto) %]
+[% L.hidden_tag('transdatefrom', transdatefrom) %]
+[% L.hidden_tag('invnumber', invnumber) %]
+[% L.hidden_tag('ordnumber', ordnumber) %]
+[% L.hidden_tag('quonumber', quonumber) %]
+[% L.hidden_tag('customer', customer) %]
+[% L.hidden_tag('vendor', vendor) %]
+
+[% L.submit_tag('action', LxERP.t8('Remove')) %]
+[% L.submit_tag('action', LxERP.t8('Print')) %]
+
+[% L.select_tag('printer', L.options_for_select(ALL_PRINTERS, title='printer_description')) %]
+
+</form>
+
+</body>
+</html>
+
+