Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 10af2ad6

Von Moritz Bunkus vor etwa 13 Jahren hinzugefügt

  • ID 10af2ad629db956ab294479051398cfca7d22ff0
  • Vorgänger 59486b32
  • Nachfolger 4000272e

L.select_tag + L.options_for_select anstelle der multibox.html

Unterschiede anzeigen:

templates/webpages/ct/_shipto.html
3 3
     <tr>
4 4
      <th align="right">[% 'Shipping Address' | $T8 %]</th>
5 5
      <td>
6
       [%- INCLUDE generic/multibox.html
7
             name       = 'shipto_id',
8
             id         = 'shipto_id',
9
             DATA       = SHIPTO,
10
             onChange   = "\$('#shipto_table').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)",
11
             id_key     = 'shipto_id',
12
             label_sub  = 'shipto_label',
13
             label_key  = 'shipto_label',
14
             show_empty = 1,
15
       -%]
6
       [% L.select_tag('shipto_id', L.options_for_select(SHIPTO, default => shipto_id, value => 'shipto_id', title_sub => \shipto_label, with_empty => 1),
7
                       onchange => "\$('#shipto_table').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
16 8
      </td>
17 9
     </tr>
18 10

  

Auch abrufbar als: Unified diff