Revision c4e0f7df
Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt
templates/webpages/part/_assortment_row.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE L %] |
|
5 |
[%- USE P %] |
|
6 |
<tr class="listrow[% listrow %] assortment_item_row"> |
|
7 |
<td style='display:none'> |
|
8 |
[% IF orphaned %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE L %] |
|
5 |
[% USE P %] |
|
6 |
|
|
7 |
<tr> |
|
8 |
<td style="display:none"> |
|
9 |
[% IF orphaned %] |
|
9 | 10 |
[% L.hidden_tag("assortment_items[+].parts_id", ITEM.part.id) %] |
10 |
[% END %] |
|
11 |
</td> |
|
12 |
<td align="center" [% UNLESS orphaned %]style='display:none'[% END %]> |
|
13 |
[%- L.button_tag("kivi.Part.delete_item_row(this)", |
|
14 |
LxERP.t8("X")) %] [% # , confirm=LxERP.t8("Are you sure?")) %] |
|
15 |
</td> |
|
16 |
<td> |
|
17 |
<div name="position" class="numeric"> |
|
18 |
[% HTML.escape(position) or HTML.escape(ITEM.position) %] |
|
19 |
</div> |
|
20 |
</td> |
|
21 |
<td align="center" [% UNLESS orphaned %]style='display:none'[% END %]> |
|
22 |
<img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"> |
|
23 |
</td> |
|
24 |
<td nowrap> |
|
25 |
[% ITEM.part.presenter.part %] |
|
26 |
</td> |
|
27 |
<td> |
|
28 |
[% HTML.escape(ITEM.part.description) %] |
|
29 |
</td> |
|
30 |
<td nowrap> |
|
11 |
[% END %] |
|
12 |
</td> |
|
13 |
<td class="center"[% UNLESS orphaned %] style="display:none"[% END %]> |
|
14 |
[% L.button_tag("kivi.Part.delete_item_row(this)", LxERP.t8("✖"), class="wi-verytiny neutral delete-item") %] [% # , confirm=LxERP.t8("Are you sure?")) %] |
|
15 |
</td> |
|
16 |
<td class="center"> |
|
17 |
<div id="position"> |
|
18 |
[% HTML.escape(position) or HTML.escape(ITEM.position) %] |
|
19 |
</div> |
|
20 |
</td> |
|
21 |
<td class="center"[% UNLESS orphaned %] style="display:none"[% END %]> |
|
22 |
<img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]" class="dragdrop"> |
|
23 |
</td> |
|
24 |
<td> |
|
25 |
[% ITEM.part.presenter.part %] |
|
26 |
</td> |
|
27 |
<td> |
|
28 |
[% HTML.escape(ITEM.part.description) %] |
|
29 |
</td> |
|
30 |
<td class="numeric"> |
|
31 | 31 |
[% IF orphaned %] |
32 |
[%- L.input_tag("assortment_items[].qty_as_number",
|
|
32 |
[% L.input_tag("assortment_items[].qty_as_number", |
|
33 | 33 |
ITEM.qty_as_number, |
34 |
size = 10, |
|
35 |
class="recalc reformat_number numeric") %] |
|
34 |
maxsize = 10, |
|
35 |
class="recalc reformat_number numeric wi-verysmall", |
|
36 |
size=10) %] |
|
36 | 37 |
[% ELSE %] |
37 | 38 |
[% ITEM.qty_as_number | html %] |
38 | 39 |
[% END %] |
39 |
</td>
|
|
40 |
<td nowrap>
|
|
40 |
</td> |
|
41 |
<td>
|
|
41 | 42 |
[% IF orphaned %] |
42 |
[%- L.select_tag("assortment_items[].unit",
|
|
43 |
[% L.select_tag("assortment_items[].unit", |
|
43 | 44 |
ITEM.part.available_units, |
44 | 45 |
default = ITEM.part.unit, |
45 | 46 |
title_key = 'name', |
46 | 47 |
value_key = 'name', |
47 |
class = 'unitselect') %] |
|
48 |
class = 'unitselect wi-verysmall') %]
|
|
48 | 49 |
[% ELSE %] |
49 | 50 |
[% ITEM.part.unit | html %] |
50 | 51 |
[% END %] |
51 |
</td>
|
|
52 |
<td>
|
|
52 |
</td> |
|
53 |
<td class="center">
|
|
53 | 54 |
[% IF orphaned %] |
54 | 55 |
[% L.checkbox_tag('assortment_items[].charge', checked => ITEM.charge, class => 'checkbox', for_submit=1) %] |
55 | 56 |
[% ELSE %] |
56 |
[% IF ITEM.charge %][% 'Yes' | $T8 %][%- ELSE %][% 'No' | $T8 %][%- END %]
|
|
57 |
[% IF ITEM.charge %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]
|
|
57 | 58 |
[% END %] |
58 |
</td> |
|
59 |
<td align="right"> |
|
60 |
[%- L.div_tag(LxERP.format_amount(ITEM.linetotal_sellprice, 2, 0), name="linetotal") %] |
|
61 |
</td> |
|
62 |
<td align="right"> |
|
63 |
[% ITEM.part.sellprice_as_number %] |
|
64 |
</td> |
|
65 |
<td align="right"> |
|
66 |
[% ITEM.part.lastcost_as_number %] |
|
67 |
</td> |
|
68 |
<td align="right"> |
|
69 |
[% HTML.escape(ITEM.part.partsgroup.partsgroup) %] |
|
70 |
</td> |
|
71 |
</tr> |
|
59 |
</td> |
|
60 |
<td class="numeric"> |
|
61 |
[% L.div_tag(LxERP.format_amount(ITEM.linetotal_sellprice, 2, 0), name="linetotal") %] |
|
62 |
</td> |
|
63 |
<td class="numeric"> |
|
64 |
[% ITEM.part.sellprice_as_number %] |
|
65 |
</td> |
|
66 |
<td class="numeric"> |
|
67 |
[% ITEM.part.lastcost_as_number %] |
|
68 |
</td> |
|
69 |
<td class="numeric"> |
|
70 |
[% HTML.escape(ITEM.part.partsgroup.partsgroup) %] |
|
71 |
</td> |
|
72 |
</tr> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/part/..