X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=534de02314a1fa7a30fd2b98fc770ae56fb3c22e;hp=41ecfd2686cfce2c42ab3a228259c59d7ee5a7dc;hb=8cda5aa78a9ae58afe4b9f3684165658eb73c163;hpb=c1b01fc753bb1cbd9fedf7e17ac307d5e3d3cf00
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index 41ecfd268..534de0231 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) {
@@ -42,6 +57,26 @@ Click on a configuration value to change it.
% #$width =
% #$height =
% }
+%
+% my @agents = ();
+% if ( $page_agent ) {
+% @agents = ( $page_agent );
+% } else {
+% @agents = (
+% '',
+% grep { defined( _config_agentonly($conf, $i->key, $_->agentnum) ) }
+% @all_agents
+% );
+% }
+%
+% foreach my $agent ( @agents ) {
+% my $agentnum = $agent ? $agent->agentnum : '';
+%
+% my $label = $i->key;
+% $label = '['. $agent->agent. "] $label"
+% if $agent && $cgi->param('showagent');
+%
+% #indentation :/
-<% encode_entities(join("\n", ++ <% encode_entities(join("\n", map { length($_) > 88 ? substr($_,0,88).'...' : $_ } $conf->config($i->key, $agentnum) ) ) -%> -+%>