[% USE HTML %] [% USE L %] [% USE LxERP %]

[% FORM.title %]

[% INCLUDE 'common/flash.html' %] [% PROCESS 'background_job_history/_filter.html' filter=SELF.models.filtered.laundered %]
[% IF !ENTRIES.size %]

[% LxERP.t8('There are no entries in the background job history.') %]

[% ELSE %] [% FOREACH entry = ENTRIES %] [% END %]
[% L.sortable_table_header('package_name') %] [% L.sortable_table_header('description') %] [% L.sortable_table_header('run_at') %] [% L.sortable_table_header('status') %] [% L.sortable_table_header('result') %] [% L.sortable_table_header('error') %]
[% HTML.escape(entry.package_name) %] [% HTML.escape(entry.description) %] [% HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %] [% IF entry.status == 'success' %] [% LxERP.t8('succeeded') %] [% ELSIF entry.status == 'failure' %] [% LxERP.t8('failed') %] [% ELSE %] [% HTML.escape(entry.status) %] [% END %] [% HTML.escape(entry.result) %] [% IF entry.error_col %]
[% HTML.escape(L.truncate(entry.error_col)) %]
[% END %]
[% END %] [% L.paginate_controls %]