X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=8011e76979958e336dfa0997ab91fa3eb6b417be;hb=4b4b3ca9cb0b7336293b759549b78fc903a7d8c8;hp=138ec4737069c8eb1bca5dcf8f362fef25fad8eb;hpb=e8dc13cd1af07846cd3015986f3a3fd34cdcdaea;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 138ec4737..8011e7697 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -5,9 +5,22 @@ <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> <% foreach my $section ( qw(required billing username password UI session - shell mail radius apache BIND + shell BIND ), '', 'deprecated') { %> + + + <% foreach my $nav_section ( qw(required billing username password UI session + shell BIND + ), + '', 'deprecated') { %> + <% if ( $section eq $nav_section ) { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } else { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } %> + <% } %> +
<%= table("#cccccc", 2) %> @@ -23,17 +36,35 @@ <% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { my $n = 0; %> <% if ( $type eq '' ) { %> - no type - <% } elsif ( $type eq 'textarea' ) { %> - + + 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 %>