X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=4d709e8c27ad1eee0c23b10a6cca64d9ccbd0e67;hb=2af3df50fe02e8558ebdf94c426fa3dc6cb246b1;hp=d40c4dc104bf5b745ee448e7df570bdb5a560071;hpb=daac302e231e2e09b84e771c0413b0f2119c52e8;p=freeside.git
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index d40c4dc10..4d709e8c2 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -1,62 +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
- ),
- '', 'deprecated') { %>
-
+% 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 mail radius apache 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) %>
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 %> |