From 9c866ccad0f187f29d21f12b93f15f2787aa9843 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 16 Sep 2011 00:15:48 +0000 Subject: invoice template and config localization, #12367 --- httemplate/edit/cust_main/billing.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'httemplate/edit') diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index f2d6271d0..294104b09 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -555,6 +555,24 @@ function toggle(obj) { % } +%my @available_locales = $conf->config('available-locales'); +%if ( scalar(@available_locales) ) { +% push @available_locales, ''; +% my %locale_labels = map { +% my %ll; +% my %info = FS::Locales->locale_info($_); +% $ll{$_} = $info{name} . " (" . $info{country} . ")"; +% %ll; +% } FS::Locales->locales; + <& /elements/tr-select.html, + 'label' => emt('Invoicing locale'), + 'field' => 'locale', + 'options' => \@available_locales, + 'labels' => \%locale_labels, + 'curr_value' => $cust_main->locale, + &> +% } + <% $r %> <% mt('required fields') |h %> -- cgit v1.2.1