Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / csv_import / _preview.html
diff --git a/templates/webpages/csv_import/_preview.html b/templates/webpages/csv_import/_preview.html
deleted file mode 100644 (file)
index 01fe4d9..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-[% USE HTML %]
-[% USE LxERP %]
-
-[% IF SELF.data.size %]
- <h3>
-  [%- IF SELF.import_status == 'tested' %]
-   [%- LxERP.t8('Import preview') %]
-  [%- ELSE %]
-   [%- LxERP.t8('Import result') %]
-  [%- END %]
- </h3>
-
- <table>
-  <tr class="listheading">
-   [%- FOREACH column = SELF.info_headers.headers %]
-    <th>[%- HTML.escape(column) %]</th>
-   [%- END %]
-   [%- FOREACH column = SELF.headers.headers %]
-    <th>[%- HTML.escape(column) %]</th>
-   [%- END %]
-   [%- FOREACH column = SELF.raw_data_headers.headers %]
-    <th>[%- HTML.escape(column) %]</th>
-   [%- END %]
-   <th>[%- LxERP.t8('Notes') %]</th>
-  </tr>
-
-  [%- 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)) %]
-  <tr class="[% IF row.errors.size %]redrow[% ELSE %]listrow[% END %][% loop.count % 2 %]">
-   [%- FOREACH method = SELF.info_headers.methods %]
-    <td>[%- HTML.escape(row.info_data.$method) %]</td>
-   [%- END %]
-   [%- FOREACH method = SELF.headers.methods %]
-    <td>[%- HTML.escape(row.object.$method) %]</td>
-   [%- END %]
-   [%- FOREACH method = SELF.raw_data_headers.headers %]
-    <td>[%- HTML.escape(row.raw_data.$method) %]</td>
-   [%- END %]
-   <td>
-    [%- FOREACH error = row.errors %][%- HTML.escape(error) %][% UNLESS loop.last %]<br>[%- END %][%- END %]
-    [%- FOREACH info  = row.information %][% IF !loop.first || row.errors.size %]<br>[%- END %][%- HTML.escape(info) %][%- END %]
-   </td>
-  </tr>
-  [%- END %]
-  [%- END %]
-
- </table>
-[%- END %]