Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d846181

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

  • ID 6d846181a0e571972ba2651f19acfd0104aa3447
  • Vorgänger e70ad854
  • Nachfolger 4c9ac6ac

Neues Design 2019 Standard-Code templates/webpages/io/select_item.html

Unterschiede anzeigen:

templates/webpages/io/select_item.html
7 7

  
8 8
 <form method="post" action="[% HTML.escape(script) %]" id="form">
9 9

  
10
  <table width="100%">
11
   <tr class="listheading">
12
    [%- IF MYCONFIG.item_multiselect %]
13
      <th>[% LxERP.t8('Qty') %]</th>
14
    [%- ELSE %]
15
      <th>&nbsp;</th>
16
    [%- END %]
17
    <th>[% LxERP.t8('Number') %]</th>
18
    <th>[% LxERP.t8('Part Classification') %]</th>
19
    <th>[% LxERP.t8('Part Description') %]</th>
20
    [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
21
      [% SET COLS = COLS + 1 %]
22
      <th>[% LxERP.t8('Long Description') %]</th>
23
    [%- END %]
24
    <th>[% LxERP.t8('Other Matches') %]</th>
25
    <th>[% LxERP.t8('Price') %]</th>
26
    [%- IF IS_PURCHASE %]
27
      [% SET COLS = COLS + 1 %]
28
     <th>[% LxERP.t8('ROP') %]</th>
29
    [%- END %]
30
    <th>[% LxERP.t8('Qty') %]</th>
31
    <th>[% LxERP.t8('Unit') %]</th>
32
   </tr>
33

  
34
   [%- FOREACH item = ITEM_LIST %]
35
   <tr class="listrow[% loop.count % 2 %]">
36
    [%- IF MYCONFIG.item_multiselect %]
37
      <td>[% L.input_tag('select_qty_' _ HTML.escape(item.id), '', size => 5) %]</td>
38
    [%- ELSE %]
39
      <td><input name="select_item_id" class="radio" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
40
    [%- END %]
41
    <td>[% HTML.escape(item.partnumber) %]</td>
42
    <td>[% HTML.escape(item.type_and_classific) %]</td>
43
    <td>[% HTML.escape(item.description) %]</td>
44
    [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
45
      <td>[% P.restricted_html(item.longdescription) %]</td>
46
    [%- END %]
47
    <td>[% HTML.escape(item.matches).join('<br>') %]</td>
48
    <td align="right">[% LxERP.format_amount(item.display_sellprice, 2) %]</td>
49
    [%- IF IS_PURCHASE %]
50
     <td align="right">[% LxERP.format_amount(item.rop, '') %]</td>
51
    [%- END %]
52
    <td align="right">[% LxERP.format_amount(item.onhand, '') %]</td>
53
    <td>[% HTML.escape(item.unit) %]</td>
54
   </tr>
55
   [%- END %]
56

  
57
   <tr><td colspan="[% COLS %]"><hr size="3" noshade></td></tr>
10
<table class="tbl-list wi-moderate">
11
  <thead>
12
    <tr>
13
     [% IF MYCONFIG.item_multiselect %]
14
       <th>[% LxERP.t8('Qty') %]</th>
15
     [% ELSE %]
16
       <th>&nbsp;</th>
17
     [% END %]
18
     <th>[% LxERP.t8('Number') %]</th>
19
     <th>[% LxERP.t8('Part Classification') %]</th>
20
     <th>[% LxERP.t8('Part Description') %]</th>
21
     [% IF INSTANCE_CONF.get_show_longdescription_select_item %]
22
       [% SET COLS = COLS + 1 %]
23
       <th>[% LxERP.t8('Long Description') %]</th>
24
     [% END %]
25
     <th>[% LxERP.t8('Other Matches') %]</th>
26
     <th class="right">[% LxERP.t8('Price') %]</th>
27
     [% IF IS_PURCHASE %]
28
       [% SET COLS = COLS + 1 %]
29
       <th class="right">[% LxERP.t8('ROP') %]</th>
30
     [% END %]
31
     <th class="right">[% LxERP.t8('Qty') %]</th>
32
     <th>[% LxERP.t8('Unit') %]</th>
33
    </tr>
34
  </thead>
35
  <tbody>
36
    [% FOREACH item = ITEM_LIST %]
37
    <tr class="listrow[% loop.count % 2 %]">
38
      [% IF MYCONFIG.item_multiselect %]
39
        <td>[% L.input_tag('select_qty_' _ HTML.escape(item.id), '', size => 5) %]</td>
40
      [% ELSE %]
41
        <td><input name="select_item_id" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
42
      [% END %]
43
      <td>[% HTML.escape(item.partnumber) %]</td>
44
      <td>[% HTML.escape(item.type_and_classific) %]</td>
45
      <td>[% HTML.escape(item.description) %]</td>
46
      [% IF INSTANCE_CONF.get_show_longdescription_select_item %]
47
        <td>[% P.restricted_html(item.longdescription) %]</td>
48
      [% END %]
49
      <td>[% HTML.escape(item.matches).join('<br>') %]</td>
50
      <td class="numeric">[% LxERP.format_amount(item.display_sellprice, 2) %]</td>
51
      [% IF IS_PURCHASE %]
52
        <td class="numeric">[% LxERP.format_amount(item.rop, '') %]</td>
53
      [% END %]
54
      <td class="numeric">[% LxERP.format_amount(item.onhand, '') %]</td>
55
      <td>[% HTML.escape(item.unit) %]</td>
56
    </tr>
57
    [% END %]
58
    </tbody>
58 59
  </table>
59

  
60
  <p>&nbsp;</p>
60 61
  [% L.hidden_tag('select_item_mode', MODE) %]
61 62
  [% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %]
62 63
  [% L.hidden_tag('action', 'item_selected') %]
63 64
 </form>
64 65

  
65
[%- IF MYCONFIG.item_multiselect %]
66
[% IF MYCONFIG.item_multiselect %]
66 67
 <script type='text/javascript'>
67 68
   var first_click = 1;;
68
   [%- FOREACH item = ITEM_LIST %]
69
   [% FOREACH item = ITEM_LIST %]
69 70
     [% SET THIS_ID = 'select_qty_' _ HTML.escape(item.id) %]
70 71
     $('#[% THIS_ID %]').click(function(){
71 72
       var qty = '1';
......
77 78
         $('#[% THIS_ID %]').attr('value', qty); $('#[% THIS_ID %]').select();
78 79
       }
79 80
     });
80
   [%- END %]
81
   [% END %]
81 82
 </script>
82
[%- END %]
83
[% END %]

Auch abrufbar als: Unified diff