06f6f02e483641087ae69493df9cfc33349dfa3e
[kivitendo-erp.git] / templates / webpages / pay_posting_import / form.html
1 [%- USE HTML %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE T8 %]
5 [%- INCLUDE 'common/flash.html' %]
6 <div class="listtop">[% FORM.title %]</div>
7
8 [% IF (SELF.gl_trans.size) %]
9   <p>[% SELF.gl_trans.size %]&nbsp;[% "entries imported" | $T8 %].</p>
10 <div style="padding-bottom: 15px">
11  <table id="gl_trans">
12   <thead>
13    <tr>
14     <th class="listheading">[%- LxERP.t8("Date") %]</th>
15     <th class="listheading">[%- LxERP.t8("Description") %]</th>
16     <th class="listheading">[%- LxERP.t8("Debit") %]</th>
17     <th class="listheading">[%- LxERP.t8("Credit") %]</th>
18     <th class="listheading">[%- LxERP.t8("Amount") %]</th>
19    </tr>
20   </thead>
21   <tbody>
22   [%- FOREACH gl = SELF.gl_trans %]
23     <tr class="listrow[% loop.count % 2 %]">
24     <td>[%- gl.transdate.to_kivitendo -%]</td>
25     <td align="left">[%- gl.description -%]</td>
26     <td align="left">[%- gl.transactions.1.chart.accno -%]&nbsp;[%- gl.transactions.1.chart.description -%]</td>
27     <td align="left">[%- gl.transactions.0.chart.accno -%]&nbsp;[%- gl.transactions.0.chart.description -%]</td>
28     <td align="right"> [%- LxERP.format_amount(gl.transactions.0.amount    , 2) %]</td>
29    </tr>
30   [% END %]
31      </tbody>
32  </table>
33  <div>
34 [% END %]
35
36 <p>
37  [% "Import a File:" | $T8 %]
38 </p>
39 <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
40   [% L.input_tag('file', '', type => 'file', accept => '.csv') %]
41 </form>