X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=7b2e55a55982979564416bfbfe71961162f8ab1b;hb=228d0171b07879ce7a585c87aa5580237df74842;hp=80a65d09b7c2fc43104cca4f63de5501d4f7aa85;hpb=81e426fe755eaea508041bc2d7b25ac44c777434;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 80a65d09b..7b2e55a55 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -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 + <% ucfirst($section || 'unclassified') %> +% if ( $curuser->option('show_confitem_counts') ) { + (<% scalar( @{ $section_items{$section} } ) %> items) +% } | |
---|---|
<% include('/elements/popup_link.html', - 'action' => 'config.cgi?key='. $i->key. - ';agentnum='. $agentnum, + 'action' => $action, 'width' => $width, 'height' => $height, 'actionlabel' => 'Enter configuration value', @@ -124,12 +161,12 @@ Click on a configuration value to change it. | |
<% $conf->exists($i->key, $agentnum) - ? '' + ? '' : 'empty' %> | @@ -137,18 +174,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 +200,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 ) %> |
@@ -300,10 +358,20 @@ Click on a configuration value to change it.