Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8bf1c7c5

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 8bf1c7c531671f1fc745b9c6ce8edb416e819be1
  • Vorgänger a37a6fe0
  • Nachfolger 6c89361c

Neues Design 2019 Standard-Code templates/webpages/order/tabs/_multi_items_result.html

Unterschiede anzeigen:

templates/webpages/order/tabs/_multi_items_result.html
3 3
[% USE L %]
4 4
[% USE LxERP %]
5 5

  
6
<table width="100%">
6
<table class="tbl-list wi-moderate">
7
  <thead>
7 8
    <tr>
8
      <td>[% 'for all' | $T8 %]
9
      <td>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
9
      <th>[% 'for all' | $T8 %]</th>
10
      <th>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
11
      <th></th>
12
      <th>[% 'Article No.' | $T8 %]</th>
13
      <th>[% 'Article Name' | $T8 %]</th>
10 14
    </tr>
11
    <tr>
12
      <td colspan="5"><hr></td>
13
    </tr>
14
  [%- FOREACH item = multi_items %]
15
    <tr>
16
      <td></td>
17
      <td>
18
        [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
19
        [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5,
20
                       class = 'multi_items_qty numeric', onclick = 'kivi.Order.set_input_to_one(this)') %]
21
      </td>
22
      <td>[% HTML.escape(item.unit) %]</td>
23
      <td>[% HTML.escape(item.partnumber) %]</td>
24
      <td>[% HTML.escape(item.description) %]</td>
25
    </tr>
26
  [%- END %]
15
  </thead>
16
  <tbody>
17
    [% FOREACH item = multi_items %]
18
      <tr>
19
        <td></td>
20
        <td>
21
          [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
22
          [% L.input_tag("add_multi_items[].qty_as_number", '', class = 'multi_items_qty numeric wi-verysmall', onclick = 'kivi.Order.set_input_to_one(this)') %]
23
        </td>
24
        <td>[% HTML.escape(item.unit) %]</td>
25
        <td>[% HTML.escape(item.partnumber) %]</td>
26
        <td>[% HTML.escape(item.description) %]</td>
27
      </tr>
28
    [% END %]
29
  </tbody>
27 30
</table>
31

  
32
<script type='text/javascript'>
33
  function set_qty_to_one(clicked) {
34
    if ($(clicked).val() == '') {
35
      $(clicked).val('[% LxERP.format_amount(1.00, -2) %]');
36
    }
37
    $(clicked).select();
38
  }
39

  
40
  $('#multi_items_all_qty').change(function(event){
41
    $('.multi_items_qty').val($(event.target).val());
42
  });
43
</script>

Auch abrufbar als: Unified diff