[%- ELSE %]
[%- LxERP.t8('Import result') %]
[%- END %]
+ [%- IF SELF.num_errors -%]
+ <font color="red">([%- SELF.num_errors -%] [%- LxERP.t8('Errors') -%])</font>
+ [%- END -%]
</h2>
[%- IF SELF.report.test_mode %]
</tr>
[%- ELSE %]
[% csv_import_report_errors = SELF.report_status.${rownum}.errors %]
- <tr class="[% IF csv_import_report_errors && csv_import_report_errors.size %]redrow[% ELSE %]listrow[% END %][% 1 - loop.count % 2 %]">
+ <tr class="listrow[% IF csv_import_report_errors && csv_import_report_errors.size %]_error[% END %][% (loop.count + SELF.report_numheaders) % 2 %]">
[%- FOREACH value = SELF.report_rows.${rownum} %]
<td>[%- value | html %]</td>
[%- END %]
[%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
<script type='text/javascript'>
- $(function(){ [%- IF SELF.reporterror %] kivi.clear_flash('info',0);kivi.display_flash('error','[% SELF.reporterror %]',0); [%- ELSE %][%- IF SELF.report.test_mode %] $('#action_import').show() [%- END %][%- END %] });
+ $(function(){
+ [%- IF SELF.reporterror %]
+ kivi.clear_flash('info',0);
+ kivi.display_flash('error','[% SELF.reporterror %]',0);
+ [%- ELSIF SELF.report.test_mode %]
+ kivi.ActionBar.Action('#action_import').enable();
+ [%- END %]
+ });
</script>