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 From da6df9f67f3db20a41ad9244db3f829600f678fd Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 2 Nov 2001 04:55:49 +0000 Subject: config web GUI updates. almost usable now. --- httemplate/config/config.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 32ddc043d..972ec06a4 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -5,7 +5,7 @@
<% foreach my $section ( qw(required billing username password UI session - apache BIND shell + shell mail radius apache BIND ), '', 'depreciated') { %> <%= table("#cccccc", 2) %> -- cgit v1.2.1 From 762cb807561ae9805a3eac0616442012eced93b0 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 2 Nov 2001 05:28:33 +0000 Subject: note config changes need apache/freeside-queued restart to take effect --- httemplate/config/config.cgi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 972ec06a4..f9d7297ec 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -42,6 +42,9 @@

<% } %> +You may need to restart Apache and/or freeside-queued for configuration +changes to take effect.
+ -- cgit v1.2.1 From b6724f3cf6c4b77ab66d259920042f12e46cf924 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 8 Dec 2001 10:08:50 +0000 Subject: need a POST here; browsers (especially IE) are unhappy with the default GET --- httemplate/config/config.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index f9d7297ec..56da0698a 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -2,7 +2,7 @@ <% 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 -- cgit v1.2.1 From a4c96748eb6eab29a70f3a944c6520283a635c78 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 10 Feb 2002 16:05:22 +0000 Subject: *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. *finally* seems to be working under Mason. sheesh. --- httemplate/config/config.cgi | 1 + 1 file changed, 1 insertion(+) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 56da0698a..b9e84a8d5 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -1,3 +1,4 @@ + <%= header('Edit Configuration', menubar( 'Main Menu' => $p ) ) %> <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> -- cgit v1.2.1 From ae23f6fe1ca915c995cfbf29bb39e7ed5e1cce2c Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 12 Feb 2002 02:11:07 +0000 Subject: add username_policy "@append domain" add "select" config type, mmm --- httemplate/config/config.cgi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index b9e84a8d5..f640d0b5e 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -30,6 +30,16 @@ exists($i->key) ? ' CHECKED' : '' %>> <% } elsif ( $type eq 'text' ) { %> + <% } elsif ( $type eq 'select' ) { %> + + + <% foreach my $line ( $conf->config($i->key) ) { %> + + <% } %> +
+ + +
+ <% 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 %> <% } %> -- cgit v1.2.1 From daac302e231e2e09b84e771c0413b0f2119c52e8 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 18 Mar 2002 09:10:12 +0000 Subject: new config value `defaultrecords', documentation, javascript config file editor --- httemplate/config/config.cgi | 51 +++++++++++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 15 deletions(-) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 155dcfdbc..5013de0dc 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -2,25 +2,33 @@ <%= 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') { %> + <% foreach my $nav_section ( qw(required billing username password UI session shell mail radius apache BIND @@ -29,11 +37,10 @@ function SafeOnload() <% if ( $section eq $nav_section ) { %> [<%= ucfirst($nav_section || 'unclassified') %>] <% } else { %> - [<%= ucfirst($nav_section || 'unclassified') %>] + [<%= ucfirst($nav_section || 'unclassified') %>] <% } %> <% } %>
- <%= table("#cccccc", 2) %> @@ -65,6 +72,7 @@ function SafeOnload() <% if ( $conf->exists($i->key) && $conf->config($i->key) && ! grep { $conf->config($i->key) eq $_ } @{$i->select_enum}) { %> -- cgit v1.2.1 From f7e1679114d88fcb8499aafb5386616c93a7c9ee Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 18 Mar 2002 17:50:54 +0000 Subject: fixes bug#367 (yay, that one was annoying): in config editor, initial newlines in + <% } elsif ( $type eq 'checkbox' ) { %> exists($i->key) ? ' CHECKED' : '' %>> <% } elsif ( $type eq 'text' ) { %> -- cgit v1.2.1 From fca110eff969104793774ed717985e91c53f5318 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 7 Apr 2002 00:00:41 +0000 Subject: - config option for signup server payment types - credit card type pulldown on signup server (closes: Bug#383) --- httemplate/config/config.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'httemplate/config/config.cgi') diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 4f19ee961..2817e5f84 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -62,12 +62,12 @@ function SafeOnsubmit() { exists($i->key) ? ' CHECKED' : '' %>> <% } elsif ( $type eq 'text' ) { %> - <% } elsif ( $type eq 'select' ) { %> - > <% my %saw; foreach my $value ( "", @{$i->select_enum} ) { local($^W)=0; next if $saw{$value}++; %> -