5 [%- IF SELF.report.test_mode %]
6 [%- LxERP.t8('Import preview') %]
8 [%- LxERP.t8('Import result') %]
12 [%- IF SELF.report.test_mode %]
14 [% LxERP.t8("The following is only a preview.") %]
15 [% LxERP.t8("No entries have been imported yet.") %]
19 [%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
21 [%- FOREACH rownum = SELF.display_rows %]
22 [%- IF rownum < SELF.report_numheaders %]
23 <tr class="listheading">
24 [%- FOREACH value = SELF.report_rows.${rownum} %]
25 <th>[% value | html %]</th>
27 <th>[%- LxERP.t8('Notes') %]</th>
30 [% csv_import_report_errors = SELF.report_status.${rownum}.errors %]
31 <tr class="[% IF csv_import_report_errors && csv_import_report_errors.size %]redrow[% ELSE %]listrow[% END %][% 1 - loop.count % 2 %]">
32 [%- FOREACH value = SELF.report_rows.${rownum} %]
33 <td>[%- value | html %]</td>
36 [%- FOREACH error = csv_import_report_errors %][%- error | html %][% UNLESS loop.last %]<br>[%- END %][%- END %]
37 [%- FOREACH info = SELF.report_status.${rownum}.information %][% IF rownum >= SELF.report_numheaders || csv_import_report_errors.size %]<br>[%- END %][%- info | html %][%- END %]
45 [%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
47 <script type='text/javascript'>
48 $(function(){ [%- IF SELF.reporterror %] kivi.clear_flash('info',0);kivi.display_flash('error','[% SELF.reporterror %]',0); [%- ELSE %][%- IF SELF.report.test_mode %] $('#action_import').show() [%- END %][%- END %] });