X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=a52c1e97a890f64c8956d401bcb709f35e32f433;hb=00b3fa892f2fe5665fd6415a2806d706bff0e745;hp=aca37f2ad710d7b2f6427483c18184734e50c7f0;hpb=b19bf30f0d745d20e5e4f0a8e47ce16a04b02dd9;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index aca37f2ad..a52c1e97a 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', @@ -97,7 +136,16 @@ Click on a configuration value to change it. ) %>: <% $i->description %> % if ( $agent && $cgi->param('showagent') ) { - (delete agent override) +% my $confnum = $conf->conf( $i->key, $agent->agentnum, 1 )->confnum; + (delete agent override) +% } elsif ( $i->base_key +% || ( $deleteable{$i->key} && $conf->exists($i->key) ) ) { +% my $confnum = +% $agent +% ? $conf->conf( $i->key, $agent->agentnum, 1 )->confnum +% : $conf->conf( $i->key )->confnum; +% my $showagent = $cgi->param('showagent') ? '_showagent' : ''; + (delete configuration item) % } | @@ -113,12 +161,12 @@ Click on a configuration value to change it.|
<% $conf->exists($i->key, $agentnum) - ? '' + ? '' : 'empty' %> | @@ -126,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' %> | @@ -145,7 +194,9 @@ Click on a configuration value to change it. % } elsif ( $type eq 'textarea' % || $type eq 'editlist' -% || $type eq 'selectmultiple' ) { +% || $type eq 'selectmultiple' +% ) +% {|
@@ -160,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 %> |