2 <% include("/elements/header.html",'View Configuration', menubar( 'Main Menu' => $p,
3 'Edit Configuration' => 'config.cgi' ) ) %>
4 % my $conf = new FS::Conf; my @config_items = $conf->config_items;
5 % foreach my $section ( qw(required billing username password UI session
10 <A NAME="<% $section || 'unclassified' %>"></A>
12 % foreach my $nav_section ( qw(required billing username password UI session
16 % if ( $section eq $nav_section ) {
18 [<A NAME="not<% $nav_section || 'unclassified' %>" style="background-color: #cccccc"><% ucfirst($nav_section || 'unclassified') %></A>]
21 [<A HREF="#<% $nav_section || 'unclassified' %>"><% ucfirst($nav_section || 'unclassified') %></A>]
26 <% table("#cccccc", 2) %>
28 <th colspan="2" bgcolor="#dcdcdc">
29 <% ucfirst($section || 'unclassified') %> configuration options
32 % foreach my $i (grep $_->section eq $section, @config_items) {
35 <td><a name="<% $i->key %>">
36 <b><% $i->key %></b> - <% $i->description %>
39 % foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
41 % if ( $type eq '' ) {
44 <td><font color="#ff0000">no type</font></td>
46 % } elsif ( $type eq 'textarea'
47 % || $type eq 'editlist'
48 % || $type eq 'selectmultiple' ) {
51 <td bgcolor="#ffffff">
53 <% encode_entities(join("\n", $conf->config($i->key) ) ) %>
57 % } elsif ( $type eq 'checkbox' ) {
60 <td bgcolor="#<% $conf->exists($i->key) ? '00ff00">YES' : 'ff0000">NO' %></td>
62 % } elsif ( $type eq 'text' || $type eq 'select' ) {
65 <td bgcolor="#ffffff">
66 <% $conf->exists($i->key) ? $conf->config($i->key) : '' %>
68 % } elsif ( $type eq 'select-sub' ) {
71 <td bgcolor="#ffffff">
72 <% $conf->config($i->key) %>:
73 <% &{ $i->option_sub }( $conf->config($i->key) ) %>
79 <font color="#ff0000">unknown type <% $type %></font>