X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=5f2166320055cb8366025b5316be79d5dcacae0c;hb=cc0c6be1aa795f85d05f15a3e8568fcef2bbd380;hp=b041adaed967df6d9081991f29ebfcb04cdbc733;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78;p=freeside.git
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index b041adaed..5f2166320 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -1,49 +1,138 @@
-
-<%= header('View Configuration', menubar( 'Main Menu' => $p,
- 'Edit Configuration' => 'config.cgi' ) ) %>
+<% include("/elements/header.html",
+ $title,
+ menubar(
+ 'Main Menu' => $p,
+ 'View all agents' => $p.'browse/agent.cgi',
+ )
+ )
+%>
-<% 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
- ),
- '', 'depreciated') { %>
- <%= table("#cccccc", 2) %>
+% if ($FS::UID::use_confcompat) {
+
+ CONFIGURATION NOT STORED IN DATABASE -- USING COMPATIBILITY MODE
+%}
+%
+% 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') %>]
+% }
+% }
+
+
+ <% table("#cccccc", 2) %>
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, $agentnum) ) ) %>- |
YES' : 'ff0000">NO' %> |
<%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> |
YES' : 'ff0000">NO' %> | +
+ <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %> + |
+ <% $conf->config($i->key, $agentnum) %>: + <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %> + | +
- unknown type <%= $type %> + unknown type <% $type %> |