X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcsv_import%2F_preview.html;h=01fe4d9ff2eff2ec2c3faf41eb8a750e199c8195;hb=464f44accd46ed0b2e1f7e2459f53337a6720a7f;hp=ee166995fdc12f51ab8ec73c6525bc6b38c2db9a;hpb=13b5fc65921f5c030a64a3c6f2faf4c822bc14a4;p=kivitendo-erp.git diff --git a/templates/webpages/csv_import/_preview.html b/templates/webpages/csv_import/_preview.html index ee166995f..01fe4d9ff 100644 --- a/templates/webpages/csv_import/_preview.html +++ b/templates/webpages/csv_import/_preview.html @@ -1,33 +1,48 @@ [% USE HTML %] [% USE LxERP %] -

- [%- IF SELF.import_status == 'tested' %] - [%- LxERP.t8('Import preview') %] - [%- ELSE %] - [%- LxERP.t8('Import result') %] - [%- END %] -

- [% IF SELF.data.size %] +

+ [%- IF SELF.import_status == 'tested' %] + [%- LxERP.t8('Import preview') %] + [%- ELSE %] + [%- LxERP.t8('Import result') %] + [%- END %] +

+ + [%- FOREACH column = SELF.info_headers.headers %] + + [%- END %] [%- FOREACH column = SELF.headers.headers %] [%- END %] + [%- FOREACH column = SELF.raw_data_headers.headers %] + + [%- END %] [%- FOREACH row = SELF.data %] + [%- IF (SELF.profile.get('full_preview') == 2) || ((SELF.profile.get('full_preview') == 1) && (row.errors.size || row.information.size)) || ((SELF.profile.get('full_preview') == 0) && (loop.count < 21)) %] + [%- FOREACH method = SELF.info_headers.methods %] + + [%- END %] [%- FOREACH method = SELF.headers.methods %] [%- END %] + [%- FOREACH method = SELF.raw_data_headers.headers %] + + [%- END %] [%- END %] + [%- END %]
[%- HTML.escape(column) %][%- HTML.escape(column) %][%- HTML.escape(column) %][%- LxERP.t8('Notes') %]
[%- HTML.escape(row.info_data.$method) %][%- HTML.escape(row.object.$method) %][%- HTML.escape(row.raw_data.$method) %] [%- FOREACH error = row.errors %][%- HTML.escape(error) %][% UNLESS loop.last %]
[%- END %][%- END %] + [%- FOREACH info = row.information %][% IF !loop.first || row.errors.size %]
[%- END %][%- HTML.escape(info) %][%- END %]
[%- END %]