X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=d40c4dc104bf5b745ee448e7df570bdb5a560071;hp=3c16c481579f54144254923af6b7fb8246bcfffd;hb=daac302e231e2e09b84e771c0413b0f2119c52e8;hpb=c34e73e4a0f8ab38adc88829598207e219a86928 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 3c16c4815..d40c4dc10 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,12 +1,26 @@ + <%= header('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 - apache BIND shell + shell mail radius apache BIND ), - '', 'depreciated') { %> + '', 'deprecated') { %> + + + <% foreach my $nav_section ( qw(required billing username password UI session + shell mail radius apache BIND + ), + '', 'deprecated') { %> + <% if ( $section eq $nav_section ) { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } else { %> + [<%= ucfirst($nav_section || 'unclassified') %>] + <% } %> + <% } %> +
<%= table("#cccccc", 2) %> @@ -23,7 +37,7 @@ my $n = 0; %> <% if ( $type eq '' ) { %> no type - <% } elsif ( $type eq 'textarea' ) { %> + <% } elsif ( $type eq 'textarea' || $type eq 'editlist' ) { %>
 <%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
@@ -31,7 +45,7 @@
             
           <% } elsif ( $type eq 'checkbox' ) { %>
             YES' : 'ff0000">NO' %>
-          <% } elsif ( $type eq 'text' )  { %>
+          <% } elsif ( $type eq 'text' || $type eq 'select' )  { %>
             <%=  $conf->exists($i->key) ? $conf->config($i->key) : '' %>
           <% } else { %>