X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=5f09b128a383fcc6e6f531039a5c2341d41dbc11;hb=00f6a05e148ee90f04c9f38830cf9f1f601ab041;hp=80a65d09b7c2fc43104cca4f63de5501d4f7aa85;hpb=81e426fe755eaea508041bc2d7b25ac44c777434;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 80a65d09b..5f09b128a 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') %> configuration options + <% section_title($section) %> +% if ( $curuser->option('show_confitem_counts') ) { + (<% scalar( @{ $section_items{$section} } ) %> items) +% } | ||
---|---|---|
<% 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) @@ -124,12 +173,12 @@ Click on a configuration value to change it. |
<% $conf->exists($i->key, $agentnum) - ? '' + ? '' : 'empty' %> | @@ -137,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' %> | @@ -162,18 +212,22 @@ Click on a configuration value to change it.||
-<% encode_entities(join("\n", - map { length($_) > 88 ? substr($_,0,88).'...' : $_ } - $conf->config($i->key, $agentnum) - ) ) -%>+ +% my $escaped = eval { encode_entities(join("\n", +% map { length($_) > 88 ? substr($_,0,88).'...' : $_ } +% $conf->config($i->key, $agentnum) +% ) ); +% }; +% $escaped = $@ ? '('.encode_entities($@).')' : $escaped; + <% $escaped %>+ |
||
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) ) %> +% } |
||
- <% join(' ', map { $_ # ': '. $svc - } - @svcparts + <% join( ' ', + map { + my $key = $_; + my $record = qsearchs($table, { $pkey => $key }); + $record ? "$key: ".$record->$namecol() : $key; + } @keys ) %> |
@@ -238,7 +308,7 @@ Click on a configuration value to change it.
% if ( @add_agents ) {
||
+ |