From c34e73e4a0f8ab38adc88829598207e219a86928 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 30 Oct 2001 14:20:46 +0000 Subject: web config should workish now --- httemplate/config/config.cgi | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 httemplate/config/config.cgi (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi new file mode 100644 index 000000000..32ddc043d --- /dev/null +++ b/httemplate/config/config.cgi @@ -0,0 +1,48 @@ +<%= 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 + apache BIND shell + ), + '', 'depreciated') { %> + <%= 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' ) { %> + + <% } else { %> + unknown type <%= $type %> + <% } %> + <% $n++; } %> + + + <%= $i->key %> - <%= $i->description %> + + + <% } %> +

+<% } %> + + +
+ + -- cgit v1.2.1