--- /dev/null
+[%- USE HTML %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE T8 %]
+
+<h1>[% FORM.title %]</h1>
+
+[% IF preview %]
+ <form method="post" action="controller.pl" enctype="multipart/form-data" id="form">
+ [% L.hidden_tag('file_name', SELF.file_name) %]
+ [% L.hidden_tag('charset', SELF.charset) %]
+ </form>
+[% END %]
+
+<h2>[% LxERP.t8("Overview") %]</h2>
+
+<div>
+ <table>
+ <tr>
+ <td>[% LxERP.t8("Total number of entries") %]:</td>
+ <td align="right">[% SELF.statistics.total %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Entries with errors") %]:</td>
+ <td align="right">[% SELF.statistics.errors %]</td>
+ </tr>
+
+ <tr>
+ <td>[% LxERP.t8("Already imported entries (duplicates)") %]:</td>
+ <td align="right">[% SELF.statistics.duplicates %]</td>
+ </tr>
+
+ <tr>
+[% IF preview %]
+ <td>[% LxERP.t8("Entries ready to import") %]:</td>
+ <td align="right">[% SELF.statistics.to_import %]</td>
+[% ELSE %]
+ <td>[% LxERP.t8("Imported entries") %]:</td>
+ <td align="right">[% SELF.statistics.imported %]</td>
+[% END %]
+ </tr>
+ </table>
+</div>
+
+[% IF SELF.statistics.total %]
+
+<h2>[% LxERP.t8("Transactions") %]</h2>
+
+<table>
+ <thead>
+ <tr class="listheading">
+ <th>[% LxERP.t8("Transaction date") %]</th>
+ <th>[% LxERP.t8("Valutadate") %]</th>
+ <th>[% LxERP.t8("Other party") %]</th>
+ <th>[% LxERP.t8("Purpose") %]</th>
+ <th>[% LxERP.t8("Amount") %]</th>
+ <th>[% LxERP.t8("Remote account") %]</th>
+ <th>[% LxERP.t8("Local account") %]</th>
+ <th>[% LxERP.t8("Information") %]</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ [% FOREACH transaction = SELF.transactions %]
+ <tr class="listrow[% IF transaction.error %]_error[% END %]">
+ <td align="right">[% transaction.transdate.to_kivitendo %]</td>
+ <td align="right">[% transaction.valutadate.to_kivitendo %]</td>
+ <td>[% HTML.escape(transaction.remote_name) %]</td>
+ <td>[% HTML.escape(transaction.purpose) %]</td>
+ <td align="right">[% LxERP.format_amount(transaction.amount, 2) %]</td>
+ <td>
+ [% IF transaction.remote_bank_code && transaction.remote_account_number %]
+ [% HTML.escape(transaction.remote_bank_code) %] / [% HTML.escape(transaction.remote_account_number) %]
+ [% END %]
+ </td>
+ <td>[% HTML.escape(transaction.bank_account.name) %]</td>
+ <td>
+ [% IF transaction.error %]
+ [% HTML.escape(transaction.error) %]
+ [% ELSIF transaction.duplicate %]
+ [% LxERP.t8("Duplicate") %]
+ [% ELSIF preview %]
+ [% LxERP.t8("To import") %]
+ [% ELSE %]
+ [% LxERP.t8("Imported") %]
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ </tbody>
+</table>
+
+[% END %]