X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=1c9e719c54620943377fa4b60bfd1b69337da81d;hb=16c302199c7544f6842978d3a97d154e7a9e225f;hp=0f6c99232f7796da0dc5b7ce62d86edb5e427a34;hpb=56a2965996454a0649d43ecbc062beda61106e21;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 0f6c99232..1c9e719c5 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' %> | @@ -156,7 +194,9 @@ Click on a configuration value to change it. % } elsif ( $type eq 'textarea' % || $type eq 'editlist' -% || $type eq 'selectmultiple' ) { +% || $type eq 'selectmultiple' +% ) +% {|
@@ -171,7 +211,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) ) %> +% } |
|
+ <% join( ' ', + map { + my $key = $_; + my $record = qsearchs($table, { $pkey => $key }); + $record ? "$key: ".$record->$namecol() : $key; + } @keys + ) + %> + |
+ |
unknown type <% $type %> |