1 <% include("/elements/header.html",'View Configuration', menubar( 'Main Menu' => $p,
2 'Edit Configuration' => 'config.cgi' ) ) %>
3 % my $conf = new FS::Conf; my @config_items = $conf->config_items;
4 % foreach my $section ( qw(required billing username password UI session
9 <A NAME="<% $section || 'unclassified' %>"></A>
11 % foreach my $nav_section ( qw(required billing username password UI session
15 % if ( $section eq $nav_section ) {
17 [<A NAME="not<% $nav_section || 'unclassified' %>" style="background-color: #cccccc"><% ucfirst($nav_section || 'unclassified') %></A>]
20 [<A HREF="#<% $nav_section || 'unclassified' %>"><% ucfirst($nav_section || 'unclassified') %></A>]
25 <% table("#cccccc", 2) %>
27 <th colspan="2" bgcolor="#dcdcdc">
28 <% ucfirst($section || 'unclassified') %> configuration options
31 % foreach my $i (grep $_->section eq $section, @config_items) {
34 <td><a name="<% $i->key %>">
35 <b><% $i->key %></b> - <% $i->description %>
38 % foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
40 % if ( $type eq '' ) {
43 <td><font color="#ff0000">no type</font></td>
45 % } elsif ( $type eq 'textarea'
46 % || $type eq 'editlist'
47 % || $type eq 'selectmultiple' ) {
50 <td bgcolor="#ffffff">
52 <% encode_entities(join("\n", $conf->config($i->key) ) ) %>
56 % } elsif ( $type eq 'checkbox' ) {
59 <td bgcolor="#<% $conf->exists($i->key) ? '00ff00">YES' : 'ff0000">NO' %></td>
61 % } elsif ( $type eq 'text' || $type eq 'select' ) {
64 <td bgcolor="#ffffff">
65 <% $conf->exists($i->key) ? $conf->config($i->key) : '' %>
67 % } elsif ( $type eq 'select-sub' ) {
70 <td bgcolor="#ffffff">
71 <% $conf->config($i->key) %>:
72 <% &{ $i->option_sub }( $conf->config($i->key) ) %>
78 <font color="#ff0000">unknown type <% $type %></font>
94 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');