X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=040ed0403005007a99ee28bd059f90da1c344b6d;hb=3d2e1d9b5d1883f768f5a90e0dfaae7cc9a41367;hp=b32f654d4cc3adce7c4ff85f9a26c27c3b79b8d9;hpb=c082dd1a35a2e25b97f28ee137ec2c5b3b8052ca;p=freeside.git diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index b32f654d4..040ed0403 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -20,10 +20,7 @@ function SafeOnsubmit() { } -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %>
@@ -47,13 +44,25 @@ Setting <% $key %> no type +% } elsif ( $type eq 'image' ) { + + <% $conf->exists($key, $agentnum) + ? 'Current image
'. + '
' + : '' + %> + +
+ New image filename "> + % } elsif ( $type eq 'binary' ) { Filename "> % } elsif ( $type eq 'textarea' ) { - + % } elsif ( $type eq 'checkbox' ) { @@ -62,7 +71,7 @@ Setting <% $key %> % } elsif ( $type eq 'text' ) { - " type="text" value="<% $conf->exists($key, $agentnum) ? $conf->config($key, $agentnum) : '' %>"> + " type="text" value="<% $conf->exists($key, $agentnum) ? $conf->config($key, $agentnum) : '' |h %>"> % } elsif ( $type eq 'select' || $type eq 'selectmultiple' ) { @@ -75,11 +84,9 @@ Setting <% $key %> % '' => '', map { $_ => $_ } @{ $config_item->select_enum }; % } elsif ( $config_item->select_hash ) { % if ( ref($config_item->select_hash) eq 'ARRAY' ) { -% tie %hash, 'Tie::IxHash', -% '' => '', @{ $config_item->select_hash }; +% tie %hash, 'Tie::IxHash', '' => '', @{ $config_item->select_hash }; % } else { -% tie %hash, 'Tie::IxHash', -% '' => '', %{ $config_item->select_hash }; +% tie %hash, 'Tie::IxHash', '' => '', %{ $config_item->select_hash }; % } % } else { % %hash = ( '' => 'WARNING: neither select_enum nor select_hash specified in Conf.pm for configuration option "'. $key. '"' ); @@ -124,7 +131,11 @@ Setting <% $key %> % } elsif ( $type eq 'select-sub' ) { - " <% $config_item->multiple ? 'MULTIPLE' : '' %>> + +% unless ( $config_item->multiple ) { +