Revision a8fb17ea
Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt
templates/webpages/shop_part/_transfer_status.html | ||
---|---|---|
1 |
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%] |
|
2 |
|
|
3 |
[% SET data = job.data_as_hash %] |
|
4 |
|
|
5 |
<h2>[% LxERP.t8("Watch status") %]</h2> |
|
6 |
|
|
7 |
[% L.hidden_tag('', job.id, id="smu_job_id") %] |
|
8 |
|
|
9 |
JOBID: [% job.id %] <p> |
|
10 |
[% LxERP.t8("This status output will be refreshed every five seconds.") %] |
|
11 |
</p> |
|
12 |
<p> |
|
13 |
<table> |
|
14 |
<tr> |
|
15 |
<th valign="top" align="left">[% LxERP.t8("Current status:") %]</th> |
|
16 |
<td valign="top"> |
|
17 |
[% IF !data.status %] |
|
18 |
[% LxERP.t8("waiting for job to be started") %] |
|
19 |
[% ELSIF data.status == 1 %] |
|
20 |
[% LxERP.t8("Uploading Data") %] |
|
21 |
[% ELSE %] |
|
22 |
[% LxERP.t8("Done.") %] |
|
23 |
[% END %] |
|
24 |
</td> |
|
25 |
</tr> |
|
26 |
<tr> |
|
27 |
<th valign="top" align="left">[% LxERP.t8("Number of data sets uploaded:") %]</th> |
|
28 |
<td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_uploaded) %] / [% HTML.escape(data.record_ids.size) %][% ELSE %]–[% END %]</td> |
|
29 |
</tr> |
|
30 |
|
|
31 |
<tr> |
|
32 |
<th valign="top" align="left">[% LxERP.t8("Conversion:") %]</th> |
|
33 |
<td valign="top"> |
|
34 |
[% IF !data.status %] |
|
35 |
– |
|
36 |
<table> |
|
37 |
<tr class="listheader"> |
|
38 |
<th>[% LxERP.t8("Part") %] </th> |
|
39 |
<th>[% LxERP.t8("Partnumber") %] </th> |
|
40 |
<th>[% LxERP.t8("Message") %] </th> |
|
41 |
</tr> |
|
42 |
|
|
43 |
[% FOREACH message = data.conversion %] |
|
44 |
<tr> |
|
45 |
<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> |
|
46 |
<td valign="top">[% HTML.escape(message.message) %]</td> |
|
47 |
</tr> |
|
48 |
[% END %] |
|
49 |
</table> |
|
50 |
[% END %] |
|
51 |
</table> |
|
52 |
</p> |
Auch abrufbar als: Unified diff
unbenutzte HTML-Vorlage entfernt