+++ /dev/null
-[% USE LxERP %]
-
-<h3>[%- LxERP.t8('Errors') %]</h3>
-
-<p>[%- LxERP.t8('Found #1 errors.', SELF.errors.size) %]</p>
-
-<table>
- <tr class="listheading">
- <th>[%- LxERP.t8('Line and column') %]</th>
- <th>[%- LxERP.t8('Block') %]</th>
- <th>[%- LxERP.t8('Error') %]</th>
- </tr>
- [% FOREACH err = SELF.errors %]
- <tr class="listrow[% loop.count % 2 %]">
- <td>[% err.4 %]:[% err.3 %]</td>
- <td>[% err.0 %]</td>
- <td>[% err.2 %]</td>
- </tr>
- [% END %]
-</table>
+++ /dev/null
-[% 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 %]
+++ /dev/null
-[% USE LxERP %]
-
-<h3>[%- LxERP.t8('Import summary') %]</h3>
-
-[%- IF SELF.import_status == 'imported' %]
- <p>[%- LxERP.t8('#1 of #2 importable objects were imported.', SELF.num_imported, SELF.num_importable || 0) %]</p>
-[%- ELSE %]
- <p>[%- LxERP.t8('Found #1 objects of which #2 can be imported.', SELF.data.size || 0, SELF.num_importable || 0) %]</p>
-[%- END %]
+++ /dev/null
- [%- IF SELF.errors %]
- [%- PROCESS 'csv_import/_errors.html' %]
- [%- END %]
-
- [%- PROCESS 'csv_import/_result.html' %]
- [%- PROCESS 'csv_import/_preview.html' %]
-
-[% IF progress == 100 %]
-<script type='text/javascript'>
- $(function(){ $('#action_import').show() })
-</script>
-[% END %]