Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c4e0f7df

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID c4e0f7dfb6c5297e0207144a2ad219d97ccd7841
  • Vorgänger e9c895f9
  • Nachfolger ef6fb04b

Neues kivitendo Design Aenderungen in templates/webpages/part/..

Unterschiede anzeigen:

templates/webpages/part/_assembly_row.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
5
[%- USE P %]
6
  <tr class="listrow[% listrow %] assembly_item_row">
7
    <td style='display:none'>
8
      [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5
[% USE P %]
6

  
7
<tr class="assembly_item_row">
8
  <td style="display:none">
9
    [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
9 10
      [% L.hidden_tag("assembly_items[+].parts_id", ITEM.part.id) %]
10
      [% END %]
11
    </td>
12
    <td align="center" [% UNLESS orphaned || AUTH.assert('assembly_edit', 1) %]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 || AUTH.assert('assembly_edit', 1) %]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 nowrap>
28
       [% P.part.type_abbreviation(ITEM.part.part_type) %][% P.classification_abbreviation(ITEM.part.classification_id) %]
29
    </td>
30
    <td>
31
       [% HTML.escape(ITEM.part.description) %]
32
    </td>
33
    <td>
11
    [% END %]
12
  </td>
13
  <td[% UNLESS orphaned || AUTH.assert('assembly_edit', 1) %] style="display:none"[% END %]>
14
    [% L.button_tag("kivi.Part.delete_item_row(this)", LxERP.t8("X"), class="wi-verytiny") %] [% # , confirm=LxERP.t8("Are you sure?")) %]
15
  </td>
16
  <td class="numeric">
17
    <div id="position" class="numeric">[% HTML.escape(position) or HTML.escape(ITEM.position) %]</div>
18
  </td>
19
  <td class="center"[% UNLESS orphaned || AUTH.assert('assembly_edit', 1) %] style="display:none"[% END %]>
20
    <img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]" class="dragdrop">
21
  </td>
22
  <td>[% ITEM.part.presenter.part %]</td>
23
  <td>[% P.part.type_abbreviation(ITEM.part.part_type) %][% P.classification_abbreviation(ITEM.part.classification_id) %]</td>
24
  <td>[% HTML.escape(ITEM.part.description) %]</td>
25
  <td class="numeric">
34 26
    [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
35
      [%- L.input_tag("assembly_items[].qty_as_number",
27
      [% L.input_tag("assembly_items[].qty_as_number",
36 28
                      ITEM.qty_as_number,
37 29
                      size = 10,
38 30
                      class="recalc reformat_number numeric") %]
39 31
    [% ELSE %]
40
      [% ITEM.qty_as_number | html %]
41
    [% END %]
42
    </td>
43
    <td nowrap>
44
      [% ITEM.part.unit | html %]
45
    </td>
46
    [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
47
    <td>[% L.checkbox_tag("assembly_items[].bom", checked=ITEM.bom, for_submit=1) %]</td>
48
    [% ELSE %]
49
    <td>[% IF ITEM.bom %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
32
      <span class="data">[% ITEM.qty_as_number | html %]</span>
50 33
    [% END %]
51
    <td align="right">
52
      [%- L.div_tag(LxERP.format_amount(ITEM.linetotal_sellprice, 3, 0), name="linetotal") %]
53
      </td>
54
    <td align="right">
55
      [% ITEM.part.sellprice_as_number %]
56
      </td>
57
    <td align="right">
58
      [% ITEM.part.lastcost_as_number %]
59
      </td>
60
    <td align="right">
61
      [% HTML.escape(ITEM.part.partsgroup.partsgroup) %]
62
      </td>
63
  </tr>
34
  </td>
35
  <td>[% ITEM.part.unit | html %]</td>
36
  [% IF orphaned || AUTH.assert('assembly_edit', 1) %]
37
    <td class="center">[% L.checkbox_tag("assembly_items[].bom", checked=ITEM.bom, for_submit=1) %]</td>
38
  [% ELSE %]
39
    <td class="center">[% IF ITEM.bom %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]</td>
40
  [% END %]
41
  <td class="right">[% L.div_tag(LxERP.format_amount(ITEM.linetotal_sellprice, 3, 0), name="linetotal") %]</td>
42
  <td class="right">[% ITEM.part.sellprice_as_number %]</td>
43
  <td class="right">[% ITEM.part.lastcost_as_number %]</td>
44
  <td>[% HTML.escape(ITEM.part.partsgroup.partsgroup) %]</td>
45
</tr>

Auch abrufbar als: Unified diff