X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bf51f15093c45372f0567805de673a8aea539d49;hp=917cc7316cfc8df994041e19b655c0c20b543363;hb=c1bb4ddb71147d0571bd301a6d8c452fdf0e1bc9;hpb=697dfd9ac2dfa36aa244e6d2d9f2e8f8a364a120 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 917cc7316..bf51f1509 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,26 +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 ), '', 'deprecated') { %> + <% foreach my $nav_section ( qw(required billing username password UI session - shell mail radius apache BIND + shell BIND ), '', 'deprecated') { %> <% if ( $section eq $nav_section ) { %> [<%= ucfirst($nav_section || 'unclassified') %>] <% } else { %> - [<%= ucfirst($nav_section || 'unclassified') %>] + [<%= ucfirst($nav_section || 'unclassified') %>] <% } %> <% } %>
- <%= table("#cccccc", 2) %> @@ -36,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' || $type eq 'editlist' ) { %> - + + 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 %>