X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=6008c0e425bd1fc2868ee21648c91e1ebdec488b;hb=6b12c14cc10503d6b0783e8ef71fe44d9a9b37b6;hp=b9e84a8d5b445ae6d4d7890319195ef8fda86cd3;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78;p=freeside.git diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index b9e84a8d5..6008c0e42 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -1,14 +1,46 @@ -<%= header('Edit Configuration', menubar( 'Main Menu' => $p ) ) %> +<%= include("/elements/header.html",'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) %> @@ -23,16 +55,167 @@ #warn $i->key unless defined($type); %> <% if ( $type eq '' ) { %> - no type + + no type + <% } elsif ( $type eq 'textarea' ) { %> - + + + <% } elsif ( $type eq 'checkbox' ) { %> - exists($i->key) ? ' CHECKED' : '' %>> + + exists($i->key) ? ' CHECKED' : '' %>> + <% } elsif ( $type eq 'text' ) { %> - + + + + <% } elsif ( $type eq 'select' || $type eq 'selectmultiple' ) { %> + + + + <% } elsif ( $type eq 'select-sub' ) { %> + + + + <% } 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 %> + <% } %> + <% $n++; } %> @@ -40,13 +223,15 @@ <% } %> -

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

+ +<% } %> -