X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=409869e11517619d081adc42878d8d8f92172618;hp=972ec06a40bee15db6e2c3741ba06655c441eecf;hb=cec266740d89b82ce9075954928c5b336d0ec18e;hpb=da6df9f67f3db20a41ad9244db3f829600f678fd diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 972ec06a4..409869e11 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -1,13 +1,46 @@ + <%= header('Edit Configuration', menubar( 'Main Menu' => $p ) ) %> + <% 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) %> @@ -24,11 +57,101 @@ <% if ( $type eq '' ) { %> no type <% } elsif ( $type eq 'textarea' ) { %> - + <% } elsif ( $type eq 'checkbox' ) { %> exists($i->key) ? ' CHECKED' : '' %>> <% } elsif ( $type eq 'text' ) { %> + <% } elsif ( $type eq 'select' || $type eq 'selectmultiple' ) { %> + + <% } elsif ( $type eq 'editlist' ) { %> + +
+ + +
+ <%= itable() %> + <% if ( defined $i->editlist_parts ) { %> + <% my $pnum=0; foreach my $part ( @{$i->editlist_parts} ) { %> + + <% if ( $part->{type} eq 'text' ) { %> + "> + <% } elsif ( $part->{type} eq 'immutable' ) { %> + <%= $part->{value} %>" value="<%= $part->{value} %>"> + <% } elsif ( $part->{type} eq 'select' ) { %> + + <% } else { %> + unknown type <%= $part->type %> + <% } %> + + <% $pnum++; } %> + <% } else { %> + + <% } %> + + <% } else { %> unknown type <%= $type %> <% } %> @@ -39,10 +162,15 @@ <% } %> -

+
+ + You may need to restart Apache and/or freeside-queued for configuration + changes to take effect.
+ +

+ <% } %> -