X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2Freport.html;h=8bb3930fdd667c04e99b1c762cba8b375d446e9f;hb=e3dfdb7a78f6e0bc8ac1075fedc36f8247c6fd92;hp=91f3881ee6d5c6fcce5d94ab681c546e50fff9cb;hpb=2c3ecbd0419d17ac7c7a202d491377e59bea74a1;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/report.html b/templates/webpages/csv_import/report.html index 91f3881ee..8bb3930fd 100644 --- a/templates/webpages/csv_import/report.html +++ b/templates/webpages/csv_import/report.html @@ -7,6 +7,9 @@ [%- ELSE %] [%- LxERP.t8('Import result') %] [%- END %] + [%- IF SELF.num_errors -%] + ([%- SELF.num_errors -%] [%- LxERP.t8('Errors') -%]) + [%- END -%] [%- IF SELF.report.test_mode %] @@ -18,20 +21,30 @@ [%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %] + +[%- SET max_col = 0 %] [%- FOREACH rownum = SELF.display_rows %] + [%- SET max_col = max_col > SELF.report_rows.${rownum}.size ? max_col : SELF.report_rows.${rownum}.size %] + [%- LAST IF rownum >= SELF.report_numheaders %] +[%- END %] + +[%- FOREACH rownum = SELF.display_rows %] + [%- SET to_pad = max_col - SELF.report_rows.${rownum}.size %] [%- IF rownum < SELF.report_numheaders %] [%- FOREACH value = SELF.report_rows.${rownum} %] - [%- END %] + [%- END %] + [%- IF to_pad -%][%- END -%] [%- ELSE %] [% csv_import_report_errors = SELF.report_status.${rownum}.errors %] - + [%- FOREACH value = SELF.report_rows.${rownum} %] [%- END %] + [%- IF to_pad -%][%- END -%]
[% value | html %]-[%- LxERP.t8('Notes') %]
[%- value | html %]- [%- FOREACH error = csv_import_report_errors %][%- error | html %][% UNLESS loop.last %]
[%- END %][%- END %] [%- FOREACH info = SELF.report_status.${rownum}.information %][% IF rownum >= SELF.report_numheaders || csv_import_report_errors.size %]
[%- END %][%- info | html %][%- END %] @@ -45,5 +58,12 @@ [%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]