X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=91ba33769aa7f9314b98f089479ea072b6bc19b7;hb=e75e410d0cdc5ca62af1888c3cb75163ca22d2ad;hp=9a0006792cc99fd32b80c4a5f04e25e769c81dd3;hpb=a741f52db660b39a3f3c12acd0623d87bfc9108a;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 9a0006792..91ba33769 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,64 +1,95 @@ - -<%= header('View Configuration', menubar( 'Main Menu' => $p, +<% include("/elements/header.html",'View Configuration', menubar( 'Main Menu' => $p, 'Edit Configuration' => 'config.cgi' ) ) %> +% my $conf = new FS::Conf; my @config_items = $conf->config_items; +% foreach my $section ( qw(required billing username password UI session +% shell BIND +% ), +% '', 'deprecated') { -<% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> - -<% foreach my $section ( qw(required billing username password UI session - shell BIND - ), - '', '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') %>] - <% } %> - <% } %> +% 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) %> + <% table("#cccccc", 2) %> - <%= ucfirst($section || 'unclassified') %> configuration options + <% ucfirst($section || 'unclassified') %> configuration options - <% foreach my $i (grep $_->section eq $section, @config_items) { %> +% foreach my $i (grep $_->section eq $section, @config_items) { + - - <%= $i->key %> - <%= $i->description %> + + <% $i->key %> - <% $i->description %> - <% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { - my $n = 0; %> - <% if ( $type eq '' ) { %> - - <% } elsif ( $type eq 'textarea' - || $type eq 'editlist' - || $type eq 'selectmultiple' ) { %> - + + +% } elsif ( $type eq 'textarea' +% || $type eq 'editlist' +% || $type eq 'selectmultiple' ) { + + + - <% } elsif ( $type eq 'checkbox' ) { %> - - <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> - - <% } else { %> + + +% } elsif ( $type eq 'checkbox' ) { + + + + +% } elsif ( $type eq 'text' || $type eq 'select' ) { + + + +% } elsif ( $type eq 'select-sub' ) { + + + + +% } else { + - <% } %> - <% $n++; } %> +% } +% $n++; } +
no type
+% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { +% my $n = 0; +% if ( $type eq '' ) { + +
no type
-<%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
+<% encode_entities(join("\n", $conf->config($i->key) ) ) %>
 
-
YES' : 'ff0000">NO' %>
<%= $conf->exists($i->key) ? $conf->config($i->key) : '' %>
YES' : 'ff0000">NO' %>
+ <% $conf->exists($i->key) ? $conf->config($i->key) : '' %> +
+ <% $conf->config($i->key) %>: + <% &{ $i->option_sub }( $conf->config($i->key) ) %> +
- unknown type <%= $type %> + unknown type <% $type %>
- <% } %> +% } +

-<% } %> +% } + +<%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +