X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=8011e76979958e336dfa0997ab91fa3eb6b417be;hb=8f5c91d6c7a8dc85a8b6768a149b4c7b3e144c38;hp=bafe5a8e7d7dd108c212417fbd84e82df4a98ced;hpb=e1ef1693e6942bbf82ee088f782d871a3b5eefee;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index bafe5a8e7..8011e7697 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -5,13 +5,13 @@ <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> <% foreach my $section ( qw(required billing username password UI session - shell mail apache BIND + shell BIND ), '', 'deprecated') { %> <% foreach my $nav_section ( qw(required billing username password UI session - shell mail apache BIND + shell BIND ), '', 'deprecated') { %> <% if ( $section eq $nav_section ) { %> @@ -36,19 +36,35 @@ <% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { my $n = 0; %> <% if ( $type eq '' ) { %> - no type + + no type + <% } elsif ( $type eq 'textarea' || $type eq 'editlist' || $type eq 'selectmultiple' ) { %> - + +
 <%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
 
- + + <% } elsif ( $type eq 'checkbox' ) { %> - YES' : 'ff0000">NO' %> + + YES' : 'ff0000">NO' %> + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> - <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> + + + <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> + + <% } elsif ( $type eq 'select-sub' ) { %> + + + <%= $conf->config($i->key) %>: + <%= &{ $i->option_sub }( $conf->config($i->key) ) %> + + <% } else { %> unknown type <%= $type %>