X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=9a0006792cc99fd32b80c4a5f04e25e769c81dd3;hp=3c16c481579f54144254923af6b7fb8246bcfffd;hb=0718d6c7bc61075243d2f44f0df30fe6431f0f72;hpb=c34e73e4a0f8ab38adc88829598207e219a86928 diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 3c16c4815..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 - apache BIND shell + 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 %>