X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=e63dfe3fbd4d2541c4b178f0b122b46d225c885a;hb=508f9f825f2d0a4b41b9e3c83f4e4a616f8eb5bf;hp=10fcde3c42a23d489fa7869f0d65e30f822c0668;hpb=ba5975d05c4bf88a47750fecf8651821460ab30f;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 10fcde3c4..e63dfe3fb 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -7,7 +7,7 @@ Click on a configuration value to change it. % % if ( $cgi->param('showagent') ) { % $cgi->param('showagent', 0); - ( hide agent overrides ) + ( show global configuration ) % $cgi->param('showagent', 1); % } else { % $cgi->param('showagent', 1); @@ -16,6 +16,38 @@ Click on a configuration value to change it. % } % % } +% if ( @locales ) { +( +% if ( $locale ) { +% $cgi->delete('locale'); + global settings | +% } + +invoice language options: +
+- <% ucfirst($section || 'unclassified') %> + <% section_title($section) %> % if ( $curuser->option('show_confitem_counts') ) { (<% scalar( @{ $section_items{$section} } ) %> items) % } @@ -82,26 +118,35 @@ Click on a configuration value to change it. % foreach my $agent ( @agents ) { % my $agentnum = $agent ? $agent->agentnum : ''; % -% next if $section eq 'deprecated' && ! $conf->exists($i->key, $agentnum); +% next if $section eq 'deprecated' +% && ( ! $conf->exists($i->key, $agentnum) +% || $conf->config($i->key, $agentnum) eq '' +% ); % % my $label = $i->key; % $label = '['. $agent->agent. "] $label" % if $agent && $cgi->param('showagent'); % % #indentation :/ +% my $action = 'config.cgi?key=' . $i->key . +% ";agentnum=$agentnum" . ($locale ? ";locale=$locale" : ''); | ||
---|---|---|
<% include('/elements/popup_link.html', - 'action' => 'config.cgi?key='. $i->key. - ';agentnum='. $agentnum, - 'width' => $width, - 'height' => $height, - 'actionlabel' => 'Enter configuration value', - 'label' => "$label", - 'aname' => $i->key, #agentnum - # if $cgi->param('showagent')? +% unless ( $cgi->param('showagent') ) { + | + <% include('/elements/popup_link.html', + 'action' => $action, + 'width' => $width, + 'height' => $height, + 'actionlabel' => 'Enter configuration value', + 'html_label' => "$label", + 'aname' => $i->key, ) - %>: <% $i->description %> + %>: +% } else { + | <% $label %>: +% } + <% $i->description %> % if ( $agent && $cgi->param('showagent') ) { % my $confnum = $conf->conf( $i->key, $agent->agentnum, 1 )->confnum; (delete agent override) @@ -128,12 +173,12 @@ Click on a configuration value to change it. |
<% $conf->exists($i->key, $agentnum) - ? '' + ? '' : 'empty' %> | @@ -141,18 +186,19 @@ Click on a configuration value to change it.||
<% $conf->exists($i->key, $agentnum) - ? qq!download! + ? 'download' : '' %> | ||
<% $conf->exists($i->key, $agentnum) - ? qq!download! + ? 'download' : 'empty' %> | @@ -177,7 +223,7 @@ Click on a configuration value to change it. % } elsif ( $type eq 'checkbox' ) {||
YES' : 'ff0000">NO' %> | +YES' : 'ff0000">NO' %> | |
+% if ( $i->multiple ) {
+ <% join(' ', + map { $_ . ": " . &{ $i->option_sub }($_) } + $conf->config($i->key,$agentnum) + ) + %> +% } else { <% $conf->config($i->key, $agentnum) %>: <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %> +% } |
||
+ |