From 10af2ad629db956ab294479051398cfca7d22ff0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 22 Jul 2011 13:46:42 +0200 Subject: [PATCH] L.select_tag + L.options_for_select anstelle der multibox.html --- templates/webpages/ct/_shipto.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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)") %] -- 2.20.1