X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bf51f15093c45372f0567805de673a8aea539d49;hp=b041adaed967df6d9081991f29ebfcb04cdbc733;hb=c1bb4ddb71147d0571bd301a6d8c452fdf0e1bc9;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index b041adaed..bf51f1509 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,13 +1,26 @@ -<%= header('View Configuration', menubar( 'Main Menu' => $p, +<%= include("/elements/header.html",'View Configuration', menubar( 'Main Menu' => $p, 'Edit Configuration' => 'config.cgi' ) ) %> <% 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 ), - '', 'depreciated') { %> + '', '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' %> - <% } elsif ( $type eq 'text' ) { %> - <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> + + YES' : 'ff0000">NO' %> + + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> + + + <%= $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 %>