X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=9a0006792cc99fd32b80c4a5f04e25e769c81dd3;hp=4b668498013bb578f5c6cbeba14080ad6013f8cf;hb=8f6a34b553a7ca9b7fc9c9cf5802ce418e3a5296;hpb=da6df9f67f3db20a41ad9244db3f829600f678fd diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 4b6684980..9a0006792 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 - 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,7 +37,9 @@ my $n = 0; %> <% if ( $type eq '' ) { %> no type - <% } elsif ( $type eq 'textarea' ) { %> + <% } elsif ( $type eq 'textarea' + || $type eq 'editlist' + || $type eq 'selectmultiple' ) { %>
 <%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
@@ -31,8 +47,8 @@
             
           <% } elsif ( $type eq 'checkbox' ) { %>
             YES' : 'ff0000">NO' %>
-          <% } elsif ( $type eq 'text' )  { %>
-            <%=  $conf->exists($i->key) ? $conf->config($i->key) : '' %>
+          <% } elsif ( $type eq 'text' || $type eq 'select' )  { %>
+            <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %>
           <% } else { %>
             
               unknown type <%= $type %>