5 [% INCLUDE 'common/flash.html' %]
7 <h1>[% FORM.title %]</h1>
11 [% IF (SELF.gl_trans.size) %]
12 <table class="tbl-list" id="gl_trans">
13 <caption>[% SELF.gl_trans.size %] [% "entries imported" | $T8 %].</caption>
16 <th>[%- LxERP.t8("Date") %]</th>
17 <th>[%- LxERP.t8("Description") %]</th>
18 <th>[%- LxERP.t8("Debit") %]</th>
19 <th>[%- LxERP.t8("Credit") %]</th>
20 <th>[%- LxERP.t8("Amount") %]</th>
24 [%- FOREACH gl = SELF.gl_trans %]
26 <td>[%- gl.transdate.to_kivitendo -%]</td>
27 <td>[%- gl.description -%]</td>
28 <td>[%- gl.transactions.1.chart.accno -%] [%- gl.transactions.1.chart.description -%]</td>
29 <td>[%- gl.transactions.0.chart.accno -%] [%- gl.transactions.0.chart.description -%]</td>
30 <td class="numeric"> [%- LxERP.format_amount(gl.transactions.0.amount , 2) %]</td>
36 <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
37 <table class="tbl-horizontal">
38 <caption>[% "Import a File" | $T8 %]</caption>
40 <col class="wi-normal">
41 <col class="wi-lightwide">
45 <th>[% LxERP.t8("CSV File") %]</th>
46 <td>[% L.input_tag('file', '', type => 'file', accept => '.csv') %]</td>
49 <th><label for="set_closedto">[% LxERP.t8("Close Books up to") %]</label></th>
50 <td>[% L.checkbox_tag('set_closedto', value => 1, checked => 1, id => 'set_closedto') %] [% L.date_tag('closedto', closedto) %]</td>
56 </div><!-- /.wrapper -->