+++ /dev/null
-[%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
-
-[% SET data = job.data_as_hash %]
-
-<h2>[% LxERP.t8("Watch status") %]</h2>
-
-[% L.hidden_tag('', job.id, id="smu_job_id") %]
-
-JOBID: [% job.id %] <p>
- [% LxERP.t8("This status output will be refreshed every five seconds.") %]
-</p>
-<p>
- <table>
- <tr>
- <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
- <td valign="top">
- [% IF !data.status %]
- [% LxERP.t8("waiting for job to be started") %]
- [% ELSIF data.status == 1 %]
- [% LxERP.t8("Uploading Data") %]
- [% ELSE %]
- [% LxERP.t8("Done.") %]
- [% END %]
- </td>
- </tr>
- <tr>
- <th valign="top" align="left">[% LxERP.t8("Number of data sets uploaded:") %]</th>
- <td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_uploaded) %] / [% HTML.escape(data.record_ids.size) %][% ELSE %]–[% END %]</td>
- </tr>
-
- <tr>
- <th valign="top" align="left">[% LxERP.t8("Conversion:") %]</th>
- <td valign="top">
-[% IF !data.status %]
- –
- <table>
- <tr class="listheader">
- <th>[% LxERP.t8("Part") %] </th>
- <th>[% LxERP.t8("Partnumber") %] </th>
- <th>[% LxERP.t8("Message") %] </th>
- </tr>
-
- [% FOREACH message = data.conversion %]
- <tr>
- <td valign="top">[% IF error.id %][% L.link(SELF.url_for(controller='ShopOrder', action='show', id=error.id), HTML.escape(error.number), target="_blank") %][% ELSE %]–[% END %]</td>
- <td valign="top">[% HTML.escape(message.message) %]</td>
- </tr>
- [% END %]
- </table>
- [% END %]
- </table>
-</p>