X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=51535d7624cdce999523fbe7437d28996b937f01;hb=9d77a21db3642ca66d9a0e545b804b7e6b4090ee;hp=41ecfd2686cfce2c42ab3a228259c59d7ee5a7dc;hpb=6a1d3fe46f65b0a24ec025c22afcdb75af3c9e9a;p=freeside.git
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index 41ecfd268..51535d762 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -3,6 +3,21 @@
Click on a configuration value to change it.
+% unless ( $page_agent ) {
+%
+% if ( $cgi->param('showagent') ) {
+% $cgi->param('showagent', 0);
+ ( hide agent overrides )
+% $cgi->param('showagent', 1);
+% } else {
+% $cgi->param('showagent', 1);
+ ( show agent overrides )
+% $cgi->param('showagent', 0);
+% }
+%
+% }
+
+
<% include('/elements/init_overlib.html') %>
% if ($FS::UID::use_confcompat) {
@@ -33,7 +48,8 @@ Click on a configuration value to change it.
% foreach my $i (@{ $section_items{$section} }) {
% my @types = ref($i->type) ? @{$i->type} : ($i->type);
-% my( $width, $height ) = ( 522, 336 );
+%# my( $width, $height ) = ( 522, 336 );
+% my( $width, $height ) = ( 600, 336 );
% if ( grep $_ eq 'textarea', @types ) {
% #800x600
% $width = 763;
@@ -42,6 +58,34 @@ Click on a configuration value to change it.
% #$width =
% #$height =
% }
+%
+% my @agents = ();
+% my @add_agents = ();
+% if ( $page_agent ) {
+% @agents = ( $page_agent );
+% } else {
+% @agents = ( '' );
+% if ( $i->per_agent ) {
+% foreach my $agent (@all_agents) {
+% if ( defined($conf->conf( $i->key, $agent->agentnum, 1 ) ) ) {
+% push @agents, $agent;
+% } else {
+% push @add_agents, $agent;
+% }
+% }
+% }
+% }
+%
+% foreach my $agent ( @agents ) {
+% my $agentnum = $agent ? $agent->agentnum : '';
+%
+% next if $section eq 'deprecated' && ! $conf->exists($i->key, $agentnum);
+%
+% my $label = $i->key;
+% $label = '['. $agent->agent. "] $label"
+% if $agent && $cgi->param('showagent');
+%
+% #indentation :/
--<% encode_entities(join("\n", + | |
YES' : 'ff0000">NO' %> | +YES' : 'ff0000">NO' %> |
+ | <% $conf->exists($i->key, $agentnum) ? $hash{ $conf->config($i->key, $agentnum) } : '' %> |
+ | <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %> |
+ | <% $conf->config($i->key, $agentnum) %>: <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %> |
+ <% join(' ', map { $_ # ': '. $svc, $pkg, whatever + } + @keys + ) + %> + |
+ |
unknown type <% $type %> |