Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e45fc88e

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID e45fc88ed0b2fb12635bb13f17b39b07ff10495e
  • Vorgänger 6b7dea91
  • Nachfolger 1da86bc7

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

Unterschiede anzeigen:

templates/webpages/order/tabs/_multi_items_result.html
1
[%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
2 5

  
3
<table width="100%">
6
<table class="tbl-list wi-moderate">
7
  <thead>
4 8
    <tr>
5
      <td>[% 'for all' | $T8 %]
6
      <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>
7 14
    </tr>
8
    <tr>
9
      <td colspan="5"><hr></td>
10
    </tr>
11
  [%- FOREACH item = multi_items %]
12
    <tr>
13
      <td></td>
14
      <td>
15
        [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
16
        [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5,
17
                       class = 'multi_items_qty numeric', onclick = 'kivi.Order.set_input_to_one(this)') %]
18
      </td>
19
      <td>[% HTML.escape(item.unit) %]</td>
20
      <td>[% HTML.escape(item.partnumber) %]</td>
21
      <td>[% HTML.escape(item.description) %]</td>
22
    </tr>
23
  [%- 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>
24 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