X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=c2b3e6d3c4774c68c41e3f2427f3f022574ee117;hb=713d0fa5dff732acf924743b639e1a701cdf032e;hp=7f2e6670d700ea5f83396c5e65e2b6b16d29b69e;hpb=6a1d3fe46f65b0a24ec025c22afcdb75af3c9e9a;p=freeside.git
diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi
index 7f2e6670d..c2b3e6d3c 100644
--- a/httemplate/config/config.cgi
+++ b/httemplate/config/config.cgi
@@ -267,9 +267,24 @@ Setting <% $key %>
(this.form)"> |
+% } elsif ( $element_types{$type} ) {
+%
+% my %opt = ( 'element_name' => "$key$n",
+% 'empty_label' => ' ',
+% );
+% if ( $config_item->multiple ) {
+% $opt{'multiple'} = 1 if $config_item->multiple;
+% $opt{'curr_value'} = [ $conf->config($key, $agentnum) ];
+% } else {
+% $opt{'curr_value'} =
+% $conf->exists($key, $agentnum) ? $conf->config($key, $agentnum) : '';
+% }
+
+ <% include("/elements/$type.html", %opt ) %>
+
% } else {
- unknown type <% $type %>
+ unknown type <% $type %>
% }
% $n++;
@@ -289,10 +304,13 @@ Setting <% $key %>
<%once>
my $conf = new FS::Conf;
-my @config_items = grep { $_->key != ~/^invoice_(html|latex|template)/ }
- $conf->config_items;
+my @config_items = $conf->config_items;
my %confitems = map { $_->key => $_ } @config_items;
+my %element_types = map { $_ => 1 } qw(
+ select-part_svc select-part_pkg select-pkg_class
+);
+
%once>
<%init>