Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 598d54a7

Von Werner Hahn vor fast 2 Jahren hinzugefügt

  • ID 598d54a7c0d581ac2e206d32a015aa983908f9e0
  • Vorgänger 08ea7246
  • Nachfolger 33589ab1

Design 4.0: Assortments angepasst

Unterschiede anzeigen:

templates/design40_webpages/part/_assortment.html
13 13
  <thead>
14 14
    <tr>
15 15
      <th style="display:none"></th>
16
      [% IF SELF.orphaned %]
16
      [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %]
17 17
        <th style="text-align:center"><img src="image/close.png" alt="[% LxERP.t8('delete item') %]"></th>
18 18
      [% END %]
19 19
      <th>[% 'Position' | $T8 %] </th>
20
      [% IF SELF.orphaned %]
20
      [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %]
21 21
        <th style="text-align:center"><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
22 22
      [% END %]
23 23
      <th id="partnumber_header_id" >
......
48 48
  </tbody>
49 49
  <tfoot id="assortment_input">
50 50
    <tr>
51
      [% IF SELF.orphaned %]
51
      [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %]
52 52
        <td></td>
53 53
        <td></td>
54 54
        <td></td>
......
72 72
      <td class="numeric" id="items_sum_diff"     >[% LxERP.format_amount(items_sum_diff,      2, 0) %]</td>
73 73
    </tr>
74 74
    <tr class="blank">
75
     [% IF SELF.orphaned %]
75
     [% IF SELF.orphaned || AUTH.assert('assortment_edit', 1) %]
76 76
       <td></td>
77 77
       <td></td>
78 78
       <td></td>
templates/design40_webpages/part/_assortment_row.html
6 6

  
7 7
<tr>
8 8
  <td style="display:none">
9
    [% IF orphaned %]
9
    [% IF orphaned || AUTH.assert('assortment_edit', 1) %]
10 10
      [% L.hidden_tag("assortment_items[+].parts_id", ITEM.part.id) %]
11 11
    [% END %]
12 12
  </td>
13
  <td class="center"[% UNLESS orphaned %] style="display:none"[% END %]>
13
  <td class="center"[% UNLESS orphaned || AUTH.assert('assortment_edit', 1) %] style="display:none"[% END %]>
14 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 15
  </td>
16 16
  <td class="center">
......
18 18
      [% HTML.escape(position) or HTML.escape(ITEM.position) %]
19 19
    </div>
20 20
  </td>
21
  <td class="center"[% UNLESS orphaned %] style="display:none"[% END %]>
21
  <td class="center"[% UNLESS orphaned || AUTH.assert('assortment_edit', 1) %] style="display:none"[% END %]>
22 22
    <img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]" class="dragdrop">
23 23
  </td>
24 24
  <td>
......
28 28
     [% HTML.escape(ITEM.part.description) %]
29 29
  </td>
30 30
  <td class="numeric">
31
    [% IF orphaned %]
31
    [% IF orphaned || AUTH.assert('assortment_edit', 1) %]
32 32
      [% L.input_tag("assortment_items[].qty_as_number",
33 33
                      ITEM.qty_as_number,
34 34
                      maxsize = 10,
......
39 39
    [% END %]
40 40
  </td>
41 41
  <td>
42
    [% IF orphaned %]
42
    [% IF orphaned || AUTH.assert('assortment_edit', 1) %]
43 43
      [% L.select_tag("assortment_items[].unit",
44 44
                      ITEM.part.available_units,
45 45
                      default = ITEM.part.unit,
......
51 51
    [% END %]
52 52
  </td>
53 53
  <td class="center">
54
    [% IF orphaned %]
54
    [% IF orphaned || AUTH.assert('assortment_edit', 1) %]
55 55
      [% L.checkbox_tag('assortment_items[].charge', checked => ITEM.charge, class => 'checkbox', for_submit=1) %]
56 56
    [% ELSE %]
57 57
      [% IF ITEM.charge %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %]

Auch abrufbar als: Unified diff