Kunden-/Lieferantenstammdatenimport: zumindest das Testen funktioniert
[kivitendo-erp.git] / templates / webpages / csv_import / _preview.html
1 [% USE HTML %]
2 [% USE LxERP %]
3
4 <h3>
5  [%- IF SELF.import_status == 'tested' %]
6   [%- LxERP.t8('Import preview') %]
7  [%- ELSE %]
8   [%- LxERP.t8('Import result') %]
9  [%- END %]
10 </h3>
11
12 <p>[%- LxERP.t8('Found #1 objects to import.', SELF.data.size || 0) %]</p>
13
14 [% IF SELF.data.size %]
15  <table>
16   <tr class="listheading">
17    [%- FOREACH column = SELF.headers.headers %]
18     <th>[%- HTML.escape(column) %]</th>
19    [%- END %]
20    <th>[%- LxERP.t8('Notes') %]</th>
21   </tr>
22
23   [%- FOREACH row = SELF.data %]
24   <tr class="[% IF row.errors.size %]redrow[% ELSE %]listrow[% END %][% loop.count % 2 %]">
25    [%- FOREACH method = SELF.headers.methods %]
26     <td>[%- HTML.escape(row.object.$method) %]</td>
27    [%- END %]
28    <td>
29     [%- FOREACH error = row.errors %][%- HTML.escape(error) %][% UNLESS loop.last %]<br>[%- END %][%- END %]
30    </td>
31   </tr>
32   [%- END %]
33
34  </table>
35 [%- END %]