From: Moritz Bunkus Date: Fri, 22 Jul 2011 11:46:42 +0000 (+0200) Subject: L.select_tag + L.options_for_select anstelle der multibox.html X-Git-Tag: release-2.7.0beta1~349 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=10af2ad629db956ab294479051398cfca7d22ff0;p=kivitendo-erp.git L.select_tag + L.options_for_select anstelle der multibox.html --- diff --git a/templates/webpages/ct/_shipto.html b/templates/webpages/ct/_shipto.html index 46d8444f8..23f42cd8b 100644 --- a/templates/webpages/ct/_shipto.html +++ b/templates/webpages/ct/_shipto.html @@ -3,16 +3,8 @@ [% 'Shipping Address' | $T8 %] - [%- INCLUDE generic/multibox.html - name = 'shipto_id', - id = 'shipto_id', - DATA = SHIPTO, - onChange = "\$('#shipto_table').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)", - id_key = 'shipto_id', - label_sub = 'shipto_label', - label_key = 'shipto_label', - show_empty = 1, - -%] + [% L.select_tag('shipto_id', L.options_for_select(SHIPTO, default => shipto_id, value => 'shipto_id', title_sub => \shipto_label, with_empty => 1), + onchange => "\$('#shipto_table').load('ct.pl?action=get_shipto&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]