X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=ce96bc162d3b62c42aa88094fd62c45380acdb75;hb=06d46a675063e8a299345c9a2313ac29b9025d74;hp=8d5b1ae430744407b56f0ba35c0c585fd2a92e87;hpb=6ff3e876504bab769ebf557cb5fd90ec52dfc3e7;p=freeside.git
diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi
index 8d5b1ae43..ce96bc162 100644
--- a/httemplate/config/config.cgi
+++ b/httemplate/config/config.cgi
@@ -267,9 +267,25 @@ Setting <% $key %>
(this.form)"> |
+% } elsif ( $element_types{$type} ) {
+%
+% my %opt = ( 'element_name' => "$key$n",
+% 'empty_label' => ' ',
+% 'showdisabled' => 1,
+% );
+% 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++;
@@ -292,6 +308,10 @@ my $conf = new FS::Conf;
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>