From c6d9d294865964edb58d06a982ea42b4f2a50518 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 3 Sep 2009 19:01:56 +0200 Subject: [PATCH] =?utf8?q?Weightunit=20im=20Standarddialog=20mit=20Dropdow?= =?utf8?q?nbox=20ausw=C3=A4hlen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1118. --- bin/mozilla/am.pl | 1 + templates/webpages/am/edit_defaults_de.html | 12 +++++++++++- templates/webpages/am/edit_defaults_master.html | 12 +++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 239411840..684632679 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -2397,6 +2397,7 @@ sub edit_defaults { # get defaults for account numbers and last numbers AM->defaultaccounts(\%myconfig, \%$form); + $form->{ALL_UNITS} = AM->convertible_units(AM->retrieve_all_units(), 'g'); map { $form->{"defaults_${_}"} = $form->{defaults}->{$_} } keys %{ $form->{defaults} }; diff --git a/templates/webpages/am/edit_defaults_de.html b/templates/webpages/am/edit_defaults_de.html index ffd534d5b..c4298c7a8 100644 --- a/templates/webpages/am/edit_defaults_de.html +++ b/templates/webpages/am/edit_defaults_de.html @@ -137,7 +137,17 @@ Gewichtseinheit - + + + [%- INCLUDE 'generic/multibox.html' + name = 'weightunit', + default = defaults_weightunit, + style = 'size:20; maxength:5', + DATA = ALL_UNITS, + id_key = 'name', + label_key = 'name', + -%] + diff --git a/templates/webpages/am/edit_defaults_master.html b/templates/webpages/am/edit_defaults_master.html index 47693c654..f73ea15a3 100644 --- a/templates/webpages/am/edit_defaults_master.html +++ b/templates/webpages/am/edit_defaults_master.html @@ -137,7 +137,17 @@ Weight unit - + + + [%- INCLUDE 'generic/multibox.html' + name = 'weightunit', + default = defaults_weightunit, + style = 'size:20; maxength:5', + DATA = ALL_UNITS, + id_key = 'name', + label_key = 'name', + -%] + -- 2.20.1