<%= 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 ), '', 'deprecated') { %> <%= table("#cccccc", 2) %> <%= ucfirst($section || 'unclassified') %> configuration options <% foreach my $i (grep $_->section eq $section, @config_items) { %> <% my $n = 0; foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { #warn $i->key unless defined($type); %> <% 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' ) { %>