X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig.cgi;h=cde48382a625b56e36a0d2473019fcdc8d958cc8;hb=5cae209e7a123e2fb4da3eb720b54a0b83368977;hp=4bcd8e4145b77f9bace239c2430dfa6d0b3980ee;hpb=442cb5be5190c0639e3afebcf99c90d9f31af7f9;p=freeside.git diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 4bcd8e414..cde48382a 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -44,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' ) { @@ -72,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. '"' ); @@ -121,7 +131,11 @@ Setting <% $key %> % } elsif ( $type eq 'select-sub' ) { - " <% $config_item->multiple ? 'MULTIPLE' : '' %>> + +% unless ( $config_item->multiple ) { +