Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 71719a8b

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 71719a8b2216e91ce3533806226ae60e6660397f
  • Vorgänger 99676e8f
  • Nachfolger a48939b5

Neues Design 2019 Standard-Code templates/webpages/part/_assortment_row.html

Unterschiede anzeigen:

templates/webpages/part/_assortment_row.html
1
  <tr class="listrow[% listrow %] assortment_item_row">
2
    <td style='display:none'>
3
      [% IF orphaned %]
4 1
[% USE T8 %]
5 2
[% USE HTML %]
6 3
[% USE LxERP %]
7 4
[% USE L %]
8 5
[% USE P %]
9 6

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